2014-10-27, 06:45 PM
2014-10-27, 06:51 PM
Note that you can't put these directly in templates, but it is the PHP codes you will need.
if($mybb->user['uid'])
{
// member
}
if($mybb->usergroup['canmodcp'])
{
// moderator
}
if($mybb->usergroup['cancp'])
{
// admin
}
2014-10-27, 07:05 PM
And if you want it directly in templates, just download Template Conditionals plugin: http://mybbhacks.zingaburga.com/showthread.php?tid=464 and after activating it add this code to the index template:
<if $mybb->user['uid'] then>
Show text/HTML/CSS/variables/whatever for users logged in.
</if>
<if $mybb->usergroup['cancp'] || $mybb->usergroup['canmodcp'] then>
Show text/HTML/CSS/variables/whatever for users with ACP/MCP access.
</if>