![]() |
|
#1
|
|||
|
|||
Porting phpBB loginNow I'm not acustomed to asking about something right away, when I've never given it a try before, but in this situation I'm completely lost.
I've searched through the phpBB2 codex, all of their scripts if you will, and am trying to find a way to make a login script linked to phpBB on my own site without having to have 2 membership databases (one for the site and another registration on the forums). Is there a way I can just pull the login script and registration systems from phpBB2 and use them on my own site's front page? And if there is a way, any push in the right direction should allow me to do the rest. Thanks! |
|
#2
|
||||
|
||||
Re: Porting phpBB loginThis is what I have done with new web sites I create. You can even try it out already... just go to www.gidnetwork.com and login with your GIDForums™ login details. They are sharing the same database.
Because my example consists of 2 different domains, it's a bit more complicated. In your case, it's a lot simpler. You just get phpBB to set a cookie for the whole domain iow. not forum.example.com or www.example.com. Make it set a cookie to .example.com. Then set the cookie path to '/' so it's available everywhere on your web site. On the web pages outside your forum, you just check if the (phpBB) cookie is set, if the user is logged in and if so, query the user database table to fetch the user data e.g. username and titles, if any. |
|
#3
|
|||
|
|||
Re: Porting phpBB loginNice, thanks for the information. A lot simpler than I thought it would be, but that is the way my mind works haha.
Can I work this the other way too? As in setting the phpBB cookie inside of my own login script from my main page on the website? |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for a free host with phpBB support | Riamus | Free Web Hosting | 6 | 22-Oct-2006 18:30 |
| Dream-catchers.be Free Web Hosting & Free phpBB Forums | hawkie | Free Web Hosting | 0 | 10-Feb-2006 17:23 |
| Free phpBB forum hosting service | kamejoko | Free Web Hosting | 2 | 24-May-2005 05:52 |
| BBFun - Free Forum PhpBB Hosting | bbfun | Free Web Hosting | 0 | 12-Mar-2005 07:37 |
| No.1 Free phpBB Forum Hosting - Experience FFH | Psan | Free Web Hosting | 0 | 11-Mar-2005 14:20 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The