Ich habe gerade versucht eine eigene Seite für mein PHPBB-Forum zu machen.
Allerdings steht da immer:
Aber eine Datei namens phpbbtest.html im Ordner subsilver2/templates existiert!!![phpBB Debug] PHP Notice: in file /includes/session.php on line 2167: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2167: strtr() [function.strtr]: The second argument is not an array
[phpBB Debug] PHP Notice: in file /includes/session.php on line 2167: strtr() [function.strtr]: The second argument is not an array
General Error
template->_tpl_load_file(): File /phpbbtest.html does not exist or is empty
Also meine erste Datei phpbbtest.php:
(sie liegt im Ordner /forum, also im Verzeichnis wo memberlist.php, index.php etc. liegen)
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$test = "hi";
$template->assign_vars(array(
'hallo' => $test)
);
page_header('Seite');
$template->set_filenames(array(
'body' => 'phpbbtest.html')
);
page_footer();
?>
(sie liegt in styles/subsilver2/templates)
Code: Alles auswählen
<!-- INCLUDE overall_header.html -->
<div>{hallo}</div>
<!-- INCLUDE overall_footer.html -->
Was mache ich falsch? Die Tempalte-Datei existiert zu 100 % in subsilver2 / Templates.
Der Standart-Style ist subsilver2.
Gruß
EDIT: Ich habe vor ein paar Tagen den Provider gewechselt. Von bplaced zu taess. Hat das auch damit etwas villeicht zu tun??
Achja, auf beiden Providern funktionierte das nicht.