The Arcive of vBulletin Modifications Site. |
|
Moderator Icon on postbit Details »»
|
|||||||||||||||||||||||||
This is a hack to show a small icon next to usernames on a post, when you mouse over you will also get told what rank they are, Admin, Super Mod or Moderator.
Add the following template postbit_moderator_icon Code:
<img src="{imagesfolder}/mod.gif" alt="$rank">
Edit the postbit template and place $mod_logo somewhere on it, i chose next to the username. open up functions.php look for PHP Code:
PHP Code:
The hack will now work, but if you want to save on the extra query to the database to get the template. Open showthread.php and add PHP Code:
attached is the mod logo i used Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
A screenshot in case your wondering what exactly i'm talking about.
|
|
#3
|
||||
|
||||
|
Thanks PPN, just what I have been looking for to add to my board!
Installed with out a problem, thanks for sharing
|
|
#4
|
|||
|
|||
|
I LOVE YOU! I just asked for this yesterday!
Will install tonight! |
|
#5
|
||||
|
||||
|
great hack... how bout doin the same for all staff usergroups ... wud be a great addition...
|
|
#6
|
|||
|
|||
|
If you plan to do it for all staff usergroups it means doing some queries on the database. I'll lookin into it though.
|
|
#7
|
||||
|
||||
|
for usergroups, do this:
in functions.php add: PHP Code:
in your postbit, place $post[usergroupicon] where you want. |
|
#8
|
||||
|
||||
|
As requsted by me a long time ago.
https://vborg.vbsupport.ru/showthrea...threadid=37559Edit: Wow, this version seems to be much nicer on the database. The other one had about 60-80 queries on the showthread. Now they're way back down. |
|
#9
|
|||
|
|||
|
doesn't have any queries :P
|
|
#10
|
||||
|
||||
|
Did the other one have a lot? Because it went down from the 60-80 to 30-40.
|
![]() |
|
|