943,693 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 521
  • PHP RSS
May 14th, 2009
0

Forum and Website Merging

Expand Post »
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.
Similar Threads
Reputation Points: 11
Solved Threads: 3
Junior Poster in Training
csharplearner is offline Offline
99 posts
since Nov 2008
May 14th, 2009
1

Re: Forum and Website Merging

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.
Reputation Points: 24
Solved Threads: 33
Posting Whiz in Training
HITMANOF44th is offline Offline
283 posts
since Apr 2009
May 14th, 2009
1

Re: Forum and Website Merging

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.
Sponsor
Featured Poster
Reputation Points: 1048
Solved Threads: 945
Sarcastic Poster
ardav is offline Offline
6,676 posts
since Oct 2006
May 15th, 2009
0

Re: Forum and Website Merging

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.
Reputation Points: 11
Solved Threads: 3
Junior Poster in Training
csharplearner is offline Offline
99 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Using a variable from a page inside a page in an iFrame
Next Thread in PHP Forum Timeline: select box using ajax and php





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC