Does Anyone know why the {literal} tags are not working? I ahve a PHP Include i want to intergrate into the .tpl file and the php includes are not displaying...
Parse error: parse error, unexpected '<' in /home/httpd/vhosts/msi.horizonhosting.net/httpdocs/pictures/g2data/smarty/templates_c/%%2359344622/%%3A^3A8^3A818B59%%theme.tpl.php on line 20
Don't quite see it, sorry.
Does it work w/o a hitch when you take the includes back out?
latour
Joined: 2005-11-26
Posts: 13
Posted: Wed, 2005-11-30 03:08
Yes. If i remove the {php} tags it works. I think it's because there is a < on line 20 in file. but i cant remove it cause its read only.
notgoddess
Joined: 2005-04-03
Posts: 178
Posted: Wed, 2005-11-30 03:24
Well that's compiled from the source files...the template .tpl file and your includes...you should be able to edit those.
btw, looking at the file I don't see an extra < ...one opens a <div> (closed on line 21) the other is the start of the php insert (seems properly syntaxed).
The error might be further up in the file...that's just where it tops out.
notgoddess
Joined: 2005-04-03
Posts: 178
Posted: Wed, 2005-11-30 03:30
The php should parse out, but this line might be an issue:
try changing the "theme.css" to 'theme.css' (should be in your theme.tpl file)
latour
Joined: 2005-11-26
Posts: 13
Posted: Wed, 2005-11-30 04:40
yeah and nothing argh. I need to get this done for school by tomorrow, so if anyone can help it would be appricated!
latour
Joined: 2005-11-26
Posts: 13
Posted: Wed, 2005-11-30 04:47
i deleted everything in the tpl file and just put a body tag + the {php} and include function and the error still happens. so i dont think it's in the main tpl file.
latour
Joined: 2005-11-26
Posts: 13
Posted: Wed, 2005-11-30 04:51
Alright I FIXED IT THANK YOU GOD
When inserting PHP Code with the {php} this is how your SURPOSE TO DO IT:
{php} include 'whatever.php' {/php}
and NOT {php} <?php include 'whatever.php' ?> {/php}
notgoddess
Joined: 2005-04-03
Posts: 178
Posted: Wed, 2005-11-30 05:09
latour wrote:
Alright I FIXED IT THANK YOU GOD
When inserting PHP Code with the {php} this is how your SURPOSE TO DO IT:
{php} include 'whatever.php' {/php}
and NOT {php} <?php include 'whatever.php' ?> {/php}
Ayup-{php} substitutes for <?php
Since I wasn't seeing the tpl file I didn't see that.
Very glad you were able to figure it out.
Now get some sleep - school tomorrow for you.
Posts: 13
nevermind i got it, i used {php}
but when i do that look what happens:
Parse error: parse error, unexpected '<' in /home/httpd/vhosts/msi.horizonhosting.net/httpdocs/pictures/g2data/smarty/templates_c/%%2359344622/%%3A^3A8^3A818B59%%theme.tpl.php on line 20
http://pastebin.com/442870
Posts: 178
Don't quite see it, sorry.
Does it work w/o a hitch when you take the includes back out?
Posts: 13
Yes. If i remove the {php} tags it works. I think it's because there is a < on line 20 in file. but i cant remove it cause its read only.
Posts: 178
Well that's compiled from the source files...the template .tpl file and your includes...you should be able to edit those.
btw, looking at the file I don't see an extra < ...one opens a <div> (closed on line 21) the other is the start of the php insert (seems properly syntaxed).
The error might be further up in the file...that's just where it tops out.
Posts: 178
The php should parse out, but this line might be an issue:
try changing the "theme.css" to 'theme.css' (should be in your theme.tpl file)
Posts: 13
yeah and nothing argh. I need to get this done for school by tomorrow, so if anyone can help it would be appricated!
Posts: 13
i deleted everything in the tpl file and just put a body tag + the {php} and include function and the error still happens. so i dont think it's in the main tpl file.
Posts: 13
Alright I FIXED IT THANK YOU GOD
When inserting PHP Code with the {php} this is how your SURPOSE TO DO IT:
{php} include 'whatever.php' {/php}
and NOT {php} <?php include 'whatever.php' ?> {/php}
Posts: 178
Ayup-{php} substitutes for <?php
Since I wasn't seeing the tpl file I didn't see that.
Very glad you were able to figure it out.
Now get some sleep - school tomorrow for you.
Ng