View Full Version : How is this done?
elsonar
04-13-2006, 12:14 PM
http://ho5t.us/display/051d2ef605.png (http://ho5t.us/show.php?locm=051d2ef605.png)
How do you add the NamePros Admin graphic underneath the username?
Any help would be excellent!
Patria
04-14-2006, 07:27 PM
1) Copy the image you like to use (in our example pb_admin.gif) into the images/misc directory of the styles
2) Enter the AdminCP, Styles, Style Manager
3) Edit Templates
4) Postbit Templates, postbit_legacy
5) Search for
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
below add
<if condition="$bbuserinfo[usergroupid] == 6">
<div>
<img src="$stylevar[imgdir_misc]/pb_admin.gif" alt="Administrator">
</div>
</if>
The condition displays the image if the user is within the usegroup 6 (default the administrator group). You could see all usergroup id's in the AdminCP under Usergroups, Usergroup Manager.
SaN-DeeP
04-14-2006, 09:34 PM
Simple Method is to acheive the same via User Rank Manager in your Admin CP :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.