The Arcive of vBulletin Modifications Site. |
|
What is the variable for secondary usergroups? Details »»
|
|||||||||||||||||||||||||
I'm trying to write a template hack that shows icons in the postbit depending on a user's additional usergroups.
Using echo $bbuserinfo[usergroupid]; it's obvious that this only refers to primary usergroups. Does anyone know how to refer to secondary usergroups? I'm using vb3 Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
i think it counts the extra user groups so if you were to put if condition="$bbuserinfo[usergroupid] = X" if there in it they should still be in that usergroup so it should still work
|
|
#3
|
||||
|
||||
|
I'm afraid it still doesn't work. I'm testing it by placing echo text at the end of global.php, as part of the hack involves modifications to the php code.
PHP Code:
Please help! Thanks
|
|
#4
|
||||
|
||||
|
Quote:
Now, use: PHP Code:
|
![]() |
|
|