Site + Forum

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Ideas Centre
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Mr.Stone
Registered User
Posts: 32
Joined: Sat Nov 25, 2006 12:59 pm

Site + Forum

Post by Mr.Stone »

Hi all, I want to link my forum with my html site.

I want to do the next things: I want to display the news (everything in forum ID=2) on the index page of my website. I want a block to login, if logged in a block with the following things:
Edit Profile
My profile page
View new posts (0)
View your posts (541)
Bookmarks
Subscribed
Private messages
--------------------------------------------------------------------------------
Logout [ Stijn ]
I want a block with the most recent reactions (in topics).

And a who is online block.

I first tried to do this with phpBB3Portal, but I think it's better to do it this way.

I have the codes for the blocks (from phpBB3Portal) but I really don't know how to connect those file's with forum files, and forum database.
www.24fans.be the dutch 24 fansite with forums.
BetaDevil
Registered User
Posts: 45
Joined: Thu Apr 13, 2006 4:39 pm
Location: Netherlands

Re: Site + Forum

Post by BetaDevil »

You need to add this code to the top of the page and then you can add the phpBB3Portal-blocks but you have to convert the variables in the template to normal PHP.

Code: Select all

define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup(); 
Mr.Stone
Registered User
Posts: 32
Joined: Sat Nov 25, 2006 12:59 pm

Re: Site + Forum

Post by Mr.Stone »

BetaDevil wrote:but you have to convert the variables in the template to normal PHP.
Thx, so far

what do you mean with convert the variables ? Is there any generator for, do I need to do it manually, is there a tutorial somewhere, ...
www.24fans.be the dutch 24 fansite with forums.
trickoff
Registered User
Posts: 513
Joined: Mon Jan 07, 2008 12:23 am

Re: Site + Forum

Post by trickoff »

Edit: found my own answer.
Mr.Stone
Registered User
Posts: 32
Joined: Sat Nov 25, 2006 12:59 pm

Re: Site + Forum

Post by Mr.Stone »

Bump
www.24fans.be the dutch 24 fansite with forums.
Locked

Return to “[3.0.x] Support Forum”