MyBB Central

Full Version: Can User CP?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey, I'm working on a modification to the Spoiler plugin. However, I'm a total noob at MyBB coding, and at PHP in general. So, what I was wondering was if their's a function to see if a user can access UCP? I know there's $mybb->usergroup['cancp'] and $mybb->usergroup['canmodcp'], but is there one for the User CP, too?
Everyone can access UserCP.
No, I'm trying to make it so that guests can't access the spoilers. usergroup['gid'] has not worked for me, not in the seven ways I've tried.
Can you post your mycode please.