MyBB Community Forums

Full Version: Change User Title for admin/mods only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

MikeInToshx

Hey guys,

I'd like to change the font-color of the user titel of moderators/admin/super admin..

[attachment=31146]
In postbit template find:

{$post['usertitle']}<br /> and replace with this one!

<if in_array($post['usergroup'], array('3', '4', '6')) then>
<span style="font-size: 20px;">{$post['usertitle']}</span><br /><else>{$post['usertitle']}<br />
</if>

Edit font-size and user group!


Or
<if $post['usergroup'] == 3 then>
<if $post['usergroup'] == 3 || $post['usergroup'] == 4 || $post['usergroup'] == 6 then>

MikeInToshx

Hey marcus,

Worked for super mod, but didn't change for moderators.
Also, Is it possible to give "Administrator" a diff color/style?
Admin Panel >> Users & Groups >> Groups >> edit required group (admin / super Mod / Mod) >> Default User Title

Default User Title field accepts regualr html format codes. for eg. for Super Moderators :
<span style="color: #CC00CC;"><strong>Super Moderator</strong></span>

MikeInToshx

Oh I didn't even try that.. Thought it didn't support HTML Big Grin

Thankies!
(2014-03-05, 02:47 PM).m. Wrote: [ -> ]Admin Panel >> Users & Groups >> Groups >> edit required group (admin / super Mod / Mod) >> Default User Title

Default User Title field accepts regualr html format codes. for eg. for Super Moderators :
<span style="color: #CC00CC;"><strong>Super Moderator</strong></span>

The problem is that when they change their default user title it will no longer work!

You need to use template conditional that will always maintain font size!