The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Don't know if....
... this has been done already or if there is a default variable for it.
But, how would I be able to show what usergroup a member is in, in the postbit. As I said, I'm not sure whether this would be a hack.. or if this is a default variable. Thanks. |
#2
|
||||
|
||||
2 ways:
1- Enter a userstatus for that usergroup in Admin CP 2- Requires a hack: edit function.php find: PHP Code:
PHP Code:
Then add $post[usergroupname] into postbit template |
#3
|
||||
|
||||
Quote:
So I just add each usergroup status to the bottom of the global file? Say if I made up a new usergroup bean man , for example.. I'd add elseif ($bbuserinfo[usergroupid]==10) {$bbuserinfo[usergroupname]='Bean Man';} then place $bbuserinfo[usergroupname]... in the postbit and it'll show? Just to make sure.... |
#4
|
||||
|
||||
yep
|
#5
|
||||
|
||||
Thanks a lot .
|
#6
|
||||
|
||||
Nice Logician..
|
#7
|
||||
|
||||
ty
|
#8
|
||||
|
||||
if ($bbuserinfo[usergroupid]==6) {$bbuserinfo[usergroupname]='<img src=images/adminav.gif>';}
elseif ($bbuserinfo[usergroupid]==5) {$bbuserinfo[usergroupname]='<img src=images/modav.gif>';} This is the code I have, and I've inserted the variable into the postbit. But It's showing the admin image for every user... Any help? |
#9
|
||||
|
||||
my bad.. postbit needs a different approach.. my post updated, try again..
|
#10
|
||||
|
||||
edit function.php find:
"function.php" being admin/functions.php ? because I've just tried this and it isn't working. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|