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..
expanding around phpbb
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!
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!
Re: expanding around phpbb
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:
I don't know if the $auth is really needed unless you code some special auth codes for use on your pages.
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();
-
- Registered User
- Posts: 26
- Joined: Mon Oct 30, 2006 11:57 pm
Re: expanding around phpbb
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?
has anyone written a guide or anything, or will anyone write any documents of v3?
Re: expanding around phpbb
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.
Re: expanding around phpbb
I'm very interested in this topic as well, since I am planning on implementing an Google Maps page, articles page, etc for phpbb3.
Re: expanding around phpbb
Is it for phpbb 3.0 the same code?
-
- Registered User
- Posts: 26
- Joined: Mon Oct 30, 2006 11:57 pm
Re: expanding around phpbb
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
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
- poyntesm
- Registered User
- Posts: 176
- Joined: Fri May 13, 2005 4:08 pm
- Location: Dublin, Ireland
- Contact:
Re: expanding around phpbb
Code: Select all
$user->setup()
My Mods :phpBB Garage, Quote With Or Without Images, phpbb/Mantis Integration
My Blog :poyntesm's blog
My Blog :poyntesm's blog