MyBB Community Forums

Full Version: change user title font.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've tried html and that didn't work ha. so what is the secret to changing the user title font?
This seems to work:

Admin CP > Templates > Modify/Delete > "Template Set Name" > Expand > "Post Bit Templates" > Expand > postbit_author_user > Find
{$post['usertitle']}<br />
and replace with
<div style="font-family:Font Name Here;">{$post['usertitle']}</div><br />


Font Name Here == Your font: (for example: arial).


You'll need to find the other {$post['usertitle']} bits and do the same, such as in the profile template.


Edit:

Or an easy way would be to add this to the additional css of your theme:
.usertitle {
font-family:Font Name Here;
}

That way you can put:
<div class="usertitle">{$post['usertitle']}</div>

In the templates, that way you will be able to change it from the CSS system if need be.
Can I do it to individual users?

like just myself?
Chris Wrote:Edit:

Or an easy way would be to add this to the additional css of your theme:
#usertitle {
font-family:Font Name Here;
}

That way you can put:
<div class="usertitle">{$post['usertitle']}</div>

In the templates, that way you will be able to change it from the CSS system if need be.
That won't work. Because.
A) class is .usertitle in CSS. #usertitle is a id.
B) You can't use ID there.
Sorry I got mixed up. I meant for it to be .usertitle Smile.
Carey Wrote:Can I do it to individual users?

like just myself?

In functions_post.php

Find
elseif(is_array($titlescache) && !$usergroup['usertitle'])
Above it add
if($post['uid'] == 1)
		{
			$post['usertitle'] = "<spand style=\"font-family:Times New Roman\">{$post['usertitle']}</span>";
		}

I suppose your UID is 1. You can change it.
thanks, but where can I find function_post.php?
Carey Wrote:thanks, but where can I find function_post.php?

You had to upload it when you installed your board, it's in the /inc/ folder .
o alright, thanks everyone.

worked perfectly.