planlos
Dies ist eine vorgefertigte Schablone.
Bitte fülle soviel aus, wie dir nur Möglich ist, du kannst auch gerne noch mehr Angaben machen.
mein Problem ist, dass ich eine Fehlermeldung im Header habe und die nicht mehr weg bekomme.
Fehlermeldung:
Parse error: syntax error, unexpected T_STRING in /global.php(23
: eval()'d code on line 15
Link zum Forum oder Screenshot:Das Forum dazu
Was wurde zuletzt geändert oder eingebaut?
Ich habe den RSS-Feed eingebaut und beim letzten Schritt (Einbau in Header) ist dann der Fehler aufgetaucht. Also liegt es definitv am Header, aber leider kann ich den Fehler im Code nicht finden.
Nachtrag: die geänderte Passage im Code:
| code: |
1:
|
<td class="topbuttons" align="center" nowrap="nowrap"><span class="smallfont"> <!--<td align="center"><span class="smallfont">//--> <td align="center"><span class="smallfont"><if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a> <a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then> <a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></else></if> <a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" /></a> |
|
Dizzy.w3
Hi planlos,
poste bitte die originale Zeile + das-wie-zu-verändern.
Außerdem ... du hast ein wBB2, postest aber im wBB3-Bereich.
Gruß
Dizzy
planlos
Thx für die Antwort und Sorry für das falsche Forum
(Kann da mal einer bitte schieben??)
ERsetzen durch:
| code: |
1:
|
<td align="center"><span class="smallfont"><a href="rss_selector.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_rssfeed.gif" border="0" alt="{$lang->items['LANG_GLOBAL_RSS']}" title="{$lang->items['LANG_GLOBAL_RSS']}" /></a> <if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a> <a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then> |
|
suchen nach (je nach Inst)
| code: |
1:
|
<a href="rss_selector.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_rssfeed.gif" border="0" alt="{$lang->items['LANG_GLOBAL_RSS']}" title="{$lang->items['LANG_GLOBAL_RSS']}" /></a> |
|
| code: |
1:
|
<td align="center"><span class="smallfont"><if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a> <a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then> |
|
kunsel
Das was Du da jetzt gerade geschrieben hast sind Templates. Der Fehler liegt in der global.php. ^^
Okay...muss korrigieren, er hat ein Problem mit dem Template in Zeile 15.
planlos
'Jupp, da war ja auch die Änderung. Deswegen denke ich, dass es eher daran liegt, als an der Global
aber ich poste mal die global (die ersten 15 Zeilen):
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
|
@error_reporting(7);
$phpversion = phpversion();
/** get function libary **/
require('./acp/lib/functions.php');
if (version_compare($phpversion, '4.1.0') == -1) {
$_REQUEST = array_merge($HTTP_COOKIE_VARS,
$HTTP_POST_VARS, $HTTP_GET_VARS);
$_COOKIE =&
$HTTP_COOKIE_VARS;
$_SERVER =& $HTTP_SERVER_VARS;
$_FILES =& $HTTP_POST_FILES; $_GET =&
$HTTP_GET_VARS;
$_POST =& $HTTP_POST_VARS; }
// remove slashes in get post cookie data... if (get_magic_quotes_gpc()) {
if (count($_REQUEST)) $_REQUEST = stripslashes_array($_REQUEST);
|
|
Shinto
ich glaub die vorletzte if abfrage ist verrutscht, die steht bei nem kommentar (//..)
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
|
@error_reporting(7);
$phpversion = phpversion();
/** get function libary **/
require('./acp/lib/functions.php');
if (version_compare($phpversion, '4.1.0') == -1) {
$_REQUEST = array_merge($HTTP_COOKIE_VARS,
$HTTP_POST_VARS, $HTTP_GET_VARS);
$_COOKIE =&
$HTTP_COOKIE_VARS;
$_SERVER =& $HTTP_SERVER_VARS;
$_FILES =& $HTTP_POST_FILES; $_GET =&
$HTTP_GET_VARS;
$_POST =& $HTTP_POST_VARS; }
// remove slashes in get post cookie data...
if (get_magic_quotes_gpc()) {
if (count($_REQUEST)) $_REQUEST = stripslashes_array($_REQUEST); |
|
versuchs ma so
Master-X
Welches Template wird bei dir in Zeile 238 in der global.php aufgerufen?
In diesem Template ist in Zeile 15 ein Fehler
Wenn du es nicht verstanden hast, poste mal die global.php.
planlos
Thx, jetzt sehe ich das klarer:
Zeile 238 Global.php
eval("\$header = \"".$tpl->get("header")."\";");
Also der Header: da ich nur ein Template habe und der einbau das Standardtemplate "header" übernimmt, sollte das machbar sein.
Standardtemplate Header Zeile 12 -17
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
|
<!--<td align="center"><span class="smallfont">//-->
<td align="center"><span class="smallfont"><if($wbbuserdata['userid'])><then>
<a href="usercp.php{$SID_ARG_1ST}">
<img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a>
<a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then>
<a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></else></if>
<a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" /></a>
<a href="memberslist.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_members.gif" border="0" |
|
eingebautes Template header: Zeile 12 bis 19
| code: |
1:
2:
3:
4:
5:
6:
7:
|
<tr> <!--haupttabelle | start//-->
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableintwidth']}" />
<tr>
<!--linketabelle | start//-->
<td style="width:155px" valign="top"> |
|
Master-X
Dann poste mal bitte das gesamte Header-Template hier, bzw. hänge es an, wenn du das Problem noch nicht behoben hast.
Für alle Neulinge nochmal zur Erklärung:
| code: |
1:
|
Parse error: syntax error, unexpected T_STRING in /global.php(238) : eval()'d code on line 15 |
|
Die Fehlermeldung besagt, dass in der global.php in der Zeile 238 ein Template aufgerufen wird, á lá
| code: |
1:
|
eval("\$header = \"".$tpl->get("header")."\";"); |
|
In Zeile 15 des aufgerufenem Template ist nun ein Fehler.
planlos
nochmal das ganze komplett
(Nicht dass ich als Spammer gelte, weil ich ganze Code-Listen poste..)
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
|
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="logobackground" align="left" colspan="2"/>
<a href="index.php?sid=$session[hash]"><img src="{$style['logoimage']}" alt="$master_board_name" title="$master_board_name" border="{$style['tableoutborder']}" width="{$style['tableoutwidth']}"/></a>
</td>
</tr>
<tr>
<!--haupttabelle | start//-->
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableintwidth']}" />
<tr>
<!--linketabelle | start//-->
<td style="width:155px" valign="top">
<!--menuebox | start//-->
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:155px" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="smallfont"><b>Menü</b></span></td>
</tr>
<tr>
<td class="tableb" align="left"><span class="smallfont">
» <b><a href="index.php">Forenübersicht</a></b><br />
» <a href="search.php">Suche</a><br />
» <a href="memberslist.php">Mitgliederliste</a><br />
» <a href="team.php">Teamliste</a><br />
» <a href="calendar.php">Kalender</a><br />
» <a href="misc.php?action=faq">Forenhilfe</a><br />
<if($wbbuserdata['userid'])><then>» <a href="usercp.php{$SID_ARG_1ST}">User CP<br></a>
» <a href="pms.php{$SID_ARG_1ST}">Private Nachrichten<br></a>
» <a href="logout.php?u=$wbbuserdata[userid]{$SID_ARG_2ND}">Abmelden</a>
</then>
<else><br />» <a href="register.php{$SID_ARG_1ST}"><b>Registrieren</b></a></else></if>
<if($wbbuserdata['a_acp_or_mcp'])><then><br /> » <b><a href="acp/index.php" target="_blank">ACP</a></b></then></if></span>
</td>
</tr>
</table>
<br />
<!--menuebox | end//-->
<!--loginbox | start//-->
<if($wbbuserdata['userid'])><then></then>
<else>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:155px" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="smallfont"><b>Login</b></span></td>
</tr>
<tr>
<td class="tableb" align="left"><form method="post" action="login.php" name="loginform"<if($allowloginencryption==1)><then> onsubmit="return encryptlogin(this);"</then></if>><span class="smallfont"><if($allowloginencryption==1)><then>
<script type="text/javascript" src="js/sha1.js"></script>
<script type="text/javascript" src="js/crypt.js"></script></then></if>
<input type="hidden" name="send" value="send" />
<input type="hidden" name="sid" value="$session[hash]" /><if($allowloginencryption==1)><then>
<input type="hidden" name="authentificationcode" value="$session[authentificationcode]" />
<input type="hidden" name="crypted" value="false" /></then></if>
Benutzername:
<input type="text" name="l_username" maxlength="50" size="20" class="input" tabindex="1" />
Passwort (<a href="forgotpw.php{$SID_ARG_1ST}">Passwort vergessen?</a>)
<input type="password" name="l_password" maxlength="30" size="20" class="input" tabindex="2" /><br /><br /><if($allowloginencryption==1)><then>
<label for="checkbox1">Verschlüsselte Übertragung?</label>
<input type="checkbox" id="checkbox1" name="activateencryption" onclick="activate_loginencryption(document.loginform);" value="ON" /></then></if>
<input type="submit" value=Einloggen class="input" tabindex="3" /><if($allowloginencryption==1)><then>
<script type="text/javascript">
<!--
activate_loginencryption(document.loginform);
//-->
</script></then></if></span></form>
</td>
</tr>
</table><br />
</else></if>
<!--loginbox | end//-->
<!--searchbox | start//-->
<if($ywhome_showsearchbox==1)><then>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:155px" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="smallfont"><b>Suche</b></span></td>
</tr>
<tr>
<td class="tablea" align="left" valign="top"><form action="search.php" method="post">
<input type="hidden" name="searchuser" value="" />
<input type="hidden" name="name_exactly" value="1" />
<input type="hidden" name="onlystarter" value="0" />
<input type="hidden" name="sid" value="$session[hash]" />
<input type="hidden" name="topiconly" value="0" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="beforeafter" value="after" />
<input type="hidden" name="searchdate" value="0" />
<input type="hidden" name="sortorder" value="desc" />
<input type="hidden" name="sortby" value="lastpost" />
<input type="hidden" name="send" value="send" />
<input type="hidden" name="boardids[]" value="*" />
<span class="smallfont">Suche<br /><input class="input" type="text" name="searchstring" value="" style="width:115px" /><br /><input src="{$style['imagefolder']}/go.gif" type="image" /></span></form>
</td>
</tr>
</table><br />
</then></if>
<!--searchbox | end//-->
<!--partnerbox| start//-->
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:155px" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="smallfont"><b>Partner</b></span></td>
</tr>
<tr>
<td class="tableb" align="left">
<span class="smallfont">
<a target="_blank" href="http://www.vermieter-forum.com">Vermieter Forum</a>
</span>
</td>
</tr>
</table>
<br />
<!--partnerbox end//-->
<!--linketabelle | end//-->
</td>
</tr>
</table>
</td>
<td class="mainpage" align="center" valign="top" width="{$style['tableoutwidth']}" />
<table cellpadding="2" cellspacing="1" border="0" width="{$style['tableinwidth']}"/ >
</table>
<table cellpadding="2" cellspacing="1" border="0" width="{$style['tableinwidth']}" / >
<tr>
<td></td>
</tr>
</table> |
|
| code: |
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
|
<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="logobackground" align="center"><if($style['logoimage']!="")><then><a href="index.php{$SID_ARG_1ST}"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>
</tr>
<tr>
<td class="topbuttons" align="center" nowrap="nowrap"><span class="smallfont">
<!--<td align="center"><span class="smallfont">//-->
<td align="center"><span class="smallfont"><if($wbbuserdata['userid'])><then><a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_usercp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_USERCP']}" title="{$lang->items['LANG_GLOBAL_USERCP']}" /></a>
<a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_pms.gif" border="0" alt="{$lang->items['LANG_GLOBAL_PMS']}" title="{$lang->items['LANG_GLOBAL_PMS']}" /></a></then>
<a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_register.gif" border="0" alt="{$lang->items['LANG_GLOBAL_REGISTER']}" title="{$lang->items['LANG_GLOBAL_REGISTER']}" /></a></else></if>
<a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_calendar.gif" border="0" alt="{$lang->items['LANG_GLOBAL_CALENDAR']}" title="{$lang->items['LANG_GLOBAL_CALENDAR']}" /></a>
<a href="memberslist.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_members.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" title="{$lang->items['LANG_GLOBAL_MEMBERSLIST']}" /></a>
<a href="team.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" /></a>
<a href="search.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_search.gif" border="0" alt="{$lang->items['LANG_GLOBAL_SEARCH']}" title="{$lang->items['LANG_GLOBAL_SEARCH']}" /></a>
<a href="misc.php?action=faq{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/top_faq.gif" border="0" alt="{$lang->items['LANG_GLOBAL_FAQ']}" title="{$lang->items['LANG_GLOBAL_FAQ']}" /></a>
<if($wbbuserdata['a_can_use_acp']==1 && $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']}" /></a></then></if>
<if($wbbuserdata['a_can_use_acp']==1 && $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']}" /></a></then></if>
<a href="index.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/top_start.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TOINDEX']}" title="{$lang->items['LANG_GLOBAL_TOINDEX']}" /></a></td></span>
</tr>
</tr>
</table><br /> |
|
Master-X
Du wirst nicht als Spammer gelten, wenn du hier Hilfe in Anspruch nimmst
Poste doch mal bitte das komplette Template. Oder speicher es in eine Textdatei und hänge es an
So wird es übersichtlicher.
Nachtrag: Gut, da hat sich nun etwas überschnitten. Moment
Sicher das es aus dem richtigem Templatepaket stammt?
planlos
Danke, das war es
Leider habe ich nun noch kleine Fehler in der Anzeige, aber das kann ja nicht mehr viel sein.