TinyPortal

Development => Support => Topic started by: Capabmx on October 18, 2007, 01:45:04 AM

Title: Template Parser error :'(
Post by: Capabmx on October 18, 2007, 01:45:04 AM
Can anyone help me resolve this? I'm getting a template parse error on line 640.
On index.template.php.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/index.template.php on line 640

632: <tr>
633: <td class="maintab_' , $first , '"></td>';
634:
635: // Show the [chess] button.
636: echo ($current_action == 'chess' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"></td>' : '' , '
637: <td valign="top" class="maintab_' , $current_action == 'chess' ? 'active_back' : 'back' , '">
638:
639: // Show the [home] button.
640: echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '641: <td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'back' , '">
642: <a href="', $scripturl, '">' , $txt[103] , '</a>
643: </td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
644:


If anyone can please help it would mean somuch to me :). I removed tportals help link and by accident must have removed something else. Thanks a lot in advance :).
Title: Re: Template Parser error :'(
Post by: jacortina on October 18, 2007, 01:48:02 AM
You didn't end line 637. Add "';" (single quote and semicolon) to the end of that.
Title: Re: Template Parser error :'(
Post by: jacortina on October 18, 2007, 01:53:49 AM
Of course, that whole 'Chess' button clause is messed up. There's nothing there to put out a link.
Title: Re: Template Parser error :'(
Post by: Capabmx on October 18, 2007, 02:01:18 AM
Oh my god thank you so much! That chess button was the problem, you are seriously my hero! Sorry to sound wierd, haha, but I've been fiddling around everywhere and asking everyone, and thank you so much!
Title: Re: Template Parser error :'(
Post by: jacortina on October 18, 2007, 02:06:22 AM
No problem.

Do you, in fact, want a button for a 'Chess' action to appear there? If so, I can help you fix it. If not, you should get rid of the 'stub' that's left.
Title: Re: Template Parser error :'(
Post by: Capabmx on October 18, 2007, 02:12:15 AM
Yeah, but it shows up? It displays as normal, but I admit it is wierd.
Title: Re: Template Parser error :'(
Post by: jacortina on October 18, 2007, 02:16:24 AM
The bit that you show is BEFORE the 'Home' button (see that Line 639 there?) and there is no text or link for 'Chess' included in it.

If a link is showing, that means you have another part of it in another part of the file.