Stop sex field change.
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #1
Stop sex field change.
I want to stop users from changing their Sex after registration, as it is a required field.

This, because there is a group for men and other for women, that is it. (Obviusly, "undisclosed" option is avaible so only admins will be able to change it is users ask for it.)

Can somebody tell me the basic plugi "idea" for this Ouch?

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
02-02-2012 03:36 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Stop sex field change.
You can try to make it as a required-non editable fields?

02-03-2012 02:32 AM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #3
RE: Stop sex field change.
An easy way to do this would be to delete it (or put it as a comment <!-- code here -->) in User CP template.
User CP > usercp_profile > Edit:


Go to Configuration > "Additional fields in profile" > Sex > Edit:
Look at last two options.
02-03-2012 02:35 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #4
RE: Stop sex field change.
(02-03-2012 02:35 AM)Zenk Wrote:  An easy way to do this would be to delete it (or put it as a comment <!-- code here -->) in User CP template.
User CP > usercp_profile > Edit:


Go to Configuration > "Additional fields in profile" > Sex > Edit:
Look at last two options.

If I use those options, fields are still editable by the users without limitation at a time.... is it not?

(02-03-2012 02:32 AM)RateU Wrote:  You can try to make it as a required-non editable fields?

Never read of somebody trying so (and I dinĀ“t as well), will try and report back.

Thanks both of you.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 02-03-2012 01:15 PM by Sama34.)
02-03-2012 01:14 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #5
RE: Stop sex field change.
That din't worked, users are able to choose sex field in registration, but it looks like not being saved in the DB. When I check the user's profilefrom a Admin account, it is not being showed.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
02-21-2012 11:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: Stop sex field change.
Ah, yes. It seems that MyBB not save the profile fields value.
Why the profile fields is displayed on the registration page?

02-24-2012 05:41 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #7
RE: Stop sex field change.
Because it shows the profile field if the field is required, but doesn't save the data if the user can't edit the profile field. Yes, it doesn't make any sense.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
02-25-2012 03:24 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #8
RE: Stop sex field change.
Any clue about this?

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
03-17-2012 01:04 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #9
RE: Stop sex field change.
You can try this plugin (attached).
It takes fid3 as Sex profile field.
Make it as a required-editable profile field.
In registration, it will try to force a user to choose Male or Female only.
In UserCP, whatever the user's fid3 value set, it will try to prevent it to be changed (you can use ModCP or AdminCP to change the value).


Attached File(s)
.php  mnrcfc.php (Size: 1.46 KB / Downloads: 451)

03-18-2012 04:40 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: