vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=314799

User Rank Banners using CSS
by tpearl5
09 Oct 2014 13:59

1 Attachment(s)
I use the user rank system on one of my sites to give users in one or more usergroups a little flare. I didn't want to use graphics, which would add to the number of images being loaded, so I used CSS.

Here's how to set it up.

Add something like the following to additional.css:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Naturally you can adjust the colors to match your site.

Go to User Ranks > Add New User Rank
  • Number of times to repeat rank: 1
  • Choose the usergroup - in this example the code is for the super mods
  • Minimum Posts: whatever you want, but mine is setup to depend on usergroup, which in some cases may be set based on user upgrades anyway
  • Stack Rank: No
  • Display Type: Always
  • User Rank File Path: clear this field
  • OR you may enter text: enter something like the following -

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

You will need to create a new user rank for each banner that you want to use. You would just need to change the second half of the div class to match the name of the group, for example the sr_members would get <div class="user_banner sr_member">Sr Member</div>

The banners will stack if the user is in more than one group that meets the requirements set in the User Rank. (see screen shot below)

This will also work for 3.x versions.

Enjoy!

billstelling 09 Dec 2014 15:54

Nice mod..

Phillip 09 Dec 2014 20:50

Wondering if this could work for vB3 as well?

Black Snow 10 Dec 2014 09:41

Quote:

Originally Posted by GhostX (Post 2526507)
Wondering if this could work for vB3 as well?

States in the original post:

Quote:

This will also work for 3.x versions.


All times are GMT. The time now is 17:26.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.