Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln phpBB 3.0 hat das Ende seiner Lebenszeit überschritten
phpBB 3.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 3.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf die neuste phpBB-Version, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
<?php
/***************************************************************************
* DATEINAME.php
* -------------------
* begin : Saturday, Dec 20, 2003
* email : -
* $Id: $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
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
//
//
// Start output of page
//
$page_title = $lang['Index'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'dateiname.tpl')
);
//
// Generate the page
//
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
weil im ordner "includes/" kein page_header.php ist und so...
<?php
/***************************************************************************
* DATEINAME.php
* -------------------
* begin : Saturday, Dec 20, 2003
* email : -
* $Id: $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
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
//
//
// Start output of page
//
$page_title = $lang['Index'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'dateiname.tpl')
);
//
// Generate the page
//
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
weil im ordner "includes/" kein page_header.php ist und so...
Gruß
Was soll der Mod den bewirken?
Evtl. wurde er schon von jdm. anderes "übersetzt
@ Mods bitte verschieben nach phpBB 3.0: Mods und Styles
Dr. Death, du weißt schon warum ich es hier rein schreibe
mein Editor zeigt mir einen Fehler in dieser Zeile an:
// A typical usage for sending your variables to your template.
$template->assign_vars(array(
'THIS_VAR' => $this_var, 'ANOTHER_VAR' => do (something),
));
kann es sein, dass es eigentlich so heißen sollte:
// A typical usage for sending your variables to your template.
$template->assign_vars(array(
'THIS_VAR' => $this_var,
'ANOTHER_VAR' => do_(something),
));
// A typical usage for sending your variables to your template.
$template->assign_vars(array(
'THIS_VAR' => $this_var,
'ANOTHER_VAR' => $another_var,
));