MyBB Community Forums
MyBB Community Forums
>
Community Archive
>
Archived Forums
>
Archived Development and Support
>
MyBB 1.6
>
1.6 General Support
> Is that PHP expression valid??
Full Version:
Is that PHP expression valid??
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
TheGarfield
2011-09-11, 06:53 PM
if($mybb->user['gid'] == "1")
I mean, I want to check if the user's Group ID is equal to 1, is there a $mybb->user['gid'] variable??
PS: How can I find further MyBB variables in the future?
ranjani
2011-09-11, 06:59 PM
if($mybb->user['usergroup'] == 1
this might help :
MyBB variables List - Question
TheGarfield
2011-09-11, 07:06 PM
oh thank you very much
MyBB Community Forums
>
Community Archive
>
Archived Forums
>
Archived Development and Support
>
MyBB 1.6
>
1.6 General Support
> Is that PHP expression valid??