Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tips & Tricks] + [Introduction] MyBB Usergroup Styles
Author Message
Mikers
Tutorials Team Member


Posts: 141
Joined: Mar 2010
Reputation: 6
Post: #1
[Tips & Tricks] + [Introduction] MyBB Usergroup Styles
Tips & Tricks and An Introduction To...
Usergroup Styles
by Mikers

Tutorial Was Made For MyBB Beginners (and to teach vets a few new tricks perhaps)
Scroll Below "Introduction" For Various Tricks

Well hello there gent. Sit back, relax. Get a soda or something and relax in that chair of yours as you pour your eyes through this article. Unless you're sitting up, then you're insane. You should sit down. NOW. Before I hit you. Also, here's some music to listen to while you scan through.
http://www.youtube.com/watch?v=QgaCHmxmeUo

*Ahem*

Usergroup Styles. The ability to tell a forum software to decorate a username to distinguish groups from the others. We all know 'em. We all love 'em. And we all use 'em to pimp ourselves out. This little tut here is to help you utilize this feature to the best of it's ability, and to explain a bit on how it works. It's mostly for those who are new to MyBB



Introduction
Skip this section if you already know how MyBB Usergroup Styles work. This part was made simply as an introduction to those porting over from MyBB, or those who haven't figured the system out yet. If you want to see the many tricks you can do with MyBB's Usergroup Style system, scroll below this section.

Those of you that port over from phpBB or similar softwares will find usergroup styles are quite a bit different for MyBB. Whereas you mostly fill out a couple fields in phpBB, as well as selecting a color. Usergroup Styles in MyBB run completely on HTML code, as well as CSS and a few other languages if you find out how to cleverly utilize them.

To edit your usergroups' styles, go to...
ACP -> Users & Groups -> Groups -> Edit Group (Options Button)
The Username Style field is what'cha wanna edit.

Now, we'll check the code for one of the usergroups, in this case, Administrators. In this case, the code I currently have for my Admin's styles (very similar to the original)
Code:
<span style="color: #FF0000;"><strong><em>{username}</em></strong></span>
Full HTML in all it's glory.

Just remember, it's always simply based on HTML.

{username} should obviously dictate where the username will appear within the HTML code. And in case you're a bit rusty on HTML (which if you don't know, you SERIOUSLY need to learn), here's what each of 'em mean.

<span style="color: #FF0000;"> - This spans a different style of HTML, in this case, color. You can change the color a username appears by changing the hex code, which I highlighted in red. The hex code I highlighted is also red. If you don't really know your hexes, go find a color picker. Like this one.
http://www.colorpicker.com/
<strong> - Basically just means "Bold".
<em> - Means "emphasize". Really, all it does is just italicize it halfway.

These are of course not the only HTML functions you can use. You can use just about any HTML function in a username if you're clever enough. Below are some tips and tricks to help you with pimping yourself out.


Tips & Tricks

Pure Basic Emphasis
I suppose to artificially lengthen this tutorial (Lol), I'll add in the basic functions to distinguish a username/usergroup.
Code:
<strong>{username}</strong>
Appears As: Mikers
-
Code:
<i>{username}</i>
Appears As: Mikers
-
Code:
<u>{username}</u>
Appears As: Mikers
-
Etc.
Now for more fun stuff.


"Tagging" Text
Not really sure what to call it other than "tagging" text due to it being right next to the username. But it's pretty simple. In this case, I'll take my group "Retired Staff Members" as an example.


