MyBB Community Forums
MyBB Community Forums
>
Community Archive
>
Archived Forums
>
Archived Development and Support
>
MyBB 1.4
>
MyBB 1.4 General Support
> redirect if not logedin
Full Version:
redirect if not logedin
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
quasiperfect
2009-04-30, 07:37 PM
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 ?
Matt
2009-04-30, 08:39 PM
I guess you could put this somewhere:
if($mybb->user['uid']==0) { //code for redirect }
MyBB Community Forums
>
Community Archive
>
Archived Forums
>
Archived Development and Support
>
MyBB 1.4
>
MyBB 1.4 General Support
> redirect if not logedin