![]() |
Mod/Supermod/Admin Picture
1 Attachment(s)
Could someone please make a hack that adds this image: http://www.starcraftsector.com/fs/images/team.gif 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.
|
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 |
I hope this worked for you, if you have a problem then just tell me.
|
Uh... It didn't work. No errors or anything, but it just didn't work....
|
Oops, NM, works perfectly. Thanks. :D
|
Cool no problem
|
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. |
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:
|
thanks for teaching me PPN. :)
it makes alot of sense your query issue. i'm still a newbie remember? |
Your not a newbie any more, you have a good grasp of the vBulletin layout and php functions.
|
All times are GMT. The time now is 10:00 AM. |
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:
|