PhpBB 3 portals

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Locked
cybermage
Registered User
Posts: 1
Joined: Wed Nov 02, 2005 11:46 pm

Re: PhpBB 3 portals

Post by cybermage »

I like http://www.mx-system.com mx-BB portal, which will support (hopefully) phpBB3 :D
User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: PhpBB 3 portals

Post by EXreaction »

cybermage wrote: I like http://www.mx-system.com mx-BB portal, which will support (hopefully) phpBB3 :D


MXbb is pretty nice...but it lacks developers that can spend a good amount of time on it. They have been working on the 2.8 series for so long now...and it has been in the Beta 1 stage for many, many months.

So unless they are secretly putting all their effort towards 3.x compatibility, don't expect phpBB3 support for a very long time. ;)
Ectoman
Registered User
Posts: 192
Joined: Sat Dec 15, 2001 3:53 pm
Location: Denver CO
Contact:

Re: PhpBB 3 portals

Post by Ectoman »

EXreaction wrote:

Code: Select all

define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();


Overall I had to make a change to the above code, and one function in the "template.php" file to make the forum technology work on every page that includes that code. It now looks a bit like this:

Code: Select all

<?php
define('IN_PHPBB', true);
define('IN_SITE', true);
$root_path = '/home/blah/blah/htdocs';
$phpbb_root_path = $root_path.'/forums/';
$phpEx = 'php';
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
?>
Then you have to edit templates.php.. otherwise it will include your root path on any page that uses the templates! (like when I use the code 'login_box()' to display a login box).

Code: Select all

function assign_vars($vararray)
	{
	global $root_path;
		foreach ($vararray as $key => $val)
		{
			$val = str_replace($root_path, "", $val);
			$this->_tpldata['.'][0][$key] = $val;
		}

		return true;
	}
phpBB uses relative file locations for all of their files. But if you access them from outside of the 'phpBB' folder (or in my case 'forums') it will cause problems if you load any of the phpBB templates from that outside folder. I liked it better when phpBB knew what the folder it was in was called.
User avatar
Acyd Burn
Posts: 1838
Joined: Tue Oct 08, 2002 5:18 pm
Location: Behind You
Contact:

Re: PhpBB 3 portals

Post by Acyd Burn »

It is still possible - you are even able to tell the template engine where your templates are - and to change assign_vars() looks a bit strange, since it is only responsible for assigning... vars. ;)

There are no known problems with integrating phpbb into a site and also no known problems with using pages not within the forums root directory.

Image
User avatar
Rowan
Posts: 15
Joined: Sun Aug 13, 2006 4:27 pm
Location: Glasgow, Scotland
Contact:

Re: PhpBB 3 portals

Post by Rowan »

Cant wait for a final release of a good phpBB3 Portal to be released.

Im gonna use it on my forum instead of making all the .php pages and editing manually in dreamweaver everyday.

Can anyone recommend probably the best portal so far for phpBB3?
Xbox Live Tag: Rowan88
Xbox Console: Xbox 360 Premium w/ Xtreme
Xbox Live Subscription: Gold 12 Month Subscription
Xbox Backup Media: Verbatim DVD+R Dual Layer Printable


Image
User avatar
ChrisRLG
Registered User
Posts: 160
Joined: Wed Oct 11, 2006 9:47 am
Contact:

Re: PhpBB 3 portals

Post by ChrisRLG »

Is none that are live yet - so you are asking a little too early.
User avatar
Rowan
Posts: 15
Joined: Sun Aug 13, 2006 4:27 pm
Location: Glasgow, Scotland
Contact:

Re: PhpBB 3 portals

Post by Rowan »

Kool, cheers for reply.
Xbox Live Tag: Rowan88
Xbox Console: Xbox 360 Premium w/ Xtreme
Xbox Live Subscription: Gold 12 Month Subscription
Xbox Backup Media: Verbatim DVD+R Dual Layer Printable


Image
User avatar
John Hjorth
Registered User
Posts: 235
Joined: Tue May 09, 2006 3:32 pm
Location: Odense, Denmark, EU
Contact:

Re: PhpBB 3 portals

Post by John Hjorth »

There are several live out there, but naturally beta, because phpBB 3.0 is beta.
User avatar
ChrisRLG
Registered User
Posts: 160
Joined: Wed Oct 11, 2006 9:47 am
Contact:

Re: PhpBB 3 portals

Post by ChrisRLG »

Beta is short for "does not work yet" so I have been told.

I am sure that a lot of the portals do work - but until they have been tried (to breaking point) with a full forum etc - they will still be beta :)

I have notifications for this topic - because I too want a portal as soon as one is available (but after RC1 of the forum software).
Michaelo
Registered User
Posts: 106
Joined: Thu Apr 01, 2004 7:56 am
Location: Dublin

Re: PhpBB 3 portals

Post by Michaelo »

Ectoman, Just a note re accessing files outside the phpbb root should it be necessary...
Always use file_exists(string filename) where file name includes the full path to file to avoid possible remote injection.
This function will not work on remote files; the file to be examined must be accessible via the server's filesystem.

Mike
Mods: Forum Icons Enhancement, Kiss Portal Engine
Links:
Kiss Portal Engine (dev site) Stargate Portal (archive site) ...
Styles: Technika
Locked