MyBB Community Forums

Full Version: Code php if user is in that usergroups
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.. Can someone post here the code php 'if user is in that usergroups'?

EX: If mybbidgroups=3 than can view page ciao.php

I'm from italy sorry for the bad english Smile
if ($mybb->user['usergroup'] == 3)
{
// then do somthing e.g to redirect to ciao.php then ;
   redirect("ciao.php" , "ANY_REDIRECTING_TEXT");
}