![]() |
I've updated to version 1.03. When trying to adapt for situations other than the narrow password-in-custom-field control, some modifications were necessary, as the 1.02 code did not deal well with situations where no radio button choice had yet been made by the user.
[S]Code in first post reflects latest version 1.03.[/S] [S]See also the second post which has been updated with working code to use radio buttons in custom profile field to allow user to select one of several usergroups.[/S] All Code now included in download file. |
Quote:
|
Version 1.03.1 now in place. See first and second posts in thread.
|
Version 1.04 is now in place. It adds a check to prevent modifying the user's PRIMARY usergroup.
|
If i activate the plugin, then this error comes: Fatal error: Call to undefined function: outgroup() in /home/********l/public_html/forum/global.php(349) : eval()'d code on line 86
If i deactivate, everything looks good. Btw, the plugin doesnt work for me, maybe you can take a look on it: I have three fields, one for women (written in german/turkish) one for men, and one for "no i dont want to give this info", also in german/turkish. The only with a new usergroup is the first (groupid 20) |
Quote:
PHP Code:
Also note that you have a problem with the third option you entered. That should be Code:
// THIRD radio button option |
Ok, now it works, any hint to make it for the primary usergroup? Cause i want to move the primary usergroup, not the secondary ones.
|
All code has been removed from the first two posts in this thread. The latest versions of everything will always be located in the downloadable text file.
|
Quote:
If you want to change only the primary usergroup, your query needs to update usergroupid instead of membergroupids. Also, since there can only be one primary usergroup, it is a simpler operation because you just reset usergroupid to the new value and don't have to worry about leaving any other primary usergroups alone. This is untested, but it ought to be at least close to what you need: PHP Code:
|
screen shots?
|
All times are GMT. The time now is 12:51 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|