PDA

View Full Version : phpbb 2.15


[CLS]_Airborne328
June 6th, 2005, 13:54
Afternoon -=DoW=-.

Can someone take a look at this error for me.

I am creating a new forum for new site using phpbb, and all is fine, except when I installed this theme.

http://www.combatlifesavers.us/forumtest/index.php

When posting or creating a topiv, you get this error

Parse error: parse error, unexpected '}' in /var/www/html/forumtest/includes/template.php(127) : eval()'d code on line 298




and this is area where line 298 is at


// 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++)
[color=red]LINE#298[/color] {
$namespace = $varrefs[1][$i];
$varname = $varrefs[3][$i];
$new = $this->generate_block_varref($namespace, $varname);

$code = str_replace($varrefs[0][$i], $new, $code);
} [color=red]Line#298[/color]
// 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);

// Break it up into lines.
$code_lines = explode("\n", $code);


I know parse erros are usually simple, missing letter or text etc..However I cant find anything there.

Anyone who could look at this, I thank you in advance

I tried removing the "}", but that caused another error :(

below is link to template.php, the one with the issue.

http://www.combatlifesavers.us/downloads/template.ace

Acedeal
June 6th, 2005, 14:29
is this phpbb stock or nuke hack install

[CLS]_Airborne328
June 6th, 2005, 14:47
phpbb template, downloaded from phpbbhacks.com

problem resolved, creator finally returned my email, with the adjusted files. HOOAH. Sorry for wasted bandwidth :banger:

Now all that is left is to try and transfer USER/REG info from database to this one.. :wink:

-=DoW=- The_Ultim8
June 6th, 2005, 16:26
_Airborne328]phpbb template, downloaded from phpbbhacks.com

problem resolved, creator finally returned my email, with the adjusted files. HOOAH. Sorry for wasted bandwidth :banger:

Now all that is left is to try and transfer USER/REG info from database to this one.. :wink:

I don't think you're wasting bandwidth with questions about phpBB in here, Ace knows everything about it (at least that's what he let's us believe :D :D :D :lol: )

-=DoW=- boba_fett
June 6th, 2005, 16:32
I don't think you're wasting bandwidth with questions about phpBB in here, Ace knows everything about it (at least that's what he let's us believe :D :D :D :lol: )

:lol: :lol: Ace knows how to do it all and smokie knows how to break it all. :lol: :lol:

Aspfunda
June 7th, 2005, 03:13
:lol: :lol: Ace knows how to do it all and smokie knows how to break it all..... oh and I know how to fix it all :lol: :lol:




Sorry that was arrogant .. just couldnt resist


I don't think you're wasting bandwidth with questions about phpBB in here, Ace knows everything about it (at least that's what he let's us believe :D :D :D :lol: )

:lol: :lol: Ace knows how to do it all and smokie knows how to break it all. :lol: :lol: :lol: :lol: :lol: