Witam przy próbie napisania nowego tematu mam następujący błąd:
Cytuj:
Parse error: syntax error, unexpected T_STRING in c:\usr\apache\httpd\html\cache\tpl_Tesko.posting_body.php on line 49
Ostatnio zainstalowane modyfikacji, które napewno to popsuły (bądź popsułem ja przy instalowaniu tych modyfikacji):
- BBCode Center
- BBcode Colours in Code
- Google Search BBCode
- PHP Syntax Highlighter
- Visual Basic Syntax Highlighter BBCode
- You BBCode
A oto linie 30-70:
Kod:
c_help = "{L_BBCODE_C_HELP}";
l_help = "{L_BBCODE_L_HELP}";
o_help = "{L_BBCODE_O_HELP}";
p_help = "{L_BBCODE_P_HELP}";
w_help = "{L_BBCODE_W_HELP}";
a_help = "{L_BBCODE_A_HELP}";
s_help = "{L_BBCODE_S_HELP}";
f_help = "{L_BBCODE_F_HELP}";
v_help = "{L_BBCODE_V_HELP}";
h_help = "{L_BBCODE_H_HELP}"; <!-- PHP MOD //-->
d_help = "{L_BBCODE_D_HELP}";
y_help = "{L_BBCODE_Y_HELP}";
// Define the bbCode tags
bbcode = new Array();
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[google]','[/google]','[center]','[/center]','[vb]','[/vb]','[php]<?php\n','\n?>[/php]'); <!-- PHP MOD //-->
imageTag = false;
// Shows the help messages in the helpline window
function helpline(help) {
document.post.helpbox.value = eval(help + "_help");
}
// Replacement for arrayname.length property
function getarraysize(thearray) {
for (i = 0; i < thearray.length; i++) {
if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null))
return i;
}
return thearray.length;
}
// Replacement for arrayname.push(value) not implemented in IE until version 5.5
// Appends element to the array
function arraypush(thearray,value) {
thearray[ getarraysize(thearray) ] = value;
}
// Replacement for arrayname.pop() not implemented in IE until version 5.5
// Removes and returns the last element of an array
Z góry dzięki za pomoc.
[ Dodano: 25 Wrz 2005 00:06 ]Już wiem w czym problem, otóż bład jest w hacku PHP Syntax Highlighter, który każe dodać tą linijkę:
Kod:
'[php]<?php\n','\n?>[/php]'
Ktoś wie jak naprawić ten kod?
Pozdrawiam!