TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 354
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 253
  • Total: 253

Template Parser error :'(

Started by Capabmx, October 18, 2007, 01:45:04 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Capabmx

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 :).

jacortina

You didn't end line 637. Add "';" (single quote and semicolon) to the end of that.

jacortina

Of course, that whole 'Chess' button clause is messed up. There's nothing there to put out a link.

Capabmx

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!

jacortina

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.

Capabmx

Yeah, but it shows up? It displays as normal, but I admit it is wierd.

jacortina

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.