![]() |
Users being removed from Usergroups
Hey guys,
I am having some problems with random users being removed from their usergroup. Does anyone know why this might be happening? Thanks --------------- Added at 08:21 --------------- I asked the same thing at vbulletin.com, and they said it is either a promotion thing or a modification i have installed. I don't have any promotions setup so it must be a modification. Does anyone know of a mod that can cause this? |
Bump?
|
What mod's do you have installed?
|
So yeah... any thoughts? --------------- Added at 09:58 --------------- Bump? --------------- Added at 13:24 --------------- Bump? |
Impossible to say what is causing this.
Quicjest way to find out would be to disable all your modifications and see if it still happens. |
Yeah.
Do you know who i can contact about checking out a mod for me? --------------- Added at 15:54 --------------- Would there be anyone willing to take a look at the mod for me. I could give you a little bit of money if you want. --------------- Added at 20:37 --------------- Bump? |
Bump?
|
I would search through your mods for anything that has to do with a query to the user table and modifying either the usergroupid or membergroupid.
|
Yeah I think i have found the mod that is causing the problem. But it was a custom made mod that someone made for me, and i cant get in contact with them at the moment. Is there someone that has any idea about coding and would be willing to take a look at the mod for me?
Thanks |
Try posting the code here, and maybe someone has a solution for you.
|
OK, well here is the code.
This is the .php file under /includes PHP Code:
|
I hate having to bump all the time, but i really need some help with this.
Thanks |
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.
|
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... |
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. |
Well i've turned it off, ill see how it goes.
Thanks for your advice marco. |
All times are GMT. The time now is 02:49 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:
|