Page 1 of 1
why login twice
Posted: Thu Feb 16, 2006 9:53 am
by Vaisteen
why do i have to login and then login again when i get to the forums? it just seems kinda pointless to me, but maybe rollie has some reason for it and yes i know theres an "automatically login" option but i spend alot of time on shared computers so i don't realistically have that option.
Posted: Thu Feb 16, 2006 10:17 am
by Rollie
Well, see, I'm lazy, and while it is possible to hack phpbb to do logins from outside the forums, I've had more pressing issues to attend to =)
Posted: Thu Feb 16, 2006 1:38 pm
by Ceto
The fix involves setting the phpBB cookie to be site-wide so that all pages receive the cookie. Then, you add the following code to your site-wide initialization script:
Code: Select all
// http://www.phpbb.com/kb/article.php?article_id=143
define('IN_PHPBB', true);
$phpbb_root_path = '/path/to/phpBB/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
Optionally, add a function to determine if a user is logged in.
Code: Select all
function logged_in() {
global $userdata;
if($userdata['session_logged_in']) return true;
return false;
}
But Rollie already knew that.

Posted: Thu Feb 16, 2006 2:10 pm
by Rollie
Yeah, I dinked with that some a while back, couldn't get it working smoothly and just haven't spent anymore time messing with it.
Posted: Thu Feb 16, 2006 10:24 pm
by Vaisteen
i hate to be picky

but could yall say that in normal english
Posted: Fri Feb 17, 2006 8:27 am
by Ceto
Vaisteen wrote:i hate to be picky

but could yall say that in normal english
"It can be done, it's just a matter of finding the time to do it."
Posted: Fri Feb 17, 2006 10:16 am
by Vaisteen
ahh thank you

as i am more computer litterate than most i don't quite get all the code stuff
Posted: Fri Feb 17, 2006 10:38 am
by Hybuir
Vaisteen wrote:i hate to be picky

but could yall say that in normal english
We could fix it, but the pizza's here...

Posted: Fri Feb 17, 2006 11:13 am
by Vaisteen
mmm pizza good

Posted: Fri Feb 17, 2006 9:33 pm
by Sianni
Hybuir wrote:We could fix it, but the pizza's here...

mmmmm... now I'm hungry.