ich möchte gerne eine externe Navigation (php-Datei) in die overall-header einbinden.
Irgendwie bekomme ich das mit dem include-Befehl nicht hin.
Versteht die tpl-Datei kein php ?
So sieht mein beispielhafter Code aus (overall_header.tpl):
...
Code: Alles auswählen
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<?php
include "../navigation/hauptnavigation/hauptnavigation.php";
?>
</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="5" border="0" align="center">
<tr>
<td valign="top"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<td align="center" width="100%" valign="top"> <!-- <span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br /> </span> -->
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="index.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_overview.gif" border="0" alt="Uebersicht" hspace="3" /></a> <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" border="0" alt="{L_FAQ}" hspace="3" /></a></span><span class="mainmenu"> <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" border="0" alt="{L_SEARCH}" hspace="3" /></a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" border="0" alt="{L_MEMBERLIST}" hspace="3" /></a> <a href="statistics.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_best.gif" border="0" alt="Bestes Wochen-/Monatsmitglied" hspace="3" /></a>
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" border="0" alt="{L_REGISTER}" hspace="3" /></a></span>
<!-- END switch_user_logged_out -->
</td>
</tr>
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><a href="{U_CALENDAR}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_veranstaltung.gif" border="0" alt="{L_CALENDAR}" hspace="3" /></a> <a href="{U_ALBUM}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_foto.gif" border="0" alt="{L_ALBUM}" hspace="3" align="top" /></a> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" border="0" alt="{L_PROFILE}" hspace="3" /></a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" /></a>
<!-- BEGIN switch_user_logged_in -->
<a href="http://www.almonature.de/phpBB2/chatbox_mod/chatbox.php" target="_blank"><img src="templates/subSilver/images/icon_mini_chat.gif" border="0" hspace="3" /></a></span>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" /></a>
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_logout.gif" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" /></a>
<!-- END switch_user_logged_in -->
</span></td>
</tr>
</table>
</td>
</tr>
</tr>
</table>
<br />