expanding around phpbb

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!
Post Reply
coffeechika
Registered User
Posts: 26
Joined: Mon Oct 30, 2006 11:57 pm

expanding around phpbb

Post by coffeechika »

hi, im new to php and phpbb, i am really excited about phpbb3 and cant wait for a stable release to come out so i can start using it...

i was wondering however if i wanted to add pages onto the site and expand around the forum what would i have to do? what codes would i have to include in the pages.. are there any examples of this being done before?
i wanted to include a section where admin/mods can write articles and have them published onto a 'help' section.. and where users can write things into the system and once approved by a moderator would then be displayed as a story or something on its own page.

as you can probably tell i have no idea how to do this, i understand how the system works but wouldnt be able to code it myself without having much more time with phpbb..

anyone out there think they can help??

please let me know..

Ectoman
Registered User
Posts: 192
Joined: Sat Dec 15, 2001 3:53 pm
Location: Denver CO
Contact:

Re: expanding around phpbb

Post by Ectoman »

This is how you do it with phpBB v2.

http://www.ajquick.com/programming/phpbb/tutorial/

For Olympus the idea is the same, but the code is different.

I basically include this on all of my pages:

Code: Select all

define('IN_PHPBB', true);
$phpEx = "php";
$phpbb_root_path = '/home/httpd/vhosts/blahblah/httpdocs/phpBB/';
include_once($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
I don't know if the $auth is really needed unless you code some special auth codes for use on your pages.

coffeechika
Registered User
Posts: 26
Joined: Mon Oct 30, 2006 11:57 pm

Re: expanding around phpbb

Post by coffeechika »

thanks for the reply, only problem is i have no idea what each of those variables means..
has anyone written a guide or anything, or will anyone write any documents of v3?

Ectoman
Registered User
Posts: 192
Joined: Sat Dec 15, 2001 3:53 pm
Location: Denver CO
Contact:

Re: expanding around phpbb

Post by Ectoman »

coffeechika wrote: thanks for the reply, only problem is i have no idea what each of those variables means..


I'll try to comment them the best I can.

Code: Select all

define('IN_PHPBB', true); //this makes sure you are not a malicious script.
$phpEx = "php"; //this is the extension of the php files (basically.. ".php")
$phpbb_root_path = '/home/httpd/vhosts/blahblah/httpdocs/phpBB/'; //this is the path to your phpBB directory from your webserver's root.
include_once($phpbb_root_path . 'common.' . $phpEx); //this includes the base phpBB file to get sessions and all the requried functions (database .. etc)
// Start session management
$user->session_begin(); //this starts the session, it basically does a lot of work
$auth->acl($user->data); //afaik this gets the permissions for the user that was just started
$user->setup();//afaik this finalizes the two parts done above
coffeechika wrote: has anyone written a guide or anything, or will anyone write any documents of v3?


There isn't much of anything yet.

nwbasser
Registered User
Posts: 17
Joined: Tue Feb 28, 2006 4:05 am

Re: expanding around phpbb

Post by nwbasser »

I'm very interested in this topic as well, since I am planning on implementing an Google Maps page, articles page, etc for phpbb3.

hennie
Registered User
Posts: 9
Joined: Thu Jan 15, 2004 6:43 pm

Re: expanding around phpbb

Post by hennie »

Is it for phpbb 3.0 the same code?

coffeechika
Registered User
Posts: 26
Joined: Mon Oct 30, 2006 11:57 pm

Re: expanding around phpbb

Post by coffeechika »

thanks for that Ectoman..

so i just include that into every page and then i can cary user information across?

can anyone in the dev team tell me if there will be any official documentation with RC1 or gold?

also im looking for a coder to set this all up for me, anyone interested.. i should be getting funding soon so i can pay..

please pm me if you want the job.

thanks

User avatar
poyntesm
Registered User
Posts: 176
Joined: Fri May 13, 2005 4:08 pm
Location: Dublin, Ireland
Contact:

Re: expanding around phpbb

Post by poyntesm »

Code: Select all

$user->setup()
FYI last time I checked this sets up the users language and style.

Post Reply