Aus der viewtopic_body.tpl ein Gästebuch erstellen
1. neues tpl erstellen -> viewtopic_guestbook_body.tpl und nach eigenen Vorstellungen bearbeiten
2. Öffne viewtopic.php
3. Finde:
// Load templates
//
$template->set_filenames(array(
'body' => 'viewtopic_body.tpl')
);
make_jumpbox('viewforum.'.$phpEx, $forum_id);
//
// Output page header
//
$page_title = $lang['View_topic'] .' - ' . $topic_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
4. Ersetze durch:
// Load templates
//
if ($forum_id != '9')
{
$template->set_filenames(array(
'body' => 'viewtopic_body.tpl')
);
}
else
{
$template->set_filenames(array(
'body' => 'viewtopic_guestbook_body.tpl')
);
}
make_jumpbox('viewforum.'.$phpEx, $forum_id);
//
// Output page header
//
if ($forum_id != '9')
{
$page_title = $lang['View_topic'] .' - ' . $topic_title;
}
else
{
$page_title = $lang['Guestbook'];
$gen_simple_header = TRUE;
}
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
//
INFO: Output page header: Pageheader (also das Logo und das Menü) wird ausgeblendet.
========================================================================================
Im Adminbereich eine neue Kategorie (Gästebuch) erstellen und darunter ein Forum (Gästebuch)
Gästebuch im Forum ausblenden:
1. Öffne index.php
2. Finde:
default:
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM (( " . FORUMS_TABLE . " f
LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
ORDER BY f.cat_id, f.forum_order";
break;
3. Ersetze durch:
default:
$sql = "SELECT f.*, p.post_time, p.post_username, u.username, u.user_id
FROM (( " . FORUMS_TABLE . " f
LEFT JOIN " . POSTS_TABLE . " p ON p.post_id = f.forum_last_post_id )
LEFT JOIN " . USERS_TABLE . " u ON u.user_id = p.poster_id )
WHERE f.forum_id <> 9
ORDER BY f.cat_id, f.forum_order";
break;
Das gleiche auch in der portal.php machen!
===========================================================================================
Verlinkung in der overall_header:
<a href="{U_GUESTBOOK}" class="mainmenu"><img src="templates/simsbau_de/images/icon_mini_forum.gif" width="12" height="13" border="0" alt="{L_GUESTBOOK}" hspace="3">{L_GUESTBOOK}</a>
U_GUESTBOOK und L_GUESTBOOK habe ich in der page_header.php und in den lang_main's definiert