MyBB Community Forums

Full Version: Font Style
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I thought that this was fixed in 1.8 , but no its worst right now the fact is that:
When you put a custom usertitle to somebody, the codes appear not the customtitle style Example:
instead of:
usergroup
It displays:
[HTML]
<span style="color: black">Usergroup</span>
[/HTML]

The codes and the text appeared instead of COLORING the text and the codes removed Example can be found here:
http://syndicates.web1337.net/showthread.php?tid=5

INCLUDING TO IT! the main group usertitle has the same problem , even you didnt give him a custom usertitle the main GROUP usertitle appears with the CODES
you can do the following:

1/ your template ==> postbit & postbit_classic

Find: {$post['usertitle']}

Replace: <span class="{$post['usertitle']}">{$post['usertitle']}</span>

2/ In global.css

.Administrator{
color: red;
}

.Junior Member{
color: black;
}

......
You get {$ post ['usertitle']} to class
This did not work
and even if it did work , how can i implement it to the custom usertitles?

Users & groups > user > custom usertitle
HTML in titles doesn't work anymore, not even in 1.6.

But I use this method, enjoy.

1. First of all, get this plugin (Allows you to have PHP in templates, which will help you out to get this custom usertitle).

Link: http://mybbhacks.zingaburga.com/showthread.php?tid=260

2. Install & activate it.

3. Go to "ACP > Templates & Style > choose the template you are currently using > Post Bit Templates > postbit (or postbit_classic [ONLY IF YOU ARE USING CLASSIC MODE!])

4. Find
{$post['usertitle']}

replace that with
<if $post['uid'] == UIDHERE then><i style="color: #F64EC1;font-style: normal;font-size: 13px;"><i>Custom usertitle</i><else>{$post['usertitle']}</if>

After it's done, it should look like this (In threads, posts, postbit..)
[Image: qxmxPhu.png]

Where it says "UIDHERE" replace that with your UID, and where it says "Custom usertitle" change that to whatever usertitle you want.

Feel free to change the color as well.
I will try this , but if i want to give a user Custom usertitle example:
Executive Director
Director of Human Resources


How can i !!
It wont happen!
You have not added .class to behold global.css
All Good
Solved.