Forum and Website Merging

Reply

Join Date: Nov 2008
Posts: 99
Reputation: csharplearner is an unknown quantity at this point 
Solved Threads: 3
csharplearner's Avatar
csharplearner csharplearner is offline Offline
Junior Poster in Training

Forum and Website Merging

 
0
  #1
May 14th, 2009
Hi all,

How to merge a forum into a pre-exisiting website? All what i mean is i took a forum(which has its own registration , sigin-in feature) and a preexisting website (which too have its registration and signin feature). Both are now hosted in the same domain and use different databases.

There are no registered users in forum yet but there are registered users in the website.

I want to remove the registration, log in features of the forum and merge it with the website registered data so that when users logs into the website they can access the forum too without signing in again in the forum.
I am trying with MyBB forum to merge it into website login details.

I have a vague idea that , i can insert user name and password into forum database manually and use cookies or sessions to remember the signin details when the forum is accessed from the website. But this again has some problems.

I would like to know your valuable suggestions and better ways in achieving a better solution for this problem.

Thank you
Last edited by csharplearner; May 14th, 2009 at 8:43 am.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 134
Reputation: HITMANOF44th is an unknown quantity at this point 
Solved Threads: 19
HITMANOF44th HITMANOF44th is offline Offline
Junior Poster

Re: Forum and Website Merging

 
1
  #2
May 14th, 2009
if you already have the users on the website i would just use that databse to auth the user and then use the other one you are setting up for the forum just for the data from the forum so when the user login he only has to login once unless you want to copy all the users from that databse and move it to the forum but then he would have to login twice which annoys alot of people

you will probley have to do some editing to the login form from the fourm or even get rid of it and use the one from the website
Last edited by HITMANOF44th; May 14th, 2009 at 11:09 am.
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 954
Reputation: ardav will become famous soon enough ardav will become famous soon enough 
Solved Threads: 126
ardav's Avatar
ardav ardav is offline Offline
Posting Shark

Re: Forum and Website Merging

 
1
  #3
May 14th, 2009
Duplicate the login form of the forum on your website and have it send details to the forum form handler. If the form handler doesn't send you back to the website page automatically, write in some code to do so (e.g. HTTP_REFERER). Your website probably uses a different method to keep session data alive? If so, cut and paste the 'keep session alive' bits from the forum pages (perhaps in a common.php or session.php include file) or simply include these files in your webpages. Is it possible to merge your DBs? If you use the forum auth for everything, your website DB may become unusable. There are a few ways around this, e.g. set up a new table with 3 fields: id(autoinc); forum_user_id; web_user_id and link them like this. I had a similar problem a few years ago with phpBB. I just used the phpBB system in the end and spent a week reconfiguring my old DB.
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 99
Reputation: csharplearner is an unknown quantity at this point 
Solved Threads: 3
csharplearner's Avatar
csharplearner csharplearner is offline Offline
Junior Poster in Training

Re: Forum and Website Merging

 
0
  #4
May 15th, 2009
thank you HITMANOF44th , ardav.
I am working along those lines and shall post back the results.
thank you once again
Last edited by csharplearner; May 15th, 2009 at 11:02 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC