The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Avatar and Rank side by side
This is probably a simple fix if someone knows what they are doing, but I am adding a graphic as a rank and I would like it to show up to the right of the username/title/avatar. Or even just to the right of the Avatar so that it does not take up so much space vertically. I cannot figure out how to get it to show up there and I am sure it is just because I am a novice at editing templates.
Here is the graphic that I am going to use... Thanks! |
#2
|
|||
|
|||
Are you using the vBulletin rank system ? You would need to rearrange the code slightly in the postbit to get it to display correctly. You didn't specify which postbit you are using, default or legacy?
|
#3
|
|||
|
|||
Yes... sorry... I am using the vBulletin rank system and the Legacy postbit
|
#4
|
|||
|
|||
Here is the code in legacy that displays the avatar and the rank. In the default they are separate conditions that are tested and the Avatar is usually first the rank underneath it.
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> <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> 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><span class="smallfont">$post[rank] </span> </div> </if> I haven't tested it because you have the rank images but it should work and it assumes that the rank condition is part of the avatar conditional. |
#5
|
|||
|
|||
Thanks!
--------------- Added [DATE]1235970871[/DATE] at [TIME]1235970871[/TIME] --------------- That worked perfectly but it came out making the postbit box looking a bit cluttered. Is there any way to move the rank to the top right corner of the postbit box (next to the user name but alligned far right)? Since the graphic is designed to look like a banner it would then look like it was hanging... Thanks! --------------- Added [DATE]1236043633[/DATE] at [TIME]1236043633[/TIME] --------------- Anybody know how to make that happen? Thanks! |
#6
|
|||
|
|||
do you have a screenshot of what you want it to look like
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|