The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Extra Team Avatar
I am after a special extra team avatar for moderators, supermoderators and administrators, I think I have some rightish looking code but I am not sure where to put it:
Code:
unset($teamlogo); if ($loggedin['usergroupid'] == 6 and $highlightadmin) { $teamlogo = "<img src=\"team.gif\">"; } else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) { $teamlogo = "<img src=\"team.gif\">"; |
#2
|
|||
|
|||
waddy are you looking for it on the postbit or where exactly do you want it to appear? regards...
g-force2k2 |
#3
|
||||
|
||||
Sorry, I want an extra avatar to appear under the current avatar, but only for moderators, supermoderators and administrators.
I had a look thru postbits, but was unsure as to whether I could put php in there, pretty sure I can't so have come to the un-experienced conclusion I need to write a function. |
#4
|
||||
|
||||
Might add this avatar won't be customizable, but a single image for all or even a sperate one for mods, supermods and admins etc.
Thanks! |
#5
|
|||
|
|||
just add this coding to the admin/functions.php
find: PHP Code:
PHP Code:
PHP Code:
PHP Code:
g-force2k2 |
#6
|
||||
|
||||
I think that might be it, will check it out shortly!
|
#7
|
||||
|
||||
ok I added that code and it works, but it shows for all users irrespective of whether they are in those particular groups!
|
#8
|
|||
|
|||
oh waddy my bad just change all of the instances of $bbuserinfo to $post... that should solve the problem regards...
g-force2k2 |
#9
|
||||
|
||||
Thanks...
*rushes off to try it* |
#10
|
||||
|
||||
Awesome, thanks alot
Once the server is working again you can see it in action, having some teething problems with our new server atm |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|