| | |
Forum and Website Merging
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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
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.
•
•
Join Date: Apr 2009
Posts: 134
Reputation:
Solved Threads: 19
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
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.
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.
All opinions count.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
![]() |
Similar Threads
- need a good PHP forum script (Existing Scripts)
- Creating a Forum website (PHP)
- Embedding a PHPBB forum into your website : Problems/Solutions (JavaScript / DHTML / AJAX)
- Would you pay to advertise your forum? (Growing an Online Community)
- phpBB 2.0.17 Bulletin Board Forum (HELP) (PHP)
- help with setting up a forum site (PHP)
- Community with forum, blogs and articles (Growing an Online Community)
- starting an internet forum (Growing an Online Community)
- Advertising on your forum site for profit (Growing an Online Community)
Other Threads in the PHP Forum
- Previous Thread: Using a variable from a page inside a page in an iFrame
- Next Thread: select box using ajax and php
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube





