MyBB Community Forums

Full Version: redirect if not logedin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i'm integrating the forum with my site and i want to redirect the user to a page if it tries to access the forum but is not logedin any idea on how i can do that ?
I guess you could put this somewhere:

if($mybb->user['uid']==0)
{
//code for redirect
}