1 (edited by nerdinaboxgaming 2012-05-09 07:54)

Topic: Logged in detection

Hey,

Im trying to set up the login menu on an external page from PunBB and am having trouble getting it to know if a user is or is not logged in.

I am using an edit of the login script from the PunBB wiki: Here

Any suggestions on doing this?

Re: Logged in detection

<?php
if ($forum_user['is_guest']){                    
    //user is not logged in
}else{
    //user is logged in
}
?>        

Have you gotten the example, that you linked to, to work?  When logging in form another page, I get sent to a confirm page that doesn't log me in.

Re: Logged in detection

Thanks. Ended up using if (!$forum_user[etc, but your method seems like less clutter