MyBB Community Forums

Full Version: add style to user title?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there anyway to add style to custom user titles? The bit of text under a username. Can i add color and such?
There is a plugin for it but it's buggy and has a habit of messing up rank bar image tags.
Try this...... Big Grin

Admin CP >> Templates & Style >> Templates >> Member Templates >> member_profile

FIND:
({$usertitle})<br />

REPLACE:
<span style="color:#FF0000;">({$usertitle})<br /></span>



Admin CP >> Templates & Style >> Templates >> Post Bit Templates >> postbit

FIND:
{$post['usertitle']}<br />

REPLACE:
<span style="color:#FF0000;">{$post['usertitle']}<br /></span>


use any css styling you want, inside the style tag in span.... and is the user title shown on any other page except the threads and profile Huh
(2013-02-01, 01:49 PM)mmadhankumar Wrote: [ -> ]use any css styling you want, inside the style tag in span.... and is the user title shown on any other page except the threads and profile Huh


You forgot memberlist page, PM's etc , anyways thanks for this Smile
I was wanting to change it for each member. Thanks though.
Dude, I just used the same exact thing for username style on the title, and it worked fine.
EX:
INSTEAD of using:
<span style="color: black;">{username}</span>
Use this on the title:
<span style="color: black;">Administrator</span>

It should work fine
You could theoretically make it so that the HTML isn't stripped from the ACP by editing the code. That should work, right?
I just made a tutorial on this:
http://community.mybb.com/thread-133913.html
I am looking to do this for individual users. Not groups.
Oh....