Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 4th Oct 2012, 07:02 AM   #1
Warrior Member
 
aruns's Avatar
 
Join Date: 2012
Location: Mumbai
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default
phpBB Registration Integration
Share on: 
fb share twitter share gplus share more share

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

aruns is offline  
Unread 4th Oct 2012, 07:11 PM   #2
Software Product Creator
War Room Member
 
SteveSRS's Avatar
 
Join Date: 2012
Location: NL => Thailand
Posts: 452
Thanks: 42
Thanked 164 Times in 93 Posts
Blog Entries: 5
Default
Re: phpBB Registration Integration
Share on: 
fb share twitter share gplus share more share

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


Last edited on 4th Oct 2012 at 07:13 PM. Reason: code look fix
SteveSRS is offline  
Closed Thread


Bookmarks

Tags
integration, phpbb, registration


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




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