Spielteufel
ausführliche Problembeschreibung:
Die Threads werden nicht mehr angezeigt und oben ist ein Fehler
vollständige Fehlermeldung:
Parse error: syntax error, unexpected '"' in /var/www/web3/html/board.php(343) : eval()'d code on line 27
Link zum Problem/Forum und Screenshot(s):
Problem: Klick
letzte Änderungen oder eingebaute Hacks:
-wollte wbb 2.3 optionshack einbauen, als ich den Fehler sah baute ich das wieder aus.
-Mod geprüft
-Forenregelhack
-Statistik 1.1
Biggi
Schau mal in deine board.php in Zeile 343, welches Template da aufgerufen wird.
Im Original ist es das Template board_threadbit.
In dem ist in Zeile 27 ein Fehler.
Spielteufel
ja das ist richtig ....
ich weiß nur nicht wo dort der Fehler ist
| 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:
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:
|
<tr align="center">
<td class="tablea"><img src="{$style['imagefolder']}/$foldericon.gif" border="0" alt="" title="" /></td>
<td class="tableb">$threadicon</td>
<td class="tablea" style="width:80%" align="left"><span class="normalfont">
<if($threads['attachments'])>
<then><img src="{$style['imagefolder']}/paperclip.gif" border="0" alt="{$LANG_BOARD_ATTACHMENTS}" title="{$LANG_BOARD_ATTACHMENTS}" /> </then>
</if>
<if($firstnew==1)>
<then><a href="thread.php?threadid=$threads[threadid]&goto=firstnew{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/firstnew.gif" alt="{$lang->items['LANG_BOARD_GOTO_FIRSTNEW']}" title="{$lang->items['LANG_BOARD_GOTO_FIRSTNEW']}" border="0" /></a> </then>
</if>
<span class="prefix">
<if($threads['closed']==3)>
<then><b>{$lang->items['LANG_BOARD_MOVED']}</b> </then>
</if>
<if($threads['important']==2)>
<then><b>{$lang->items['LANG_BOARD_ANNOUNCEMENT']}</b> </then>
</if>
<if($threads['important']==1)>
<then><b>{$lang->items['LANG_BOARD_IMPORTANT']}</b> </then>
<if($threads['pollid']!=0 && $threads['closed']!=3)>
<then><b>{$lang->items['LANG_BOARD_POLL']}</b> </then>
</if>
<if($threads['prefix']!="")>
<then>$threads[prefix] </then>
</if>
</span>
<a href="thread.php?threadid=$threads[threadid]<if($search[searchstring])><then>&hilight=$search[searchstring]</then></if><if($search[searchuserid])><then>&hilightuser=$search[searchuserid]</then></if>{$SID_ARG_2ND}">$threads[topic]</a></span>$multipages<span class="smallfont">
<if(isset($favorites) && $favorites)>
<then><br /><b><a href="addreply.php?threadid=$threads[threadid]{$SID_ARG_2ND}">{$lang->items['LANG_BOARD_REPLY']}</a> <a href="usercp.php?threadid=$threads[threadid]&action=removesubscription{$SID_ARG_2ND}">{$lang->items['LANG_BOARD_REMOVE_SUBSCRIPTION']}</a></b></then>
</if>
<if($filename=="search.php")>
<then><br />{$lang->items['LANG_SEARCH_BOARD']} <b><a href="board.php?boardid=$threads[boardid]{$SID_ARG_2ND}">$threads[title]</a></b></then>
</if>
</span></td>
<td class="tableb"><span class="normalfont"><a href="javascript:who($threads[threadid])">$threads[replycount]</a></span></td>
<td class="tablea" style="width:20%"><span class="normalfont"><if($threads['starterid']!=0)><then><a href="profile.php?userid=$threads[starterid]{$SID_ARG_2ND}">$threads[starter]</a></then><else>$threads[starter]</else></if></span></td>
<td class="tableb"><span class="normalfont">$threads[views]</span></td>
<if($board['allowratings']==1)><then><td class="tablea" nowrap="nowrap">$threadrating</td></then></if>
<td class="<if($board['allowratings']==1)><then>tableb</then><else>tablea</else></if>" align="left"><table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr align="right" class="<if($board['allowratings']==1)><then>tableb</then><else>tablea</else></if>_fc">
<td align="right" nowrap="nowrap"><span class="smallfont">$lastpostdate <span class="time">$lastposttime</span><br />
{$lang->items['LANG_BOARD_FROM']} <if($threads['lastposterid']!=0)><then><b><a href="profile.php?userid=$threads[lastposterid]{$SID_ARG_2ND}">$threads[lastposter]</a></b></then><else>$threads[lastposter]</else></if></span></td>
<td nowrap="nowrap"><span class="smallfont"> <a href="thread.php?threadid=$threads[threadid]&goto=lastpost{$SID_ARG_2ND}"><img src="{$style['imagefolder']}/lastpost.gif" alt="{$lang->items['LANG_BOARD_GOTO_LASTPOST']}" title="{$lang->items['LANG_BOARD_GOTO_LASTPOST']}" border="0" /></a></span></td>
</tr>
</table></td>
</tr> |
|
Biggi
Da ist eine if-Abfrage nicht geschlossen.
Ersetze Zeile 24 - 29 deines Templates:
| code: |
1:
2:
3:
4:
5:
6:
|
<if($threads['important']==1)>
<then><b>{$lang->items['LANG_BOARD_IMPORTANT']}</b> </then>
<if($threads['pollid']!=0 && $threads['closed']!=3)>
<then><b>{$lang->items['LANG_BOARD_POLL']}</b> </then>
</if> |
|
gegen diese Zeilen:
| code: |
1:
2:
3:
4:
5:
6:
7:
|
<if($threads['important']==1)>
<then><b>{$lang->items['LANG_BOARD_IMPORTANT']}</b> </then>
</if>
<if($threads['pollid']!=0 && $threads['closed']!=3)>
<then><b>{$lang->items['LANG_BOARD_POLL']}</b> </then>
</if> |
|
Spielteufel
Danke,danke,danke
ok der Threadinhalt wird noch nicht angezeigt ...
Parse error: syntax error, unexpected ';' in /var/www/web3/html/thread.php(435) : eval()'d code on line 158
das is meine thread_postbit.tpl
EDIT:
Geht jetzt wieder habe den Fehler gefunden .... es war etwas doopelt;es hat etwas gefehlt und es war etwas zu viel