Code:
{username}<span style="color: #FF0000;"><strong>⌠</strong></span>
Appears As: Mikers⌠
Basically just places text with optional decoration next to their name (you can combine this with decorating the username too of course.

I do recommend you distinguish the text next to their name, to prevent others from passing themselves off as members of that group of course (if you chose to keep the username normal).

I personally like using this sometimes, due to the fact it allows me to help distinguish some groups from regular users without having to use any real fancy effect.

It's also pretty useful for people who run gaming clans and often place the text next to clan members usernames.


"Tagging" Images
It's a common function, but I think some people may overlook it a bit. This is for those people who want images next to their usernames.

This code,
Code:
<img src=LINK/PATH TO IMAGE><span style="color: #FF0000;"><strong>{username}</strong></span>
Will make your username appear as
[Image: FounderStar3.png]Mikers
(whatever you placed on the image path/link will appear next to the name)
Yup. A star next to my name.

Do I want two stars? Heck yes I do.
Code:
<img src=LINK/PATH TO IMAGE><span style="color: #FF0000;"><strong>{username}</strong></span><img src=LINK/PATH TO IMAGE>
Will make your username appear as
[Image: FounderStar3.png]Mikers[Image: FounderStar3.png]


Username Image
The ultimate "I AM THE BOSS" tag. This is NOT good to be used with usergroups who have multiple members, but for you admins out there who have your own usergroup, or if you're just a single admin, it's pretty cool.

Alright, this...
Code:
<img src="LINK/PATH TO IMAGE" alt="{username}"/>
Appears As: [Image: MichaelValentine3267387.png]
It replaces your text username with an image of your design.

As said, it's only good for a usergroup that was only meant for a single member.

There IS a way to allow it so users (or just admins/founder/staff) can place a link in profile field and replace their username with an image, but that's best suited for it's own tutorial, which I'll probably add some other day.


There's many many ways to customize group styles, so explore and try some different ways out. You may be pleased with what you come up with.




My Next Tutorials
Yeah, I know. This wasn't really a good tutorial. Mostly I created it as a filler to continue to work on my larger tutorials I'm creating. So as something to look forward to, the tutorials I'm working on are...

Registration Form On Index
Embed a quick registration form on the index for a no-hassle registration for users. Includes CAPTCHA support, and optional check boxes for "Are You Over {Age}?" and "I Agree To The {link}Terms of Services{/link}". So look forward to that.

Full Length/Featured Guide On Creating Custom MyBB Themes
It's about time the MyBB Community had a large manual to creating themes, methinks. So I'm gonna be doing that for all of you who need it.


Later for now, gents.
04-22-2010, 04:02 PM
Conor Calby
Posting Freak


Posts: 946
Joined: Jan 2010
Reputation: 15
Post: #2
RE: [Tips & Tricks] + [Introduction] MyBB Usergroup Styles
Thanks for the nice tutorial Mikers! I didn't know you could have an image as a username learn something new everyday

MyBBSource Support Team Member - MyBBSource Tutorials Team Leader
Official MyBB Support Tech
If I helped, why not rep me
04-23-2010, 02:12 AM
darkly
Junior Member


Posts: 38
Joined: Dec 2009
Reputation: 0
Post: #3
RE: [Tips & Tricks] + [Introduction] MyBB Usergroup Styles
(04-23-2010 02:12 AM)ccalby Wrote:  I didn't know you could have an image as a username

Me too.

Anyway, thanks for the tutorial!
04-25-2010, 05:32 PM
Mikers
Tutorials Team Member


Posts: 141
Joined: Mar 2010
Reputation: 6
Post: #4
RE: [Tips & Tricks] + [Introduction] MyBB Usergroup Styles
You're welcome.

As said, this tutorial's mostly just a filler. Heh.
04-25-2010, 06:29 PM
euantor
Posting Freak



Posts: 870
Joined: Jun 2009
Reputation: 7
Post: #5
RE: [Tips & Tricks] + [Introduction] MyBB Usergroup Styles
Nice tut Thanks for sharing bud. You can also do some other cool stuff using CSS tricks ^^ I've seen some nice stuff using background images showing the user's rank and everything haha
04-25-2010, 08:30 PM
kdog2fast
Member


Posts: 101
Joined: Jan 2010
Reputation: 1
Post: #6
RE: [Tips & Tricks] + [Introduction] MyBB Usergroup Styles
Very useful tutorial, thank you.
04-26-2010, 07:52 AM
Mikers
Tutorials Team Member


Posts: 141
Joined: Mar 2010
Reputation: 6
Post: #7
RE: [Tips & Tricks] + [Introduction] MyBB Usergroup Styles
(04-25-2010 08:30 PM)euantor Wrote:  Nice tut Thanks for sharing bud. You can also do some other cool stuff using CSS tricks ^^ I've seen some nice stuff using background images showing the user's rank and everything haha

Yeah, I love using CSS styles myself. Can create some amazing things with it.

Also, you're welcome gents. Bit surprised how many responses this got.
04-26-2010, 08:15 AM
Don+
Member


Posts: 68
Joined: Aug 2010
Reputation: 0
Post: #8
RE: [Tips & Tricks] + [Introduction] MyBB Usergroup Styles
Nice Miker
08-21-2010, 10:28 AM
slavalobster
Junior Member


Posts: 3
Joined: Nov 2010
Reputation: 0
Post: #9
RE: [Tips & Tricks] + [Introduction] MyBB Usergroup Styles
Thank Mikers. . It's very helpful for me
11-09-2010, 05:55 AM
slankeydoodle
Member


Posts: 50
Joined: Jan 2010
Reputation: 0
Post: #10
RE: [Tips & Tricks] + [Introduction] MyBB Usergroup Styles
This will be helpful to the noobs at mybb/html
11-14-2010, 08:09 AM
 




User(s) browsing this thread: 2 Guest(s)