[Solved] Smarty Error - HorizontalDrop Down Theme and Javascript for IE page wid

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
j4web
Forum Members
Forum Members
Posts: 46
Joined: Fri Aug 29, 2008 6:17 pm

[Solved] Smarty Error - HorizontalDrop Down Theme and Javascript for IE page wid

Post 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.
Last edited by j4web on Tue Sep 02, 2008 4:03 pm, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width

Post 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
j4web
Forum Members
Forum Members
Posts: 46
Joined: Fri Aug 29, 2008 6:17 pm

Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width

Post 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
j4web
Forum Members
Forum Members
Posts: 46
Joined: Fri Aug 29, 2008 6:17 pm

Re: Smarty Error - added XHTML transitional

Post 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
j4web
Forum Members
Forum Members
Posts: 46
Joined: Fri Aug 29, 2008 6:17 pm

Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width

Post by j4web »

I am back again for a bit ... anyone able to help me on this?

J4 Web
sn3p
Forum Members
Forum Members
Posts: 169
Joined: Mon Oct 15, 2007 2:27 pm

Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Smarty Error - HorizontalDrop Down Theme and Javascript for IE page width

Post 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...
j4web
Forum Members
Forum Members
Posts: 46
Joined: Fri Aug 29, 2008 6:17 pm

[solved] Smarty Error - HorizontalDrop Down Theme and Javascript for IE

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [Solved] Smarty Error - HorizontalDrop Down Theme and Javascript for IE page

Post by Dr.CSS »

Still no menu in Firefox 2.**** and you need to change the call for the script...

</__script
Post Reply

Return to “Layout and Design (CSS & HTML)”