MyBB Tutorials

How to make CSS based userbars

Submitted by linkzy, , Thread ID: 49

Thread Closed
linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
15-01-2015, 07:47 AM
This post was last modified: 17-01-2015, 09:02 AM by linkzy
#1
If you'd like to have CSS group badges in your postbit, it's really simple. First, open your Post Bit Templates > postbit_author_user template, and add this to the very top:



PHP Code:
<div class="{$usergroup['title']}">{$usergroup['title']}</div>  
<
br /> 

You can then style each group in your CSS, like this:



PHP Code:
.Administrators {
displayinline-block;
height30px;
line-height30px;
padding0 15px;
colorred;
background#2f2f2f;
}
Edit and add more like mod etc :

This only works for the postbit though, so keep that in mind.

Have fun?

:D Tongue :yus: :yus:
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: 1 Guest(s)