Jul 26, 2008

Smf: Template Parse Error - HELP ME!!!

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Web Design

free web hosting

Smf: Template Parse Error - HELP ME!!!

karlosantana
QUOTE
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
QUOTE
<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:
QUOTE
<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. huh.gif
Any help is well apreciated!

 

 

 


Reply

truefusion
QUOTE
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.

Reply

karlosantana
When you say escape what do you mean? do you mean i replace them with a backslash? place a blackslash behind it, or that i simply get rid of them?

Reply

sonesay
lets say you want to use a qoute in a string
CODE
$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.

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


now string will be

a double looks like this "

Reply

karlosantana
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 unsure.gif pray for me peeps!
Thanks for your help guys



Ok i really can't do this, its damn fustrating mad.gif 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!

Reply

truefusion
QUOTE(karlosantana @ Feb 5 2008, 06:30 AM) *
...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.

[attachment=1021: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.

Reply

karlosantana
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 ohmy.gif 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 sad.gif although i have done it before with no success, it's worth a try!

I also love some of the things in you sigy
QUOTE
I cannot imagine how the clockwork of the universe can exist without a Clockmaker. (Voltaire)
That is fantastic!
QUOTE
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 sad.gif

 

 

 


Reply

truefusion
QUOTE(karlosantana @ Feb 10 2008, 05:24 AM) *
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. smf halo 3 template - 19.30 hr back. (1)
  2. smf halo template - 20.08 hr back. (1)
  3. smf template parse error - 31.89 hr back. (2)
  4. template parse error! - 34.90 hr back. (1)
  5. smf template parse error! - 50.90 hr back. (2)
  6. download template themes for smf - 53.88 hr back. (1)
  7. smf templates - 55.98 hr back. (1)
  8. smf without template help - 119.79 hr back. (1)
  9. template error escape quote - 187.64 hr back. (1)
  10. smf template - 201.31 hr back. (1)
Similar Topics

Keywords : smf, template, parse, error

  1. Swanson Internet Forum Host Error
    Ive bought a php script, and im feeling ripped off (4)
  2. Need A Phpbb3 Halo Template
    (1)
    HI. Does anybody know of our have a Halo template for PHPBB3. Preferably a Halo 3 but i will take
    any other halo game template.....
  3. My New Site Template
    Heres a new template of mine done in photoshop (3)
    This is my new template I'm going to be using for my new site. It took me 3 days to do. I spend
    day 1 drawing it up sorry I cannot upload my draft sketch as my scanner is not working. The next 2
    days I spent drawing it up in photoshop. The colours are kinda generic I know but thats my style. I
    cant seem to create anything other then grey toned things. I think adding some decay onto the panels
    will give it some depth something my style of drawing lacks. The panels - I like as many panels as
    I can so I went with the 3 column layout and extra 2 side header panels for ....
  4. Simple Portfolio Template
    grey-green- (5)
    Well, it`s been a while since I last time posted on T17 and I really missed this forum. Well, I
    started taking lessons on webdesign in my school. It`s pretty hard because the professor is
    pretty dumb /ohmy.gif" style="vertical-align:middle" emoid=":o" border="0" alt="ohmy.gif" /> , and
    he can`t solve simple image alignment problem with css /laugh.gif"
    style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif" /> , so i have to learn
    almost everything on my own. /mad.gif" style="vertical-align:middle" emoid=":angry:" border="0"
    alt="mad.gif" /> ....
  5. Post Disappeared
    Error messages (1)
    Hello, I notice in the list that my post "SMTP settings" has received a reply. Yet, when I click on
    the title to enter the topic, I get the following: QUOTE The error returned was: Sorry, some
    required files are missing, if you intended to view a topic, it's possible that it's been
    moved or deleted. Please go back and try again. Can anyone tell me what has happened to the
    topic, and, more importantly, how I would be able to read it? Thanks.....
  6. Why This Error?
    PHP script fault (4)
    Hello, I typed out a PHP script (literally copied from w3schools, the script is as follows: CODE
    <html> <body> <?php function spamcheck($field)   {
    //eregi() performs a case insensitive regular expression match
      if(eregi("to:",$field) ||
    eregi("cc:",$field))     {     return TRUE;     }   else     {
        return FALSE;     }   } //if "email" is filled out, send email if
    (isset($_REQUEST['email']))   {   //check if the emai....
  7. Need Help With A Ps Template
    coding (3)
    hey, i made this template in photoshop and i have coded and everything but the problem is that the
    content boxes are stretching and its messing up everything. how can i make it so the "cells" i guess
    don't stretch.. because when i add stuff to the boxes they are stretching and its starting to
    duplicate.....
  8. Where Could I Get A Good Template
    template (3)
    Hello I am new on this website, and i dont know if this is the good place to post this topic. Im
    asking for a good website that has good templates. Thank you for reading this post.....
  9. My Template
    just a muck around (11)
    hey guys made this neat lil design http://cyp2nv.freehostingnow.com let us know wat u think thanks
    /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  10. Template Monster
    (8)
    Looking over template monster's templates, and saw some templates that I like. I thought to
    myself " How would I install one of these if I do get it?" So that's my question, how do you?
    On the site it says you need adobe photoshop for some of the skins the ones that use flash I think,
    but can anybody tell me how would I install it?....
  11. Editing Cutenews
    How do I change colors within template? (5)
    This one will probably be a no-brainer for most of you talented folks out there, but I'm still
    not there yet. I just installed Cutenews and want to do a simple color change to the text within
    the "default" template. All I want to do is change the color on the title and comment text. I
    wouldn't mind changing the font size either. I tried inserting html code but that didn't
    work, so either I'm inserting it the wrong place or I'm using the wrong code. What's the
    easiest way to do this? Thanks in advance for your help.....
  12. Website Template!
    I need a website template! (8)
    Ok here's the thing i'm new to making a website like this and i need a website template that
    is html! If anyone finds some please tell me thanks! /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />....
  13. Trap17 Free Web Template Downloads
    Trap 17 member contributions (10)
    Well, BuffaloHELP, here is my contribution. /tongue.gif" style="vertical-align:middle"
    emoid=":P" border="0" alt="tongue.gif" /> Free template downloads. Albeit over 100 web
    templates instead of one-at-a-time. I have started this thread for people to voluntarily add to.
    OK, everybody, lets keep this thread alive and updated frequently. ....
  14. Joomla Cms Portal
    I need some help with a template design (6)
    If there is anyone out there who is familiar with this CMS and knows about their template design,
    can you please speak up. It seems like no one at Joomla.org ever answers any of the questions I
    pose. So if at all possible help me, or point me in the right directions that would be most
    appreciated. I am currently using a header image that is 850 x 150 and I am using a variable width
    template. The page looks nice in 800x600 mode, but go to a higher resolution and you get a nice
    white gap on the left hand side of my header image. I was wondering if I should use a spacer im....
  15. Need Some Help With My Template
    (12)
    I just finished building my template in photoshop. it took me long hours and and sleepless nights. i
    was psyched about finishing the temp. i was like i am THE MAN yayaya. well i just realized that i am
    not the man since i got no idea what to do with the template. how do i upload it onto my website? do
    i need to convert it to html by using an editor? so my question is how do i convert it to html? and
    then after that i upload it right?....
  16. Wordpress 1.5.1 Installation Problem
    Getting fatal error message (7)
    I've just downloaded Wordpress 1.5.1 and uploaded all the contents to public_html and I've
    edited wp-config.php like so: CODE <?php // ** MySQL settings ** //
    define('DB_NAME', 'myusername_dbName');     // The name of the database
    define('DB_USER', 'myusername_dbUsername');     // Your MySQL username
    define('DB_PASSWORD', 'myPassword'); // ...and password
    define('DB_HOST', 'localhost');     // 99% chance you won't need to
    change this value $table_pre....
  17. Templates
    download Nice Template (10)
    I Fint this Template for u /biggrin.gif' border='0' style='vertical-align:middle'
    alt='biggrin.gif' /> http://xinfo.3dmaster.net.ru/templates/Tem...6471-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6417-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6221-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6370-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6419-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6446-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6207-SPK100.rar hihi I Find th....
  18. Need A Template?
    Templates (5)
    Try on Templates !....
  19. Template Test
    template test (1)
    here goes... NW Disciples 2005 Site Test This is the template test I've been working on for
    our webpage. I'm new to and working in Dreamweaver. My first experience trying to use layers....
    apparently not going sooo hot. I thought all was well... I discovered early on that wysiwyg in the
    DW design space was not true. Sited tested in IE 6.0 with a screen resolution of 1024x768. Looked
    GREAT to me even though it was cah-cah in DW. Then I talked to a friend who peeked at the site above
    and he told me the show/hide menus were not lined up for him... on the same res....
  20. Custom Error Pages.
    Have you got yours running ......??????? (13)
    Hey guys u know hosting is kool but you know what would make a website really boring, well ill tell
    you what uncustomised error pages. well dont you just hate it when you type a url and instead of a
    kool page you just see some plain text telling you error 404 or sometimes it doesnt even say ne
    thing since the error messeges are not put in place. well i got a kool custom error page. check it
    out and tell me what you think, and well if you like it go ahead and pm me ill give you the details
    on how to get it. **heres an example of my custom error page**** 404 ERROR stevey....

    1. Looking for smf, template, parse, error

Searching Video's for smf, template, parse, error
advertisement



Smf: Template Parse Error - HELP ME!!!



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE