The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Mod/Supermod/Admin Picture
Could someone please make a hack that adds this image: to the right of the username of a mod/supermod/admin? This was one of the features I enjoyed from Ikonboard; it made it much easier to tell exactly who was a mod. I attempted to do this, but couldn't figure out exaclty how. This should be a very easy hack for an experience hacker as all you probably have to do is something like $ifusergroup=XX or some stuff like that. An example of what I want for the hack is attatched. You can see the team pic next to me, starcraftsector, the admin.
|
#2
|
|||
|
|||
PHP Code:
PHP Code:
moderator_icon -------------- <img src="http://yourforums.com/mod_icon.gif"> then in your postbit template put $mod_logo after the username in the postbit template |
#3
|
|||
|
|||
I hope this worked for you, if you have a problem then just tell me.
|
#4
|
||||
|
||||
Uh... It didn't work. No errors or anything, but it just didn't work....
|
#5
|
||||
|
||||
Oops, NM, works perfectly. Thanks.
|
#6
|
|||
|
|||
Cool no problem
|
#7
|
||||
|
||||
i think there is an easier way to do this.
in functions.php add: PHP Code:
in your postbit, place $post[usergroupicon] where you want. |
#8
|
|||
|
|||
It wouldn't really be easier, for two reasons, say there is 25 posts per page and the same person posts 9 times then they're will be a query 9 times to check if he's a mod where you could get away with a temp cache system.
Though what you suggested is good. PHP Code:
|
#9
|
||||
|
||||
thanks for teaching me PPN.
it makes alot of sense your query issue. i'm still a newbie remember? |
#10
|
|||
|
|||
Your not a newbie any more, you have a good grasp of the vBulletin layout and php functions.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|