phpbb login integration

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

phpbb login integration

Post by d3ad1ysp0rk »

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.. :oops:

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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have you checked phpBB's site, cause they probably have a howto for this.

Mac
Post Reply