Quote:
Originally Posted by goran424
I installed, tried everything but just doesn't work. Keep getting following error:
Parse error: syntax error, unexpected '{', expecting ')' in /home/ghostrider/domains/ghostriders-thailand.com/public_html/forum/includes/class_core.php(4040) : eval()'d code on line 32
I'm using vBulletin 4.0.2 Patch Level 4 if that means anything.
|
I suspect it's related to
this vBulletin bug that was fixed in 4.0.3 (vBulletin versions before 4.0.3 parse some JavaScript in templates incorrectly). To get around it for an old version of vB, you could probably change the
function play_pause() in the SPY template to this:
Code:
[noparse]function play_pause() {
var label = new Array('[/noparse]{vb:rawphrase click_to_continue}[noparse]', '[/noparse]{vb:rawphrase click_to_pause}[noparse]');
play = Math.abs(1-play);
document.getElementById("play_pause").innerHTML = label[play];
}[/noparse]
Basically adding annoying noparse tags all over the place to tell the parser how to actually parse it. The better solution would be to upgrade to vBulletin 4.0.3 since it can parse templates properly.
I didn't test that hack since I don't have an old version of vBulletin installed, but it should work (although I'm not sure if there are other areas of the template it may not be able to parse properly).