MyBB Community Forums

Full Version: Colored user title? [SOLVED!]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
@Phantom D regarding my suggestion:

you will need to wrap that {$post['usertitle']} variable like

<span class="title_gid_{$usergroup['gid']}">{$post['usertitle']}</span>

and in global.css add

.title_gid_x {
color:blue;
}

where x is the number of your usergroup (if it's admin then x is 4).

This is on my default theme:

.title_gid_4 {
color:blue;
}

Here's a preview http://i.imgur.com/WwVpNuM.png
(2014-07-09, 06:24 PM)Johnny S Wrote: [ -> ]@Phantom D regarding my suggestion:

you will need to wrap that {$post['usertitle']} variable like

<span class="title_gid_{$usergroup['gid']}">{$post['usertitle']}</span>

and in global.css add

.title_gid_x {
color:blue;
}

where x is the number of your usergroup (if it's admin then x is 4).

This is on my default theme:

.title_gid_4 {
color:blue;
}

Here's a preview http://i.imgur.com/WwVpNuM.png
Oh okay, now I understand. Toungue

Thanks Smile

Solved, thank you Johnny S!
hmmm... strange... same code that you have used is working on my test board... check below link.

http://mytestboards.tk/mybb/user-1.html
(2014-07-09, 06:33 PM)mmadhankumar Wrote: [ -> ]hmmm... strange... same code that you have used is working on my test board... check below link.

http://mytestboards.tk/mybb/user-1.html
That's weird, but oh well. I got it solved now, thanks for all the support guys Smile
(2014-07-09, 06:38 PM)PhantomD Wrote: [ -> ]That's weird, but oh well. I got it solved now, thanks for all the support guys Smile

yes I am glad its fixed.. bad luck that the user title codes didn't work and you are using a extended way to fix it rather than using a simple and inbuilt feature..
(2014-07-09, 06:19 PM)mmadhankumar Wrote: [ -> ]just to double check, you are adding that code in ACP >> Users & Groups >> Your Group >> "Default user title" right...

I have given this code to few members and it works perfectly. it works on my test board as well..
If you have a team logo/icon, using HTML in the Default User Title in the ACP will do what PhantomD showed in the post above:
(2014-07-09, 06:09 PM)PhantomD Wrote: [ -> ]It just appear like this:

[Image: 6bBlgU3.png]

and yes, im alone in that group. Undecided
I've reported it as a bug in 1.6 which I first spotted in 1.8 and tested it in 1.6 to make sure it wasn't just 1.8. (See here: http://community.mybb.com/thread-154457.html)
Pages: 1 2