vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Show Thread Enhancements - Custom User Rank Box in Posts (https://vborg.vbsupport.ru/showthread.php?t=294430)

addamroy 01-25-2013 11:00 PM

Custom User Rank Box in Posts
 
1 Attachment(s)
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

Link Private Forums to thread instead of error message

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!

Alan_SP 01-29-2013 01:05 AM

This is template edit, not a mod.


All times are GMT. The time now is 02:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00952 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete