Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Template Parse Error Message

Posted on 2007-11-20
4
Medium Priority
?
1,245 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
[X]
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
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
simonkin earned 600 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

636 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