2018-08-24, 02:53 AM
I want to make some custom profile field unique so that there will be no duplicated ones. Furthermore, This field is only at registration, required and not edible by the user.
Make custom profile field unique
|
2018-08-24, 02:53 AM
I want to make some custom profile field unique so that there will be no duplicated ones. Furthermore, This field is only at registration, required and not edible by the user.
2018-08-24, 05:04 AM
Unsure what you're trying to do here. So you don't want users to have the same answer for the custom profile field or am I wrong?
Plugin Count: I lost count.
Public Plugins are available here. Please do not PM me for support unless asked to.
2018-08-24, 06:08 AM
You need to edit member.php, probably at line 260 after CAPTCHA verification. The code roughly should be:
Note: Code not tested but should work. You need to make sure the desired column in users table exists and the form input field name and database column name are correct.
Even though, profile fields stored in userfields and i fixed query, It doesn't work. I checked and unique_id variable has no value so i think $mybb->get_input is not catching user input. input field name was profile_fields[fid1]
Well, I did it myself. I used core mybb's user array to catch profile field. |
« Next Oldest | Next Newest »
|