Solved

Template Parse Error Message

Posted on 2007-11-20
4
1,237 Views
Last Modified: 2013-12-13
Hello,

After implementing an ad mod for smf forum, I am facing the following error message :

-----------------------------------------------------------------------------------------------------
Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

You can also try refreshing this page.
-------------------------------------------------------------------------------------------------------
The above error message shows when I try to see any thread. So, it seems the problem is with "Display.template.php" file.

The file contains following codes :

http://www.the4em.com/tempEE/Display_template.txt

I tried the instructions to manually install the ad mod :

http://www.smfads.com/forums/index.php?topic=22.0

rsdn

0
Comment
Question by:Sohel Rana
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
simonkin earned 150 total points
ID: 20319295
Hi,

You seem to be missing your left { and right } chain bracket parenthesis in alot of your if statements. Try adding the correct parenthesis.

Example:
<?php
 
     if (some condition) { // Left parenthesis before the action
 
          do something;
 
     } // Close the statement with a right parenthesis
 
?>

Open in new window

0
 
LVL 14

Expert Comment

by:Aamir Saeed
ID: 20320948
curly brackets come if we have multiple statements
0
 
LVL 4

Expert Comment

by:simonkin
ID: 20321113
Hi,

Didn't know that, thanks for pointing it out.
0
 
LVL 16

Author Comment

by:Sohel Rana
ID: 20325850
Thanks for your help.

rsdn
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question