kurz zur Erklärung was ich mache.
Ich habe ein Wiki mit in das Forum gebaut udn möchte dass in der viewonline.php auch angezeigt wird "... Betrachtet das Wiki".
Beim Impressum habe ich es auch geschaft, aber will jeden zusätzlichen Code im Wiki vermeiden deswegen frage ich welche dafür wichtig ist.
Hier meine Impressum.php
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_IMPRESSUM);
init_userprefs($userdata);
// Load the appropriate impressum language file START
if( isset($HTTP_GET_VARS['mode']) )
{
switch( $HTTP_GET_VARS['mode'] )
{
default:
$lang_file = 'lang_impressum';
$l_title = $lang['impressum'];
break;
}
}
else
{
$lang_file = 'lang_impressum';
$l_title = $lang['impressum'];
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
// Load the appropriate impressum language file ENDE
$page_title = $lang['impressum'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$template->set_filenames(array(
'body' => 'impressum_body.tpl')
);
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
PS: Ich könnte es auch einfach ausprobieren, aber mir wäre es lieber den Code zu verstehen.