MyBB Community Forums

Full Version: Group Styles/Legend
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I was just wondering how you change the colour of user groups, and add such effects as the strikeout through 'banned'? I'd like to add icons too, such as the star in front of administrators, newspaper in front of Editors, but I have no idea how.

If someone could point me in the right direction, I'd appreciate it. Thanks! Toungue
Users & Groups >> Groups >> *group* >> Username Style

You can add X/HTML in that box, just make sure the "{username}" is present.
I see, so say I wanted to add an icon infront of a specific group name, I'd just use <img src="icon.png">?

Does the icon need to be in a specific folder on my server? or can it be an online link?
Go to the area said above, and to add certain stuff read below:

Images:
<img src="IMGURL" />{username}

Color:
<span style="color:COLOR">{username}</span>

Strike:
<strike>{username}</strike>

It's basic HTML. Smile


Edit: It can be an online link or on your server.
(2011-01-12, 09:27 PM)Derek M. Wrote: [ -> ]Go to the area said above, and to add certain stuff read below:

Images:
<img src="IMGURL" />{username}

Color:
<span style="color:COLOR">{username}</span>

Strike:
<strike>{username}</strike>

It's basic HTML. Smile


Edit: It can be an online link or on your server.

Thanks! Does it have to be a specific folder on the server? /images or another directory inside /images?

..or does it not matter. Toungue

(2011-01-12, 09:41 PM)Nerve Wrote: [ -> ]
(2011-01-12, 09:27 PM)Derek M. Wrote: [ -> ]Go to the area said above, and to add certain stuff read below:

Images:
<img src="IMGURL" />{username}

Color:
<span style="color:COLOR">{username}</span>

Strike:
<strike>{username}</strike>

It's basic HTML. Smile


Edit: It can be an online link or on your server.

Thanks! Does it have to be a specific folder on the server? /images or another directory inside /images?

..or does it not matter. Toungue

It doesn't have to be. Depends on how strict you are on where your files are located.
I see, I guess it's best off to keep everything tidy in /images

Thanks guys. Smile
I've added an icon, but it looks too high next to the name, is there anyway to align the image/text for the usergroup? so it looks nice on the Who's Online list.
Not that I know of, you'll probably have to re-size it.


Edit: Change the font size of the name maybe?
(2011-01-12, 10:03 PM)Derek M. Wrote: [ -> ]Not that I know of, you'll probably have to re-size it.


Edit: Change the font size of the name maybe?

*cheeky* could you possibly show me the code? ^^
(2011-01-12, 10:03 PM)Derek M. Wrote: [ -> ]Not that I know of, you'll probably have to re-size it.
You can resize images with HTML. Confused

<img src="img/path/here.png" style="height: 16px; width: 14px;" />

Nerve, you want something like this:

<img src="pic/here.png" style="vertical-align: middle; margin-top: -1px;" />
Pages: 1 2