phpBB Registration Integration

by aruns
1 replies
Hi,

I am using PHPBB for my forum. My intention is if someone registers to my website, he/she will be login to forum as well, automatically. That means no need to register twice to use the forum. Is there a way forward to achieve this?
Will greatly appreciate your suggestions.
Thanks
#integration #phpbb #registration
  • Profile picture of the author SteveSRS
    Yes it can be done... however it is easier to do it the otherway around..
    register at the forum and be signed in for your site automatically.

    I've done this myself at SamsungUniverse.com

    Very basics to integrate phpBB into your site is including the following code on every page:
    PHP Code:
    //integration with forum
    define('IN_PHPBB'true);
     = (
    defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH './forum/';
     = 
    substr(strrchr(__FILE__'.'), 1);
    include (
    'common.' . ); //remove space
    include ('includes/bbcode.' . ); //remove space
    include ('includes/functions_display.' . ); //remove space

    // Start session management
     
    ->session_begin(); //remove space
     
    ->acl(); //remove space
     
    ->setup('viewforum'); 
    of course there is more too it which you can all find in the phpBB documentation.

    Edit; for some weird reason this forum strips all kind of code from what I posted even with the correct PHP tags around it
    edit2: no really doesn't want to display what I want.. contact me privately if you want the correct piece of code
    {{ DiscussionBoard.errors[7108524].message }}

Trending Topics