- Posts: 42
- Thank you received: 2
SOLVED Remove or Hide two options for registration
- José
-
Topic Author
- Offline
- Senior Member
-
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.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13056
- Thank you received: 1696
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
and remove it
Good luck
Dam
Please Log in or Create an account to join the conversation.
- José
-
Topic Author
- Offline
- Senior Member
-
- Posts: 42
- Thank you received: 2
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.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13056
- Thank you received: 1696
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
-
- Posts: 42
- Thank you received: 2
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.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13056
- Thank you received: 1696
To remove "Required" status of field: address, please follow these steps
- Open file: components > com_osproperty > helpers > layouts > propertyedit.php
- Find
and change to
Thanks
Dam
Please Log in or Create an account to join the conversation.
- José
-
Topic Author
- Offline
- Senior Member
-
- Posts: 42
- Thank you received: 2
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.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13056
- Thank you received: 1696
You can see the symbol (*) beside the input box "Address", and you can remove it easily.
Thanks
Dam
Please Log in or Create an account to join the conversation.
- José
-
Topic Author
- Offline
- Senior Member
-
- Posts: 42
- Thank you received: 2
/components/com_osproperty/helpers/layouts/agentregistration.php . line: 102 delete: (*)
So is that correct? Or you have to change more things ?.
Cheers!!.
Please Log in or Create an account to join the conversation.
- Mr. Dam
-
- Offline
- Administrator
-
- Posts: 13056
- Thank you received: 1696
Have you checked the result?
Thanks
Dam
Please Log in or Create an account to join the conversation.
Support
Documentation
Information
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.