phpbb login integration
Posted: Tue Nov 25, 2003 12:02 pm
I have a site which requires members to log in if they want to view/add certain material on the site, and I've decided instead of having 2 databases to store user info, and making them log in twice (once for the site and then again if they want to use the forum), so I'm trying to log into both at once.
First, I copied login.php into the site folder (not it's in the main folder AND /forum which is where phpbb is located), and then i changed php_root_path to 'forum/' so it would call everything from the forum folder (instead of having to copy ALL the files to the main page)
I then changed the redirects to ../index.php so it would redirect to the site instead of the forum.
Only problem is, im not sure if there is any code I'm going to have to copy on my site index.php file from the forum one (ie. to set sessions or cookies)
I tried looking over the files to see where everything was set but i couldn't figure it out..
btw, my log in form sends 'username' 'password' 'autologin' (same as the index.php log in form)
Thanks A LOT to anyone who helps
-Justin
First, I copied login.php into the site folder (not it's in the main folder AND /forum which is where phpbb is located), and then i changed php_root_path to 'forum/' so it would call everything from the forum folder (instead of having to copy ALL the files to the main page)
I then changed the redirects to ../index.php so it would redirect to the site instead of the forum.
Only problem is, im not sure if there is any code I'm going to have to copy on my site index.php file from the forum one (ie. to set sessions or cookies)
I tried looking over the files to see where everything was set but i couldn't figure it out..
btw, my log in form sends 'username' 'password' 'autologin' (same as the index.php log in form)
Thanks A LOT to anyone who helps
-Justin