Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Template Parse Error Message

Posted on 2007-11-20
4
1,239 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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.

856 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