MyBB Tutorials

Badass userstars using FontAwesome

Submitted by AndresXZ09, , Thread ID: 4747

Thread Closed
13-06-2015, 01:10 AM
#1
Before I start, all the credits goes to Lewd @Unsuspicious here

These are starts that get the color of the group of the member (as well as it shadow)

Complexity 1/10

What you're going to end up with

[Image: vGRMslI.png]

Content locked
This content has been locked. Please login or register in order to unlock it.

RE: Badass userstars using FontAwesome

#2
You can do this with the userbar too. Nice tutorial, however.

RE: Badass userstars using FontAwesome

OP
#3
13-06-2015, 01:12 AM
akay Wrote:
You can do this with the userbar too. Nice tutorial, however.

Teach me senpai

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 />";
}

RE: Badass userstars using FontAwesome

OP
#5
13-06-2015, 01:15 AM
akay Wrote:
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

Oh god. :fp:

What?

RE: Badass userstars using FontAwesome

#6
Was easy though.
Thanks for sharing this with us. And cute Why u so angry :3 ?
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Badass userstars using FontAwesome

This post was last modified: 13-06-2015, 02:28 PM by JMPRockFm
#7
Thank you for sharing this looks amazing

RE: Badass userstars using FontAwesome

OP
#8
13-06-2015, 01:15 AM
akay Wrote:
\

Interesting, I wonder if it's possible to create a nice userbar with CSS.

RE: Badass userstars using FontAwesome

#9
13-06-2015, 04:53 PM
AndresXZ09 Wrote:
13-06-2015, 01:15 AM
akay Wrote:
\

Interesting, I wonder if it's possible to create a nice userbar with CSS.

in lewd website. they are using css userbars :v
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Badass userstars using FontAwesome

This post was last modified: 13-06-2015, 06:16 PM by cute
#10
13-06-2015, 07:16 AM
Mr_Devil Wrote:
And cute Why u so angry :3 ?

dafuq? who said i was angry?

i literally gave him the code, right here in my github repo...

13-06-2015, 05:00 PM
Mr_Devil Wrote:
13-06-2015, 04:53 PM
AndresXZ09 Wrote:
13-06-2015, 01:15 AM
akay Wrote:
\

Interesting, I wonder if it's possible to create a nice userbar with CSS.

in lewd website. they are using css userbars :v

Pretty sure I made a tutorial about it, the ones I have on Lewd are just a little more advanced.

13-06-2015, 01:15 AM
akay Wrote:
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 />";
}


lol, are you high? there's a perfectly fine inbuilt template for userbars..
[Image: ZtDsXXv.png]
1

Users browsing this thread: 7 Guest(s)