OS Property support center

SOLVED Remove or Hide two options for registration

  • José
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago - 9 years 8 months ago #67817 by José
Hello everyone,
In the registration of new agent, I would eliminate two options.
1 - Users can only be registered as owners, not as agents. I mean, to remove the agents option.
2- Remove or hide Enterprise option.

Attached image

Attachment Sinttulo-1.jpg not found



You can tell me where or how to do it ?.

Thank you very much and greetings to all.
Attachments:
Last edit: 9 years 8 months ago by Mr. Dam.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #67863 by Mr. Dam
Replied by Mr. Dam on topic Remove or Hide two options for registration
Hi Jose,
1. I am afraid that if you remove Agent option in OS Property, it will have a lot of potential issue. So i advise you not to remove Agent. You can use Translation tool at Back-end of OS Property to change word "Agent" to another word
2. To remove Company dropdown select list, please follow these steps
- Open file: components > com_osproperty > helpers > layouts > agentregistration.php
- Find
Code:
if(count($companies) > 0){ ?> <div class="control-group"> <label class="control-label" ><?php echo JText::_('OS_COMPANY')?></label> <div class="controls"> <?php echo $lists['company']?> </div> </div> <?php }

and remove it

Good luck
Dam
The following user(s) said Thank You: José

Please Log in or Create an account to join the conversation.

  • José
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #67872 by José

Dang Thuc Dam wrote: Hi Jose,
1. I am afraid that if you remove Agent option in OS Property, it will have a lot of potential issue. So i advise you not to remove Agent. You can use Translation tool at Back-end of OS Property to change word "Agent" to another word

Thank you very much Dam, everything perfect. A consultation
As this field is the default option. You could not hide or not to leave ?. Since there is nothing to choose ...
Maybe I ask outrageous ....
Another question:
Where you can manage the required fields in this section?
Thank you very much and greetings


opdown select list, please follow these steps
- Open file: components > com_osproperty > helpers > layouts > agentregistration.php
- Find

Code:
if(count($companies) > 0){ ?> <div class="control-group"> <label class="control-label" ><?php echo JText::_('OS_COMPANY')?></label> <div class="controls"> <?php echo $lists['company']?> </div> </div> <?php }

and remove it

Good luck
Dam

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #67880 by Mr. Dam
Replied by Mr. Dam on topic Remove or Hide two options for registration
Hi Jose,
You can manage required field by modifying the Javascript function "submitForm" in file: agentregistration.php
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • José
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #67892 by José
Good solution. If programmer had not already asked. And I'm not not fix it.
Anyway thank you very much.

And the other issue?
I can not find where to remove the obligation to the address. I mean, the address is a mandatory field and I doubt that users want to put your address. Where or how you can change?
Thank you!!.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #67899 by Mr. Dam
Replied by Mr. Dam on topic Remove or Hide two options for registration
Hi Jose,
To remove "Required" status of field: address, please follow these steps
- Open file: components > com_osproperty > helpers > layouts > propertyedit.php
- Find
Code:
$require_field .= "address,"; $require_label .= JText::_('OS_ADDRESS').",";

and change to
Code:
//$require_field .= "address,"; //$require_label .= JText::_('OS_ADDRESS').",";

Thanks
Dam
The following user(s) said Thank You: José

Please Log in or Create an account to join the conversation.

  • José
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #67916 by José
Thanks Dam,
Later I look better, the symbol (*) does not remove it. Later mirare if making a new record and leaving the field empty admits.

Cheers!!

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #67926 by Mr. Dam
Replied by Mr. Dam on topic Remove or Hide two options for registration
Hi Jose,
You can see the symbol (*) beside the input box "Address", and you can remove it easily.
Thanks
Dam
The following user(s) said Thank You: José

Please Log in or Create an account to join the conversation.

  • José
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago - 9 years 8 months ago #67933 by José
Will not let me add code forum.It fails me and tells me I have no permissions

/components/com_osproperty/helpers/layouts/agentregistration.php . line: 102 delete: (*)

So is that correct? Or you have to change more things ?.

Cheers!!.
Last edit: 9 years 8 months ago by José.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #67938 by Mr. Dam
Replied by Mr. Dam on topic Remove or Hide two options for registration
Hi,
Have you checked the result?
Thanks
Dam
The following user(s) said Thank You: José

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan