MyBB Community Forums

Full Version: Hiding Board Stats from guests
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've done this many times... installed the 'template conditionals' plug in and added:

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

to the index template....

This time, no difference. What I am doing wrong?

Thanks all
Try <if $GLOBALS['mybb']->user['usergroup'] >= 2 then>
<!-- Valid user, let's show boardstats. -->
<if $mybb->user['uid'] then>{$boardstats}</if>
Thank you both. Worked. Much appreciated.