OK, fair enough.
Just to refresh peoples minds, my problem is that users are being removed from their usergroup randomly.
Well basically what this mod does is when a user registers, they select 'male' or 'female' (setup in 'user profile field manager'). Then depending whether they select 'male' or 'female' it puts them in the specified user group that I define.
There is an option in 'admincp' where i can define these settings.
This is what it looks like:
field5;9;Female
field5;10;Male
So 'field5' is the profile field; '9' or '10' are the usergroups; 'female' or 'male' are the options that the user can select at registration.
Note: the user can only select their gender AT registration, nowhere else.
There are also 2 plugins.
One has a hook in the
'register_addmember_process' location, with php code:
PHP Code:
require_once(DIR . '/includes/profile_groups.php');
The other one has a hook in the
'profile_updateprofile' location, with the php code:
PHP Code:
require_once(DIR . '/includes/profile_groups.php');
(That "/includes/profile_groups.php" is the code a couple posts above.)
I'm not 100% sure, but I'm not sure if there should be a plugin at the 'profile_updateprofile' location...