vB 4.2.3
As the title suggest, what would I need to write in the Execute SQL Query option (http://i.imgur.com/WZP9MO6.png), for users/usergroups to have their Custom User Profile Field options forcefully be changed?
They can still change back from their userCP later.
This is the code that forces/automatically changes Usergroups X Show Reputation to Hide Reputation in their userCP (http://i.imgur.com/ALEUmXT.png):
Example:
I have a custom user profile field named: Gender [Field5]
Options:
Male
Female
Hide
These are the rest of my data for the user profile field: http://i.imgur.com/kDACrUL.png -> Single-Selection Menu.
How do I change certain users/usergroups just from Male to Hide?
Also, if I wanted to change certain users/usergroups from Male & Female to Hide, how would I do that?
Does the Profile Field Type (http://i.imgur.com/1H7oCUJ.png) matter when executing a query like this?
As the title suggest, what would I need to write in the Execute SQL Query option (http://i.imgur.com/WZP9MO6.png), for users/usergroups to have their Custom User Profile Field options forcefully be changed?
They can still change back from their userCP later.
This is the code that forces/automatically changes Usergroups X Show Reputation to Hide Reputation in their userCP (http://i.imgur.com/ALEUmXT.png):
Code:
UPDATE user SET options=options - 1024 WHERE options & 1024 AND usergroupid IN([COLOR=red]X[/COLOR],[COLOR=red]X[/COLOR],[COLOR=red]X[/COLOR]);
I have a custom user profile field named: Gender [Field5]
Options:
Male
Female
Hide
These are the rest of my data for the user profile field: http://i.imgur.com/kDACrUL.png -> Single-Selection Menu.
How do I change certain users/usergroups just from Male to Hide?
Also, if I wanted to change certain users/usergroups from Male & Female to Hide, how would I do that?
Does the Profile Field Type (http://i.imgur.com/1H7oCUJ.png) matter when executing a query like this?
Comment