Page 1 of 1
[Solved] Smarty Error - HorizontalDrop Down Theme and Javascript for IE page wid
Posted: Fri Aug 29, 2008 9:38 pm
by j4web
I have imported the Horizontal_dropdown.xml theme and I am getting this smarty error on the top:
string(83) "Smarty error: unable to read resource: "globalcontent:JavaScript for IE page width"" string(83) "Smarty error: unable to read resource: "globalcontent:JavaScript for IE page width"" string(83) "Smarty error: unable to read resource: "globalcontent:JavaScript for IE page width"" string(83) "Smarty error: unable to read resource: "globalcontent:JavaScript for IE page width""
of all my pages:
http://www.theshoppingbaglady.com/index.php?page=news
I have noticed several people have requested a fix in the Full Themes posting of this theme. I'd really like to use it ... can someone help me out here?
Thanks so very, very much.
J4 Web
ps I fixed this post as I referenced the wrong theme ... thank you.
Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width
Posted: Fri Aug 29, 2008 10:09 pm
by Nullig
Can you post the contents of your template? - especially the head portion.
Also, you're setting your doctype to HTML 4.01 Transitional. You should be using XHTML 1.0 Transitional.
Nullig
Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width
Posted: Fri Aug 29, 2008 10:11 pm
by j4web
I didn't set it at all ... this is the original template...here's the code ...
{global_content name='JavaScript for IE page width'}
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
Haiti Kids Foundation - {title}
{metadata}
{stylesheet}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{global_content name='JavaScript for IE page width'}
thanks for any assistance,
J4 Web
Re: Smarty Error - added XHTML transitional
Posted: Fri Aug 29, 2008 10:13 pm
by j4web
I changed it to XHTML Transitional -- made the error codes worse but here it is now:
{global_content name='JavaScript for IE page width'}
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
Haiti Kids Foundation - {title}
{metadata}
{stylesheet}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{global_content name='JavaScript for IE page width'}
Thanks,
J4 Web
Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width
Posted: Sat Aug 30, 2008 1:29 pm
by j4web
I am back again for a bit ... anyone able to help me on this?
J4 Web
Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width
Posted: Sat Aug 30, 2008 1:44 pm
by sn3p
Why put JS in a GBC? Just put it in the template or include it as a .js file (in the head).
Furthermore you are including the GCB twice:
Code: Select all
{global_content name='JavaScript for IE page width'}
<head>
...
{global_content name='JavaScript for IE page width'}
</head>
Not sure if it helps solve your problem, but give it a try.
Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width
Posted: Sun Aug 31, 2008 12:35 am
by Dr.CSS
Remove the call for the global content block as this site/template is set for a fixed width, this call is just something the person that made the template put in the head and didn't realize exporting a template will not bring any GCB with it...
And you can remove any call for the IE min/max width calls...
[solved] Smarty Error - HorizontalDrop Down Theme and Javascript for IE
Posted: Tue Sep 02, 2008 4:02 pm
by j4web
I did this and it did fix it. For others, the code in my head is now this:
The Shopping Bag Lady - {title}
{metadata}
{stylesheet}
{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
Thanks all for your assistance,
J4 Web
Re: [Solved] Smarty Error - HorizontalDrop Down Theme and Javascript for IE page
Posted: Thu Sep 04, 2008 9:37 am
by Dr.CSS
Still no menu in Firefox 2.**** and you need to change the call for the script...
</__script