Ich versuche gerade eine Custom-Page bei phpBB zu machen, die leider alles andere als funktioniert.
Der PHPBB_ROOT_PATH ist http://localhost/ein_ordner/forum - somit sieht der Kopf meiner *.php-Datei so aus:
http://localhost/ein_ordner/forum/file.php
Code: Alles auswählen
<?php
global $phpbb_root_path;
global $phpEx;
global $user;
global $auth;
// Specify the path to your phpBB3 installation directory.
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
// The common.php file is required.
include($phpbb_root_path . 'common.' . $phpEx);
// since we are grabbing the user avatar, the function is inside the functions_display.php file since RC7
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
Code: Alles auswählen
$template->assign_vars(array(
'CUSTOMPAGE_USERNAME' => "Username-Test",
));
$template->set_filenames(array(
'body' => 'template.html',
));
page_footer();
?>
Was mache ich falsch?
MfG und Frohe Ostern