Jump to content
xisto Community
Sign in to follow this  
karlosantana

Smf: Template Parse Error HELP ME

Recommended Posts

Template Parse Error!

There was a problem loading the /Themes/default/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/default/index.template.php on line 167

And here's line 166

<td height="24" width="222" valign=middle onMouseOver="java script:taust(this,'#0F363F')" onMouseOut="java script:taust(this,'#202020')"> <a href="#">? Free Web design </a></td>

and 167:

<td height="24" width="222" valign=middle onMouseOver="java script:taust(this,'#0F363F')" onMouseOut="javascript:taust(this,'#202020')"> <a href="#">? Free Money </a></td>

It's hating the bit underlined, it's SMF, can't tell you a lot more really, i'm stumped! if you want to see look here I am really pulling my hair out at this can anyone think what i've done wrong? They both look the same and it's line 167 it doesn't like. :o

Any help is well apreciated!

Share this post


Link to post
Share on other sites

remember, single quotes (') often have to be escaped with a slash (\).

I believe this explains everything. In your onmouseover and onmouseout events, you have single quotes in them. Escape them, then refresh the page.

Share this post


Link to post
Share on other sites

lets say you want to use a qoute in a string

$string = "a double looks like this " ";

the above statement will cause an error because it will expect the double qoute at 'this "' to be the closing end. you need to escape it so it ignores it as a closing end and treats it as a double qoute.

$string = "a double looks like this \" ";

now string will be

a double looks like this "

Share this post


Link to post
Share on other sites

ok i will give it a go if it doesn't work ill probably put it in a frame and make it look like my site that way :o pray for me peeps!Thanks for your help guys[hr=noshade] [/hr]Ok i really can't do this, its damn fustrating :D It will not work no matter what i do If anyones got any spare time ive attatched a file on this post have a look at it destroy it if you wish but anything is appreciated. If anyone does help me i will give out credits to them (thats how much i will appreciate it!) leave me build up a load of credits (ill post a couple of tutorials) and i will give the person the most i can!

index.template.php

Share this post


Link to post
Share on other sites

...If anyones got any spare time, i've attatched a file on this post have a look at it, destroy it if you wish, but anything is appreciated.

I'm not sure if the PHP file you attached was the original or modified one, but i'm attaching a modified one with escaped single quotes.
index.template.php

If it doesn't work now, then i don't know what's wrong with it. But i recommend editing your files in an editor that supports syntax highlighting. I'd recommend Geany.

Share this post


Link to post
Share on other sites

okie dokie i will give this a try right now. *uploads file* That geany program is awesome!
Thankyou so much true fusion, you're better than the person who designed the templating system for smf in the first place! Your right though i did put the wrong template up *strangles himself* Hopefully geany should help me though, I will be building my credits up and giving them to you soon, hold in there! I have no idea what happened to the template file i made, its gone :D who knows where? Thankyou for putting all that work in though! it is incredibly appreciated! I'm gonna try out this tutorial and see what happens :D although i have done it before with no success, it's worth a try!

I also love some of the things in you sigy

I cannot imagine how the clockwork of the universe can exist without a Clockmaker. (Voltaire)

That is fantastic!

It is said energy cannot be created, nor destroyed. Yet, energy exists. This sounds like God to me!

And so is that! Thanks again
^^^needs a hug :o

Share this post


Link to post
Share on other sites

I will be building my credits up and giving them to you soon, hold in there!

I'm not interested in receiving credits. Thanks for the offer, but i didn't help 'cause there was a credit reward. And good luck with that tutorial.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.