header template

D3RB
Dies ist eine vorgefertigte Schablone.
Bitte fülle soviel aus, wie dir nur Möglich ist, du kannst auch gerne noch mehr Angaben machen.


Problembeschreibung:
Ich wollte in meiner Header den reg Button entfernen und seitem hab ich nen T-string Fehler...hatte alles wieder rückgängig gemacht aber der Fehler bleibt bestehen.

Fehlermeldung:

Parse error: syntax error, unexpected T_STRING in /board/global.php(212) : eval()'d code on line 6


Link zum Forum oder Screenshot:

http://forum.spqr-multigaming.com/index.php

hier noch meine Header:

Zitat:

<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="mainpage" align="center">
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="topnav" align="left"><span class="smallfont"><then><a href="usercp.php?sid=$session[hash]"><img id="firstbutton" src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" onmouseover="this.src='{$style['imagefolder']}/top_usercp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_usercp.gif'" /></a><then><a href="pms.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" onmouseover="this.src='{$style['imagefolder']}/top_pms_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_pms.gif'" /></a></then></if></then><else><a href="register.php?sid=$session[hash]"><img id="firstbutton" src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" onmouseover="this.src='{$style['imagefolder']}/top_register_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_register.gif'" /></a></else></if><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_acp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" onmouseover="this.src='{$style['imagefolder']}/top_acp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_acp.gif'" /></a></then></if><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" onmouseover="this.src='{$style['imagefolder']}/top_modcp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_modcp.gif'" /></a></then></if></span></td>
</tr>
<tr>
<td class="logobackground" align="center"><then><a href="index.php?sid=$session[hash]"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>
</tr>
<tr>
<td class="nav" align="left"><span class="smallfont"><a href="index.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_start.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOINDEX']}" title="{$lang->items['LANG_GLOBAL_TOINDEX']}" onmouseover="this.src='{$style['imagefolder']}/top_start_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_start.gif'" /></a><a href="team.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" onmouseover="this.src='{$style['imagefolder']}/top_team_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_team.gif'" /></a><a href="memberslist.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_members.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" title="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" onmouseover="this.src='{$style['imagefolder']}/top_members_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_members.gif'" /></a><a href="calendar.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" onmouseover="this.src='{$style['imagefolder']}/top_calendar_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_calendar.gif'" /></a><then><a href="kt_main.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_kicktipp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_KICKTIPP']}" title="{$lang->items['LANG_GLOBAL_KICKTIPP']}" onmouseover="this.src='{$style['imagefolder']}/top_kicktipp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_kicktipp.gif'" /></a></then></if><a href="search.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_search.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SEARCH']}" title="{$lang->items['LANG_GLOBAL_SEARCH']}" onmouseover="this.src='{$style['imagefolder']}/top_search_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_search.gif'" /></a><a href="misc.php?action=faq&amp;sid=$session[hash]"><img src="{$style['imagefolder']}/top_faq.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FAQ']}" title="{$lang->items['LANG_GLOBAL_FAQ']}" onmouseover="this.src='{$style['imagefolder']}/top_faq_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_faq.gif'" /></a></span></td>
</tr>
</table>

<!-- Folgender Code trennt den Header vom Loginstatus auf der Index-Seite -->
<div class="boardspace">&nbsp;</div>
<!-- Folgender Code trennt den Header vom Loginstatus auf der Index-Seite -->
mkkcs
  1. smallfont"><then><a href="usercp.php?
  2. ]}/top_usercp.gif'" /></a><then><a href="pms.php


das sind also auf alle Fälle 2 Fehler die mir gleich ins Auge springen !

vielleicht solltest Du Dir die Zeile aus einem anderem Template Pack holen, oder Dir die originalen Templates holen, und dort aus dem Header-Template, die dementsprechnde Zeile neu herauskopieren !
Alaigelen
Also ich würde nicht beschwören, dass es so ist, aber meiner Meinung nach fehlen da die ganzen "anfangs if Schleifen".

Also der erste Teil müsste (laut meinem eigen Board) so aussehen:
php:
1:
2:
3:
4:
5:
6:
7:
8:
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="mainpage" align="center">
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="topnav" align="left"><span class="smallfont"><if($wbbuserdata['userid'])><then><a href="usercp.php?sid=$session[hash]"><img id="firstbutton" src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" onmouseover="this.src='{$style['imagefolder']}/top_usercp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_usercp.gif'" /></a><a href="pms.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" onmouseover="this.src='{$style['imagefolder']}/top_pms_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_pms.gif'" /></a></then><else><a href="register.php?sid=$session[hash]"><img id="firstbutton" src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" onmouseover="this.src='{$style['imagefolder']}/top_register_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_register.gif'" /></a></else></if>
<if($wbbuserdata['a_can_use_acp']==&& $wbbuserdata['a_acp_or_mcp']==1)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_acp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" onmouseover="this.src='{$style['imagefolder']}/top_acp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_acp.gif'" /></a></then></if><if($wbbuserdata['a_can_use_acp']==&& $wbbuserdata['a_acp_or_mcp']==0)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" onmouseover="this.src='{$style['imagefolder']}/top_modcp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_modcp.gif'" /></a></then></if></span></td>
</tr>



an dieser Stelle fehlt das öffnende <if ...>
php:
1:
2:
3:
4:
5:
<td class="logobackground" align="center">
<then>
<a href="index.php?sid=$session[hash]"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a>
</then>
</if>


und an dieser ebenfalls:
php:
1:
2:
3:
4:
5:
'imagefolder']}/top_calendar.gif'" /></a>
<then>
<a href="kt_main.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_kicktipp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_KICKTIPP']}" title="{$lang->items['LANG_GLOBAL_KICKTIPP']}" onmouseover="this.src='{$style['imagefolder']}/top_kicktipp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_kicktipp.gif" /></a>
</then>
</if>


