Back to vBulletin 4.x Template Modifications

Custom User Rank Box in Posts
Mod Version: 1.00, by addamroy

vB Version: 4.1.x Rating: (1 vote - 5.00 average) Installs: 5
Released: 27 Jan 2013 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code Translations  

This mod will allow you to create a custom box around your member's user rank images or text under their avatar in posts.

This is done via one simple template edit and a couple CSS entries in your additional.css file.

Step 1 - In your Postbit_legacy template via > style manager > edit templates > Postbit Templates

Find:
Code:
<vb:if condition="$post['rank']">
Just BELOW it add:
Code:
<div class="badgesbox">
<div class="badgesboxlabel">
<center>
<u><b>
<font color="black">
{vb:raw post.username}'s Badges
</font>
</b></u>
</center>
</div>
Then find:
Code:
<span class="rank">{vb:raw post.rank}</span>
And BELOW that add:
Code:
</div>
Now open your additional.css template via Style manager > edit templates > CSS templates > additional.css

At the very BOTTOM add:
Code:
.badgesbox {
padding-left:4px;
padding-top:1px;
padding-bottom:4px;
margin-right:21px;
margin-bottom:2px;
background-color:#ccc;
}
.badgesboxlabel {
padding-bottom:5px;
}
Now because some may have slightly different size avatars and/or user-rank badges or text, you may have to adjust the
margin-right:21px; value to adjust the box to the correct position.

Also you can change background-color:#ccc; to whatever color you want the box background color to be.

Just a little way to give some more attention to your members who have various achievements or paid subscriptions you have user-rank badges for.

Check out my other Template Modifications for 4.x!

[Postbit-Legacy Hack] Attractive User Info Boxes for Posts

http://www.vbulletin.org/forum/showthread.php?p=2393460

Sidebar Anywhere Enhancement - Custom Blocks Per Forum or Page

Change Thread Title Color for Specific Forums on Homepage

Change Background Color for Specific Forums on Homepage

Change Title Color of Specific Forums on Homepage

Thread Starter Image in Postbit for OP

CUSTOM BUTTONS that look like your forum!

Download

No files for download.

Similar Mods

Statistics Modifications User Rank by Posts vBulletin 3.6 Add-ons
Custom Rank Image for each User vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024