Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   phpBB Registration Integration (https://www.warriorforum.com/programming/687344-phpbb-registration-integration.html)

aruns 4th October 2012 07:02 AM

phpBB Registration Integration
 
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

SteveSRS 4th October 2012 07:11 PM

Re: phpBB Registration Integration
 
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


All times are GMT -6. The time now is 08:25 PM.