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,970
  • Latest: bynw
Stats
  • Total Posts: 196,061
  • Total Topics: 21,338
  • Online today: 234
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 227
  • Total: 228
  • @rjen

Template Parse Error on line 120 (I searched)

Started by Xtreme4U2NV, April 16, 2007, 10:14:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Xtreme4U2NV

Hello all, here is the error I am getting;

Parse error: syntax error, unexpected '<' in .../Themes/default/index.template.php on line 120

111: // If we're in a board, or a topic for that matter, the index will be the board's index.
112: if (!empty($context['current_board']))
113: echo '
114: <link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';
115:
116: // We'll have to use the cookie to remember the header...
117: if ($context['user']['is_guest'])
118: $options['collapse_header'] = !empty($_COOKIE['upshrink']);
119:

120:         <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[

121:                 var current_leftbar = ', empty($options['collapse_leftbar']) ? 'false' : 'true', ';
122:
123:                 function shrinkHeaderLeftbar(mode)
124:                 {';


Any suggestions on how to fix it?  Please and thank you.

Attached is a pic of it

G6Cad

Remove this part on line 120

<!-- // --><![CDATA[

JPDeni

You need to enclose the output to the screen in an echo statement. I can show you were the first part is, but you'll have to figure out the end of it yourself.


echo '        <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[


The end would probably be something like


</script>';

Xtreme4U2NV

Quote from: G6â„¢ on April 16, 2007, 10:18:16 PM
Remove this part on line 120

<!-- // --><![CDATA[

Quote from: JPDeni on April 16, 2007, 10:24:24 PM
You need to enclose the output to the screen in an echo statement. I can show you were the first part is, but you'll have to figure out the end of it yourself.


echo '        <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[


The end would probably be something like


</script>';


So which one should I attempt first?

G6Cad

Definatly JP Denis suggestion as she knows a lot more coding then me  :laugh:

Crip

line 118: ['upshrink']);

add the claw '; on the end & underneath an echo  ['upshrink']);

118                        ['upshrink']);';
echo '
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



Xtreme4U2NV

Quote from: crip~ on April 16, 2007, 10:33:45 PM
line 118: ['upshrink']);

add the claw '; on the end & underneath an echo  ['upshrink']);

118                        ['upshrink']);';
echo '


Will give that a shot now, thank you

Xtreme4U2NV

Thank you Crip, worked wonders, no more errors, thank you

Crip

I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes



This website is proudly hosted on Crocweb Cloud Website Hosting.