MyBB Hacks

Full Version: [Solved] 'Parse error...' problem @ std & xthread forum threadlist displays ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Doing some template editing with forumdisplay_thread and forumdisplay_threadlist (standard and tp_ ) in particular, and started getting following 'parse error/s' at top of web page (scnshot attached) with forum threads display(for both std and xthread forums)... http://www.server.domain/forum/forumdisplay.php?fid=24.
----
Standard forum at default templates (4 ea / 4 threads, per scrnshot)...
Parse error: syntax error, unexpected '<', expecting '}' in
home/thisold1/public_html/forum/forumdisplay.php(1189) : eval()'d code on line 34
&
xthread (tp_) forum at global templates (3 ea / 3 threads, per scrnshot) ...
Parse error: syntax error, unexpected '<', expecting '}' in /home/thisold1/public_html/forum/forumdisplay.php(1189) : eval()'d code on line 10
----
/forumdislay.php
1189 - eval("\$threads .= \"".$templates->get("forumdisplay_thread")."\";");
----

Both result in no display of threads titles list under forum titles.

Was doing some editing of templates and fixed what was trying to fix, then 'parse error/s' showed up and thread lists disappeared.

Tried googling (parse error, line 10, line 34, etc ?), backtrackg edits for problems (seems at least error is same for both tp_ and std templates), lots of T&E and sleep-on, but to no avail.

Do need to add cr_ to and/or edit forumdisplay.php ?

Where might get help info ?
I think you need to check the modified templates related to your forumdisplay page (the green title color). Or, revert the modified templates back to original (make sure to back up those templates first).
(03-08-2012 07:38 AM)RateU Wrote: [ -> ]I think you need to check the modified templates related to your forumdisplay page (the green title color). Or, revert the modified templates back to original (make sure to back up those templates first).

Thank you for the suggestion.

Have been looking at the 2 templates in question, and couldn find any curly brackets missing etc.

Cut and pasted original templates, and forum display_thread seems to be the problem.

Then walla, a missing curly bracket shows up... just like a lot of the suggests on the internet.

Fixed at tp_ and std templates, both had the same error, and the 'parse error' problem went away.

Think need new glasses!  Oops
Reference URL's