Author Topic: got parse error when I did the manual edits  (Read 1597 times)

0 Members and 1 Guest are viewing this topic.

Offline kisuke

  • New Member
  • *
  • Posts: 2
  • Karma: 2
  • Gender: Male
    • WoW Sentient
  • SMF Version: 1.1.6
got parse error when I did the manual edits
« on: September 20, 2008, 03:12:54 PM »
I did all the edits but I got this:

:
Template Parse Error! There was a problem loading the /Themes/usebbPort_1_1_x_RC3/index.template.php template or language file.  Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\).  To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.  
 Parse error:  syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/usebbPort_1_1_x_RC3/index.template.php on line 172
  163:
164: current_header_ic = mode;
165: }
166: // ]]></script>
167: </head>
168: <body>
169:     //Display ads on the top of the page
170:     $ads = show_topofpageAds();   
171:     if(!empty($ads))
172:         if($ads['type']==0)173:             echo $ads['content'];
174:         else
175:             eval($ads['content']);   
176:     unset($ads);

« Last Edit: December 24, 2008, 01:22:31 AM by ccbtimewiz »

Offline Smoky

  • who, me?
  • Guru
  • *
  • Posts: 3980
  • Karma: 1450
  • Gender: Female
  • It's all in your HEAD!
    • HangOutSpot
  • SMF Version: 2.0 ??
Re: got parse error when I did the manual edits
« Reply #1 on: September 20, 2008, 03:32:39 PM »
what theme are you trying to edit?? :)
Oh wow, guess who dropped by! Im still on secondlife.. but will respond to im's *waves

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
Re: got parse error when I did the manual edits
« Reply #2 on: September 24, 2008, 09:32:03 PM »
Find:

:
<body>
Replace with:

:
<body>';

Offline bigguy

  • Site Owner
  • Administrator
  • *
  • Posts: 13217
  • Karma: 269
  • Gender: Male
  • Get'r Done
    • P.C. Tweakr
  • SMF Version: 2.0 Gold
Re: got parse error when I did the manual edits
« Reply #3 on: September 25, 2008, 06:52:47 AM »
Welcome to the site kisuke. Did you get this solved. ???

Offline gwgm

  • New Member
  • *
  • Posts: 15
  • Karma: 1
  • Gender: Male
    • Inside Track Pit Board Forum
  • SMF Version: 1.1.7
Re: got parse error when I did the manual edits
« Reply #4 on: December 22, 2008, 11:34:32 PM »
Hello. I am running SMF 1.1.7 on my site.
I went through your handy checklist of manual edits to install Ad Management 2.3. (http://www.smfhelper.info/forum/index.php?topic=2286.0 ... thanks!)
Everything seemed great... I can see the menu on the Admin console, I can see the Boards and topics... but when I looked at individual messages, I received an error (see below).
To get the site working again, I re-loaded the original display.template.php fie to the default directory... re-edited the file... and got the same error again.
 
Any ideas on what the issue is?
Thanks for your help!
 

Template Parse Error!
There was a problem loading the /Themes/default/Display.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.   
   syntax error, unexpected '/', expecting ']' [/h][/h]
« Last Edit: December 22, 2008, 11:47:53 PM by gwgm »

Offline ccbtimewiz

  • Dreamer
  • Guru
  • *
  • Posts: 1304
  • Karma: 2100
  • Gender: Male
  • $info->close();
    • Dream Portal
  • SMF Version: SMF 2.0 RC4
Re: got parse error when I did the manual edits
« Reply #5 on: December 23, 2008, 10:29:20 AM »
Find:

:
<div class="smalltext">« [b]', !empty($message['counter']) ? $txt[/b][146] . ' #' . $message['counter'] : '', ' ', $txt[30], ': ', $message['time'], ' »</div></td>
Replace with:
:
<div class="smalltext">« <strong>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ': ', $message['time'], '</strong> »</div></td>

Offline gwgm

  • New Member
  • *
  • Posts: 15
  • Karma: 1
  • Gender: Male
    • Inside Track Pit Board Forum
  • SMF Version: 1.1.7
Re: got parse error when I did the manual edits
« Reply #6 on: December 24, 2008, 12:59:45 AM »
ccbtimewiz,
 
Thanks so much for looking at that for me.
Your fix worked perfectly!!
Merry Christmas.
 
gwgm.