GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 01-Mar-2006, 22:39
fallen_samurai fallen_samurai is offline
Awaiting Email Confirmation
 
Join Date: Oct 2005
Location: Wisconsin, USA
Posts: 29
fallen_samurai is on a distinguished road

Porting phpBB login


Now 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  
Old 07-Mar-2006, 22:51
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 741
admin will become famous soon enough

Re: Porting phpBB login


This 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.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #3  
Old 08-Mar-2006, 16:02
fallen_samurai fallen_samurai is offline
Awaiting Email Confirmation
 
Join Date: Oct 2005
Location: Wisconsin, USA
Posts: 29
fallen_samurai is on a distinguished road

Re: Porting phpBB login


Nice, 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 GIDBlogFirst week of IA training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 01:52.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.