By Chihuahua1606 on Saturday, 16 May 2015
Replies 3
Likes 0
Views 858
Votes 0
just in case my question to the old ticket didn't come to light,
http://stackideas.com/forums/profile-field-make-not-editable-on-edit-and-suggestion-request

I am currently working on custom dev to display a selected field value only ( not editable ), which comes from a dropdown field. This value is modified by another custom script due to value that user input in different field.
Much appreciate which script that I need to modify it..

Many thanks
Hello,

I am really sorry for the delay of this reply as it is a weekend for us here. Not really sure if I understand you here but if you want to modify the custom field app, you should take a look at the file /media/com_easysocial/apps/fields/user/dropdown/dropdown.php
·
Sunday, 17 May 2015 03:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

Thank you for your response. I have had a look at the php.
I am no too sure how I can change one particular field to read only when user try to edit their profile page.

This is the scenario..
1. user registered via quick registration ( dropdown Field called "Field 1" with 1234 as unique key )
2. custom scripts assign particular user type to users registered via quick registration due to the value selected in "Field 1" and the selected value to be copied into "Field 2" with 1234 as unique key.
3. Field 2 is read-only, therefore user is not able to change the value when they registered via quick registration.

Please shed more light on where to change?

Many thanks
·
Wednesday, 20 May 2015 06:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Shimizu,

I am sorry for the delay of this reply.

Perhaps you can try go to your /media/com_easysocial/apps/fields/user/dropdown/themes/default/content.php and using JRequest::getVar('layout') to determine if the user is on the edit profile page or registration page. If the user on the edit profile page which is layout=edit, you can run the necessary algorithm there to make the field as read-only.

Hope these can help.
·
Wednesday, 20 May 2015 19:01
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post