Integrate my site registration with phpbb registration ( 12 Views )

no kitty!
  1. Hi,

    I've created a site where the user has to register and login to access the content. I've also created a forum using phpbb which at the moment requires a separate login to post on this forum. Anyone integrated their site registration and login with the phpbb registration and login so that the user only has to register once at the site registration and then login once which will give them access to everything?

    Thanks in advance for your help.

    (mustafa, Senegal)

  2. dont have specific experience with phpbb, but I have expanded other such systems. I would look at the DB structure that comes with phpbb and just use that as your registration info, maybe add extra fields if you need to.

    (ismail, Armenia)

  3. That is exactly what I'm working on right now.

    I have integrated the registration part so far, just need to integrate the login which I believe is a matter of adding cookies, but I'll have to look at the code obviously.

    I had my members on a simple member table. When I installed phpbb, I added the usernames, passwords and emails from the member table to the phpbb user table. There are still tests I need to run, though.

    (asuman, United States)

  4. could you post a run-thru of the changes you had to make when you get yours integrated?

    Anyone know of a mod or something like a mod that would allow easy integration with an existing sites registration process?

    (_TATLI_BELA_, Cook Islands)

  5. Well, the major change was the registration process but it wasn't that big really. I just copied the INSERT query used in usercp_register.php to my registration page with some small changes to the query, like leaving some values empty and other fields to default values.

    So, when a new user registers to my website, his/her username, password and email goes to the phpbb user table along with other phpbb values, and the additional info the new user provided, goes to another table along with the user_id of the phpbb table.

    I guess that I could have just made one table for everything, but since I already had members before integrating the phpbb board, it would have taken me a lot of time to go through all my files and change what needed to be changed.

    (Ben, Nepal)

  6. Read the code also. I am not sure about phpBB, but other systems use more than just a simple md5 or crypt function to verify a user.

    (ahmet, Portugal)

  7. Here's one
    http://www.ajquick.com/programming/phpbb/tutorial/

    OK I saw another simpler one the other day but can't remember what forum? If I see it again, i'll come in here to post the link

    Edit later

    http://www.phpbb.com/kb/article.php?article_id=143

    ^^ I think the above is closer to what you wanna do.

    (fatih, Bahrain)

  8. I do this all the time. It's dead easy. Put this at the top of every PHP page in your site:

    PHP Code:

    <?

    define
    ('IN_PHPBB', true);
    $phpbb_root_path = 'phpbb/';
    include(
    $phpbb_root_path . 'extension.inc');
    include(
    $phpbb_root_path . 'common.'.$phpEx);

    //
    // Start session management
    //
    $userdata = session_pagestart($user_ip, PAGE_VIEWMEMBERS);
    init_userprefs($userdata);
    //
    // End session management

    You have to edit $phpbb_root_path to show where PHPBB is in relation to your page.

    Once this code is in, you can use $userdata['user_id'] to get the ID of the currently logged in user. If there's no user logged in, it's -1

    ($userdata['username'] gives you the username, etc - you can enter any field in the PHPBB users table.)


    Amorya

    (rukiye, Reunion)



Related Topics ... (or search in 1.720.883 topics !)

integrate site, mailing, forum registration - how you do it? (1)
using phpbb registration for entire site (3)
best way to integrate two registration systems?? (1)
ad networks (or something like that) that have offers to integrate into registration? (12)
any networks where i can integrate co-regs into a registration form? (4)
phpbb - having a separate registration page (3)
site registration form like... (3)
help: domain name registration on a site. (1)
only one registration for site and for forum (7)




copyright © 2007-2031 Pfodere.COM ( 4 Pfoyihuee Online )

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
1.6118