MyBB Community Forums

Full Version: How t have statistics board visible to admin only ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed phptpl and used the line below before and after index_statistics template codes:

<if $mybb->user['usergroup'] != 1 then>


it's working fine for all registered users and guests cannot see it. however I need to limit it for admin views only. how may I do that ?
<if $mybb->user['usergroup'] == 4 then>
+1 Rep... Thanks