The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Rank/Usergroup force Update
Hi
We have a script that will update a usergroup is they are a member of the club (DB lookup) we use, the below as the script checks you are logged in the board (have username) Code:
// instantiate the data manager class $userdata =& datamanager_init('user', $vbulletin, ERRTYPE_STANDARD); $userdata->set_existing($vbulletin->userinfo); // change primary user group $userdata->set('usergroupid', 10); $userdata->set_info('override_usergroupid', true); $userdata->save(); Now on the other side we have taking away access once membership has expired If we do a straight db update on usergroup for the username ie change usergroup from 5 to 2. The User Rank (Badge) will not change if we use the above which does change the Rank instantly based on Usergroup, how do we pass the username from inside a script ?? tar muchly Giz |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|