MyBB Font Awesome Stars | No Core Edits..

by Azzy

Azzy
Junior Member
Kohai
Posts: 3
Threads: 1
Joined: Sep 2015
Reputation: 0
10-13-2015, 08:10 PM
#22369 (1)
Put this here
Postbit > postbit_userstars
Code:
<span class="color-{$mybb->usergroup['title']}"><i class="fa fa-star-o"></i> </span></if></if>

In users/groups add this to the group.
Code:
<span class="color-Administrators"><strong>{username}</strong></span>

In CSS add this 
Code:
.color-Administrators{
color: red;
text-shadow: 0px 0px 1px #800000;
}

To go further and have unique stars as admin..

Code:
<if $post['uid'] == 1 then><span class="color-{$mybb->post['usertitle']}"><i class="fa fa-star"></i> </span><else>
<span class="color-{$mybb->usergroup['title']}"><i class="fa fa-star-o"></i> </span></if></if>
Melancholy
unlucky
Admin
Posts: 4,034
Threads: 219
Joined: Jul 2014
Reputation: 65
10-13-2015, 08:13 PM
#22371 (2)
I'd do this, but when you have over 20 dynamically made groups, it sort of doesn't work. :scream:

Ashley
今日の続きを信じるだけで
Nyandere
Posts: 817
Threads: 42
Joined: Jul 2015
Reputation: 18
10-13-2015, 10:37 PM
#22385 (3)
I did this back when I had a myBB forum. Works pretty well.

Azzy
Junior Member
Kohai
Posts: 3
Threads: 1
Joined: Sep 2015
Reputation: 0
10-14-2015, 08:42 AM
#22404 (4)
(10-13-2015, 10:37 PM)desu Wrote: I did this back when I had a myBB forum. Works pretty well.

I did it so that purchased groups have a way to expand their uniqueness more and have the ability to use a different font star (not just fontawesome ) 

Other than that the core edit method is also good :P
Yuu
ℳℴℯ❤ ( ´・‿-) ~ ♥
Cinema
Posts: 507
Threads: 8
Joined: Aug 2014
Reputation: 15
10-14-2015, 04:09 PM
#22426 (5)
That's pretty neat, would probably be better than using image stars. I'll try this, thanks for the post.