The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
Personalised Staff Titles And Background Avatars (Per User Basis)
By HASANN Release Date: 10 March 2008 For distribution at vBulletin.org WHAT DOES IT? This will allow you to give your users (per user basis) a second title and background avatar only editable in the AdminCP > User Options FEATURES All features are per user basis
INSTALL INSTRUCTIONS ->Import pruduct.xml file via Product Manager ->Do Template Edits (4 edits) (1. edit) FIND IN (POSTBIT)_LEGACY TEMPLATE THIS CODE HTML Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> HTML Code:
<if condition="$post['isstaffrank']"> <div class="smallfont"> <if condition="$post['staffrank_opentag']">$post[staffrank_opentag]</if> <if condition="$post['staffrank']">$post[staffrank]</if> <if condition="$post['staffrank_closetag']">$post[staffrank_closetag]</if> </div> </if> FIND IN (POSTBIT)_LEGACY TEMPLATE THIS CODE HTML Code:
<if condition="$show['avatar']"> <div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </div> </if> HTML Code:
<if condition="$show['avatar']"> <!-- check for staff --> <if condition="$post['isstaffbackavatar']"> <if condition="$post['staffbackavatar']"> <!-- I am staff so do this --> <div class="smallfont"> <br /> <table cellpadding="4" cellspacing="0" border="0" width="175" height="70" align="center" background="$post[staffbackavatar]" nowrap="nowrap" no-repeat> <tr> <td width="48%"> </td> <td><img src="$post[avatarurl]" height="60" width="60" align="center"></td> </tr> </table> </div> <else /> <!-- I am not staff so do this --> <div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </div> </if> <else /> <!-- I am not staff so do this --> <div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </div> </if> </if> FIND IN MEMBERINFO TEMPLATE THIS CODE HTML Code:
<h1>$prepared[musername] $prepared[onlinestatus]</h1> <if condition="$prepared['usertitle']"> <h2>$prepared[usertitle]</h2> </if> HTML Code:
<if condition="$userinfo['isstaffrank']"> <div class="smallfont"> <if condition="$userinfo['staffrank_opentag']">$userinfo[staffrank_opentag]</if><if condition="$userinfo['staffrank']">$userinfo[staffrank]</if> <if condition="$userinfo['staffrank_closetag']">$userinfo[staffrank_closetag]</if> </div> </if> FIND IN memberinfo_block_ministats TEMPLATE THIS CODE HTML Code:
<if condition="$prepared['avatarurl']"> <td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /></td> </if> HTML Code:
<if condition="$prepared['avatarurl']"> <!-- check for staff --> <if condition="$userinfo['staffbackavatar']"> <!-- I am staff so do this --> <if condition="$userinfo['isstaffbackavatar']"> <tr valign="top"> <table cellpadding="4" cellspacing="0" border="0" width="175" height="70" align="center" background="$userinfo[staffbackavatar]" nowrap="nowrap" no-repeat> <tr> <td width="48%"> </td> <td><img src="$userinfo[avatarurl]" height="60" width="60" align="center"></td> </tr> </table> </tr> <else /> <!-- I am not staff so do this --> <td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /></td> </if> <else /> <!-- I am not staff so do this --> <td><img src="$prepared[avatarurl]" alt="<phrase 1="$prepared[username]">$vbphrase[xs_avatar]</phrase>" $prepared[avatarsize] class="alt2" id="user_avatar" /></td> </if> </if> NOTE: Staff Background Avatars are automatically resized to 175x70 to fit the badge correctly, so nothing needs to be changed in the templates. NOTE: Staff Avatars are automatically resized to 60x60 to fit the badge correctly, so nothing needs to be changed in the templates. You are done, please click install if you use this. Enjoy It ![]() Supporters / CoAuthors Show Your Support
|
Comments |
#2
|
|||
|
|||
![]()
good hack hasann thanks
![]() |
#3
|
||||
|
||||
![]()
thanks kanka very gut, downloaded
![]() |
#4
|
||||
|
||||
![]()
Very good idea. I will try it when i change to 3.7.
|
#5
|
||||
|
||||
![]()
thanks man good
|
#6
|
||||
|
||||
![]()
thanks guys..
Please don't forgot to import product.xml file ![]() |
#7
|
||||
|
||||
![]()
Hasann you are on a roll, keep it up..
|
#8
|
|||
|
|||
![]()
this not work on 3.6.8 ?
|
#9
|
||||
|
||||
![]()
thank you bro! my releases will continue
No, this will doesn't work with vB v3.6.8 |
#10
|
||||
|
||||
![]()
thanks Hasann.....
A legend even back in great .... Congratulations for the excellent work has ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|