The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
OK, well here is the code.
This is the .php file under /includes PHP Code:
|
#12
|
||||
|
||||
I hate having to bump all the time, but i really need some help with this.
Thanks |
#13
|
||||
|
||||
It is sometimes hard to just jump in and 'read' someone else's code which is why you probably aren't getting a whole lot of help with this. Maybe explain what you are trying to do with that script and people can think about how they would go about it and then 'read' what the problems are with how you went about it.
|
#14
|
||||
|
||||
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:
PHP Code:
(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... |
#15
|
|||
|
|||
That sounds like a logical explanation. If your members can only enter their gender at registration time, then there is no use to also run it when they update their profile. I can imagine that this automagically changes the usergroup.
But i guess this could be easy tested. |
#16
|
||||
|
||||
Well i've turned it off, ill see how it goes.
Thanks for your advice marco. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|