Seite 1 von 1

Eigene Navigation mit include-Befehl...

Verfasst: 30.08.2003 17:49
von chris3007
Halli hallo,

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 />&nbsp; </span> --> 
							<table cellspacing="0" cellpadding="2" border="0">
								<tr> 
									<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="index.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_overview.gif" border="0" alt="Uebersicht" hspace="3" /></a>&nbsp; &nbsp;<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">&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" border="0" alt="{L_SEARCH}" hspace="3" /></a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" border="0" alt="{L_MEMBERLIST}" hspace="3" /></a>&nbsp; &nbsp;<a href="statistics.php" class="mainmenu"><img src="templates/subSilver/images/icon_mini_best.gif" border="0" alt="Bestes Wochen-/Monatsmitglied" hspace="3" /></a>&nbsp;
										<!-- BEGIN switch_user_logged_out -->
										&nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" border="0" alt="{L_REGISTER}" hspace="3" /></a></span>&nbsp;
										<!-- 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>&nbsp; &nbsp;<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>&nbsp; &nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" border="0" alt="{L_PROFILE}" hspace="3" /></a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" /></a>&nbsp; 
									<!-- BEGIN switch_user_logged_in -->
									&nbsp;<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>&nbsp;
									<!-- 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>&nbsp;
									<!-- 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>&nbsp;
									<!-- END switch_user_logged_in -->
									</span></td>
								</tr>
							</table>
						</td>
					</tr>
		</tr>
</table>


		<br />
Hat jemand eine Idee, wie ich die externe Navigation mit dem include-Befehl einfüge, so dass sie auf jeder Forumseite zu sehen ist ?

Verfasst: 30.08.2003 19:40
von codemonkey
Dein Problem hat sich wohl in diesem Thema gelöst, oder?