Witam. Zainstalowałem moda Board Message MOD i i teraz na stronei
w ogóle //ort nie ma grafiki tylko jest błąd u góry:
Kod:
Parse error: parse error, unexpected $ in /home/programs/public_html/includes/template.php(127) : eval()'d code on line 297
includes/template.php
[phpbb]
// replace \ with \\ and then ' with \'.
$code = str_replace('\\', '\\\\', $code);
$code = str_replace('\'', '\\\'', $code);
// change template varrefs into PHP varrefs
// This one will handle varrefs WITH namespaces
$varrefs = array();
preg_match_all('#\{(([a-z0-9\-_]+?\.)+?)([a-z0-9\-_]+?)\}#is', $code, $varrefs);
$varcount = sizeof($varrefs[1]);
for ($i = 0; $i < $varcount; $i++)
{
$namespace = $varrefs[1][$i];
$varname = $varrefs[3][$i];
$new = $this->generate_block_varref($namespace, $varname);
$code = str_replace($varrefs[0][$i], $new, $code);
}
// This will handle the remaining root-level varrefs
$code = preg_replace('#\{([a-z0-9\-_]*?)\}#is', '\' . ( ( isset($this->_tpldata[\'.\'][0][\'\1\']) ) ? $this->_tpldata[\'.\'][0][\'\1\'] : \'\' ) . \'', $code);[/phpbb]
linia 297 to for ($i = 0; $i < $varcount; $i++)
Macie jakiś pomysł jak to naprawić?