How Would I use the SMF session system to verify if someone is an Administrator / Mod and so on... I tried to find some topics in the forums but I had no luck.. Thanks in advance.
Edit: I've done some more researching and found how to use the session management... But I'm unable to view content, Even If I am in the $user_info['ID_GROUP']
What code are you currently using?
sorry, I've been gone for the past few weeks. at the moment I am using
if($user_info['is_admin']){
print "Welcome Back dewd!";
}else{
print "Test Error Message";
}
But I wanted to use like if($user_info['GROUP_ID'] = 1) type of thing
if (in_array(ID_OF_GROUP, $user_info['groups']))
{
echo 'Hello';
}
else
{
echo 'bye';
}
Now with the $user_info['groups'] am I able to set that to specific groups (ie: admin/mods)?
Thanks again for the help you are providing.
Edit
I've managed to get it to work for one group... But I need it for multiple groups
I think this should help. How to use the SMF user system outside of SMF (http://docs.simplemachines.org/index.php?topic=789)
That answers a lot of questions I would have had. Thanks for the link :)