und hab auch direkt nen Problem!
Ich habe meine Navigationsleiste oben in der Datei
overall_header.tpl
im verzeichnis
\templates\Odyssey
um eine Zeile erweitert, aus dem Grund weil ich eine Zeile mit individuellen Links zu selber geschriebenen PHP Seiten schaffen wollte.
Das ganze sieht jetzt so aus:
Code: Alles auswählen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- link rel="stylesheet" href="templates/Odyssey/{T_HEAD_STYLESHEET}" type="text/css" -->
<style type="text/css">
<!--
...
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}" background="templates/Odyssey/images/pc_bg.gif">
<a name="top"></a>
<table width="800" cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_PORTAL}">
<img src="templates/Odyssey/images/newlogo.jpg" border="0" alt="{L_INDEX}" vspace="1" /></a></td></tr><tr>
<td align="center" width="100%" valign="middle">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap" height="15" background="templates/Odyssey/images/headbg.gif"><span class="mainmenu"> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="{U_PORTAL}" class="mainmenu">Home</a> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="{U_MEMBERLIST}" class="mainmenu">{L_MEMBERLIST}</a> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="{U_PROFILE}" class="mainmenu">{L_PROFILE}</a> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a> <img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> </span></td></tr>
<tr>
<td align="center" valign="top" nowrap="nowrap" height="15" background="templates/Odyssey/images/headbg.gif"><span class="mainmenu">
<img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="#" onclick=window.open("ts_info-off.php","NeuesFenster","height=700,width=500,scrollbars=yes,toolbar=no,directories=no,status=no,resize=yes,menubar=no") class="mainmenu">TS-Server</a>
<img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <img border=0 src=templates/Odyssey/images/spacer.gif width=740 height=1>
</table></td>
</tr>
</table>
Code: Alles auswählen
<td align="center" valign="top" nowrap="nowrap" height="15" background="templates/Odyssey/images/headbg.gif"><span class="mainmenu">
<img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <a href="#" onclick=window.open("ts_info-off.php","NeuesFenster","height=700,width=500,scrollbars=yes,toolbar=no,directories=no,status=no,resize=yes,menubar=no") class="mainmenu">TS-Server</a>
<img src=templates/Odyssey/images/divider.gif width=2 height=15 hspace=5 align=texttop> <img border=0 src=templates/Odyssey/images/spacer.gif width=740 height=1>wie sage ich er soll den link nur anzeigen wenn der User eingeloggt ist?
Gehn muss es ja irgendwie weil er zeigt ja auch nicht "Login" ein wenn man eingeloggt ist sondern "Logout".
Wäre sehr wichtig, wenn ihr mir dort helfen könnt!
PS: PHP, MySQL code ich seit 4 jahren also kein problem wenn ich dort nen php code einbetten muss.
LG Starlight