![]() |
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 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 |
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 :p, 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.... |
yep
|
Thanks a lot :D.
|
Nice Logician.. ;)
|
ty ;)
|
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? |
my bad.. postbit needs a different approach.. my post updated, try again..
|
edit function.php find:
"function.php" being admin/functions.php ? because I've just tried this and it isn't working. |
All times are GMT. The time now is 08:19 PM. |
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:
|