eigenpagina
Geplaatst: 07 mar 2004, 18:50
ik wil graag ook een blz op het forum maken waar ik gewoon wat in wil maken. maar dus wel dat je de header en footer ziet. is dit mogelijk?
Code: Selecteer alles
#
#-----[ COPY ]------------------------------------------
#
# rename template.php and template.tpl to whatever your new page will be called.
#
# edit the following lines in template.php to point to whatever you called templates/subsilver/template.tpl:
# // assign template
# $template->set_filenames(array(
# 'body' => 'template.tpl')
# );
#
# edit templates/subsilver/template.tpl to have whatever content you want to display.
#
#
copy template.php to template.php
copy templates/subsilver/template.tpl to templates/subsilver/template.tpl
Code: Selecteer alles
<?
// Begin configuratie
$phpbb_root_path = "./"; // vul hier de url naar het forum in. als het in de map forum staat tenopzochte van de pagina waar je bent moet dit "./forum" zijn.
$page_title = ""; // vul hier de titelk in die in de balk helemaal boven in komt te staan ( in de blauwe balk van je browser).
// Einde configuratie
define('IN_PHPBB', true);
include($phpbb_root_path . "extension.inc");
include($phpbb_root_path . "common." . $phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
include($phpbb_root_path . "includes/page_header." . $phpEx);
// je php code
include($phpbb_root_path . "includes/page_tail.php");
?>
Nee, voor veel meer. Het laadt ook de gegevens uit user tabel en berekent het gebruikersniveau. Dit kan je door de pagina's heen gebruiken met de $userdata[] array.Leipo schreef:Waarvoor dient dat hele session magament ook alweer.
Toch alleen maar voor in/ uitloggen.