MyBB Community Forums

Full Version: <if> </if>
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So, basically what I want to do is for Administrator(group4) i want to have another user title that is non-customizable. But only will show under Administrator profile

This is the code that I have currently
Quote:<div style="text-align: center;padding-bottom: 5px;font-size: 12px;"><span style="color: #26DADB;font-family:monospace;">[STAFF]</span></div>


problem is that now it's showing for everyone, even non-administrator... how can i make it only administrator group has it ?

[Image: 333bf08ec589f6430e998b2202902064.png]



FOUND THE SOLUTION THANKS TO doylecc

:<if $post['usergroup'] == 4 then> XXXXX </if>"
Just removed the staff bro, its already obvious that you're a staff because you have an Administrator usertitle.
If you really want to make it very obvious then a group image for staff will do.
As stated, this is not required to do from your end as MyBB has this covered to differentiate STAFF from Members.
However; if you still wanna do this the technique I have given you regarding tyl count (over PM) applies here too ...