MyBB Community Forums
Change User Title for admin/mods only - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: Change User Title for admin/mods only (/thread-151643.html)



Change User Title for admin/mods only - MikeInToshx - 2014-03-04

Hey guys,

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

[attachment=31146]


RE: Change User Title for admin/mods only - marcus123 - 2014-03-05

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>


RE: Change User Title for admin/mods only - MikeInToshx - 2014-03-05

Hey marcus,

Worked for super mod, but didn't change for moderators.
Also, Is it possible to give "Administrator" a diff color/style?


RE: Change User Title for admin/mods only - .m. - 2014-03-05

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>



RE: Change User Title for admin/mods only - MikeInToshx - 2014-03-05

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

Thankies!


RE: Change User Title for admin/mods only - marcus123 - 2014-03-05

(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!