This is a discussion on "php bb/forum" within the PHP Forum section. This forum, and the thread "php bb/forum are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
php bb/forum
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
php bb/forum
Happy Holidays friends!
I was wondering if it is possible to implement any bulletein boad with my existing user table! what I meant is I alrady have a page where users signup to log in. Now I want to use the same user credential to use the bulletein board. Could some one pls explain how can i implement it. |
|
|
|
||||
|
Re: php bb/forum
It would probably take a lot of queries, what does your user table look like?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: php bb/forum
My user table has following field
userid(which is email address), firstname, middlename, lastname, address, city, country, age, gender, education and current profession. you can view it at http://www.bangladeshilivingabroad.com/signup.html |
|
||||
|
Re: php bb/forum
PHPBB2 keeps sessions using cookies. Making the cookies extend to your main site is a fairly simple task.
There is a small complication with keeping the PHPBB2 sessions active when linking from your integrated main site to your forum. You have to use the append_sid() function on all the links to your forum. It is also recommended to do this with all links that point to the mainsite, but it is not required. Lets start with a simple file that we will include in all your main site pages. This file will take care of the cookies PHPPBB2 uses and allow us to use PHPBB2 defined functions.
Now for the append_sid() function, here is an example of how the function can be use on your URLs.
Then you simply call the variable when you want the link.
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Last edited by saltedm8; Dec 28th, 2007 at 19:20. |
|
|||
|
Re: php bb/forum
Do you mean you already have a database which has some usernames and passwords.
Now, you want to implement another forum and for people who have registered their usernames and passwords earlier, you want them to login into the new forum using the same usernames and pasword; right?
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
|
|||
|
Re: php bb/forum
First of all thank you very much to "Saltedm8" for your time to post such a long and descriptive posting. I will have to sit down and understand the whole thing. I am a novice in the subject so it will probably take time for me.
Now to Rohan, you got that right. I want the existing registerd people to use the BB using the same credential when they signup to the site. And also new people who sign up to the site should use the same id and password. I do not want user to register twice. I hope you understand. |
|
|||
|
Re: php bb/forum
The simplest solution I can think of is:
1. Change the headers of your existing database and make them similar to those of the table in forum database. Import this database into new forum database. 2. Now point your existing login script and registration form to the forum login form and registration form.
Last Blog Entry: Cross browser nuisance (Feb 11th, 2008)
|
|
||||
|
Re: php bb/forum
if you want to keep the same credentials, there is a mod that can help you add custom fields to the phpbb register form, and then you can just copy ( migrate ) your existing users and put them into the phpbb users table ( if you did what i said above, you will be using phpbb's database table, not a new one and you cant use the one you already have either )
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
|
||||
|
Re: php bb/forum
Surely the easiest thing would be to backup your table, install the phpBB forum database, and add your values to the correct fields in the new MYSQL database?
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: php bb/forum
it would be but you have to make sure you change some of the values in the saved file to 'match' the mysql tables and database info of phpbb
for example you will have to change my_table to phpbb_table my_username to phpbb_username ...etc ( these are not the actual values they are just examples )
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Paid Forum Posting - Political Forum | entropy | Job Opportunities | 0 | Sep 22nd, 2007 03:13 |
| Best forum -> news script/forum? | limezor | Scripts and Online Services | 4 | Aug 21st, 2007 15:45 |
| Really like this forum | grandadbob | Introduce Yourself | 8 | Apr 16th, 2007 09:52 |
| Hello Forum | Gordon | Introduce Yourself | 15 | Dec 23rd, 2006 09:00 |
| HotSeoTalk.com - SEO Forum Search Engine Optimization Ranking Marketing forum | hotseotalk | Link Building and Link Sales | 1 | Aug 19th, 2006 09:43 |