MyBB Tutorials

Badass userstars using FontAwesome

Submitted by AndresXZ09, , Thread ID: 4747

Thread Closed

RE: Badass userstars using FontAwesome

This post was last modified: 13-06-2015, 01:17 AM by Akay
#4
13-06-2015, 01:13 AM
AndresXZ09 Wrote:
13-06-2015, 01:12 AM
akay Wrote:
You can do this with the userbar too. Nice tutorial, however.

Teach me senpai

Here's the UB code, use CSS to create a UB

PHP Code:
// Work out the usergroup/title stuff
$post['groupimage'] = '';
if(!empty(
$usergroup['image']))
{
$language $mybb->settings['bblanguage'];
if(!empty(
$mybb->user['language']))
{
$language $mybb->user['language'];
}
$usergroup['image'] = str_replace("{lang}"$language$usergroup['image']);
$usergroup['image'] = str_replace("{theme}"$theme['imgdir'], $usergroup['image']);
eval(
"\$post['groupimage'] = \"".$templates->get("postbit_groupimage")."\";");
if(
$mybb->settings['postlayout'] == "classic")
{
$post['groupimage'] .= "<br />";
}


Users browsing this thread: 8 Guest(s)