Da is beises jedoch nicht kenne schau bei den Hacks noch mal nach wie genau da sie <if ...> öffnung aussieht
D3RB
Danke für die Antworten smile

Ich weiß auch gar nicht mehr woher ich das Design habe. Es heißt Dark. und ist Grau/Schwarz/Orange und im Header sind 3 Pinguine.

Vielleicht hat es jemand noch bzw weiß jemand wo man es findet???
Alaigelen
Ich denke es liegt nicht am Design, sondern an den eingebauten Buttons, da fehlt das yif (irgendwas)> bei den zwei stellen, die ich dir rausgesucht habe. Oder aber da ist das mit dem <then> </then> </if> zu viel



Ich würde es folgendermaßen Probieren:
php:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="mainpage" align="center">
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="topnav" align="left"><span class="smallfont"><if($wbbuserdata['userid'])><then><a href="usercp.php?sid=$session[hash]"><img id="firstbutton" src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" onmouseover="this.src='{$style['imagefolder']}/top_usercp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_usercp.gif'" /></a><a href="pms.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" onmouseover="this.src='{$style['imagefolder']}/top_pms_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_pms.gif'" /></a></then><else><a href="register.php?sid=$session[hash]"><img id="firstbutton" src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" onmouseover="this.src='{$style['imagefolder']}/top_register_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_register.gif'" /></a></else></if>
<if($wbbuserdata['a_can_use_acp']==&& $wbbuserdata['a_acp_or_mcp']==1)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_acp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" onmouseover="this.src='{$style['imagefolder']}/top_acp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_acp.gif'" /></a></then></if><if($wbbuserdata['a_can_use_acp']==&& $wbbuserdata['a_acp_or_mcp']==0)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/top_modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" onmouseover="this.src='{$style['imagefolder']}/top_modcp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_modcp.gif'" /></a></then></if></span></td>
</tr>
<tr>
<td class="logobackground" align="center"><a href="index.php?sid=$session[hash]"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></td>
</tr>
<tr>
<tr>
<td class="nav" align="left"><span class="smallfont"><a href="index.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_start.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOINDEX']}" title="{$lang->items['LANG_GLOBAL_TOINDEX']}" onmouseover="this.src='{$style['imagefolder']}/top_start_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_start.gif'" /></a><a href="team.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" onmouseover="this.src='{$style['imagefolder']}/top_team_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_team.gif'" /></a><a href="memberslist.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_members.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" title="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" onmouseover="this.src='{$style['imagefolder']}/top_members_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_members.gif'" /></a><a href="calendar.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" onmouseover="this.src='{$style['imagefolder']}/top_calendar_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_calendar.gif'" /></a>

...

<a href="search.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_search.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SEARCH']}" title="{$lang->items['LANG_GLOBAL_SEARCH']}" onmouseover="this.src='{$style['imagefolder']}/top_search_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_search.gif'" /></a><a href="misc.php?action=faq&amp;sid=$session[hash]"><img src="{$style['imagefolder']}/top_faq.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FAQ']}" title="{$lang->items['LANG_GLOBAL_FAQ']}" onmouseover="this.src='{$style['imagefolder']}/top_faq_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_faq.gif'" /></a></span></td>
</tr>
</table>

<!-- Folgender Code trennt den Header vom Loginstatus auf der Index-Seite -->
<div class="boardspace">&nbsp;</div>
<!-- Folgender Code trennt den Header vom Loginstatus auf der Index-Seite -->



und beim Hack für den Kicktipp mal nachschauen wie man den Button einbaut, bzw da auch das <then> ... </then></if> rausnehmen (folgende Stelle, die ich oben nur mit ... gekennzeichnet habe)
php:
1:
<then><a href="kt_main.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_kicktipp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_KICKTIPP']}" title="{$lang->items['LANG_GLOBAL_KICKTIPP']}" onmouseover="this.src='{$style['imagefolder']}/top_kicktipp_h.gif'" onmouseout="this.src='{$style['imagefolder']}/top_kicktipp.gif'" /></a></then></if>
D3RB
es lief ja vorher auch unglücklich

Wie gesagt wollt eigentlich nur den reg Button entfernen und irgendwie ist mein Dreamwaver abgekackt...naja und nu hab ich den schlamassel ^^

edit:

Mit Deinem Code hat gefunzt jetzt muss ich nur noch die Leerstelle rausnehmen zwischen Kalender und suchen.

edit:

done. Kicktipp werd ich später rein tun...nun wieder ab an den register Button ^^

Dank Dir dafür Freude
Alaigelen
schön wenn es geklappt hat
mkkcs
noch ein kleinen Tip Am Rande!

Template grundsätzlich nicht mit Dreamweaver bearbeiten, lieber einen normalen Texteditor nehmen !!!
meeeeeeeep
Ist doch Quatsch.

Ich arbeite schon seit Jahren mit dem Dreamweaver.
Agi
Ich schweif mal n bissel ab....
Soll hier zwar keine Diskussion über Dreamweaver werden, aber es stimmt, dass Dreamweaver immer wieder mal Code selbstständig ziemlich durcheinander bringt und man den für Templates besser nicht benutzt.

Und ja, ich arbeite auch schon seit 5 Jahren mit Dreamweaver und das kam immer wieder vor. Inzwischen nutze ich den normalen Texteditor, geht am besten.
Ich habe Fertig.


Und da es scheinbar nun geklappt hat und das Problem behoben ist, mach ich hier dann mal zu.
Bei Fragen, Anregeungen, etc -> Pn an mich.