The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
User Titles Don't Update With Usergroup
I'm currently using this code to change the usergroup based on input to a custom field. This works, but for some reason the user title doesn't change with it. Instead the user title that shows up is the user title for the default registered user type. I'm using the register_activate_process hook.
Any ideas? Thanks PHP Code:
|
#2
|
|||
|
|||
It looks like this code:
Code:
$userdata->set_usertitle( $user['customtitle'] ? $user['usertitle'] : '', false, $display_usergroup, ($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canusecustomtitle']) ? true : false, ($user_usergroup['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cancontrolpanel']) ? true : false ); is called before that hook. So maybe if you make that call again in your code, after you change the usergroup. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|