Web Hosting Talk







View Full Version : My page with PhPbb


Rodeo
08-23-2004, 12:13 AM
Hey ive asked this question in the Phpbb forum without any success so here it goes.

I got my main page with a login in it, i want it to be the same login as with the phpbb, so when i would enter the forum and i already loged in the main site, i want the forum to pick up that login. I know phpbb uses $userdata['session_logged_in'] .
I know there has to be a way to create that $userdata['session_logged_in'] so when phpbb opens up the $userdata['session_logged_in'] is alreaydy there

I dont know if i was clear on this one, if you think you can help and need more clarification let me know
thx in adcance

eq-sys
08-23-2004, 12:16 AM
Hi,

It's a little unclear to me what you are asking, but what you could do is have your login page on your main page set a cookie for phpBB to pickup as well, assuming of course they are on the same domain.

If you need specific code for this, let me know.

Thank you.

e-zone
08-23-2004, 01:01 AM
What do they log into on the mainpage currently ?

if you just want a simple login only working for phpbb on your
frontpage, check out phpbbhacks.com search "frontpage login"

regards e-zone

mixDev
08-23-2004, 08:29 AM
I guess you have two seperate databases. ie, you want to integrate the phpbb to other tools in your site. If thats the case, it will be complicated a bit because phpBB is storing the SESSION information in the table phpbb_sessions. So even if you could create the cookie and session variables correctly, you have to change great amount of code. Open the login.php file in an editor and you will know what i mean.

So i would suggest you do other sections around phpBB. (if you havnt done it already). So other modules can use the same login system of phpbb.

Rodeo
08-23-2004, 09:14 AM
Alrigth ill check that out guys, mixDev thx for your help thats what i was thinking that there wasnt any other way to do this,
Thx