where to upload my js file

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Tracy
Forum Members
Forum Members
Posts: 134
Joined: Sat Oct 20, 2007 4:52 pm

where to upload my js file

Post by Tracy »

I am trying to use the accordian in my header. I have had it working but now I have my template and stylesheets in CMS I don't know where to upload my js file. I cannot get it working. This goes in the head <__script__ type="text/javascript" src="haccordion.js">

What folder in my tree should I place the file in. I'm sure I've tried them all. The site is at www.nepaledfund.ca
CMS version 1.9.2
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: where to upload my js file

Post by Nullig »

You can put it in your uploads directory and then change the path in your script tag to:

<__script__ type="text/javascript" src="/uploads/haccordion.js">

Nullig
Tracy
Forum Members
Forum Members
Posts: 134
Joined: Sat Oct 20, 2007 4:52 pm

Re: where to upload my js file

Post by Tracy »

Thanks, I just tried that and it still isn't working. Also, I get this message
string(165) "Smarty error: [in tpl_head:23 line 24]: syntax error: unrecognized tag: margin:0 1px 0 0; /*Spacing between each LI container*/ (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_head:23 line 24]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(175) "Smarty error: [in tpl_head:23 line 26]: syntax error: unrecognized tag: padding: 0px; /*Padding inside each content*/ background: beige; (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_head:23 line 26]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)" string(213) "Smarty error: [in tpl_head:23 line 33]: syntax error: unrecognized tag: accordionid: 'hc1', //main accordion div id paneldimensions: {peekw:'151px', fullw:'600px', h:'300px' (Smarty_Compiler.class.php, line 446)" string(111) "Smarty error: [in tpl_head:23 line 33]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"

Any other ideas? Thanks
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: where to upload my js file

Post by Nullig »

Looks like you have an error in your template (a style tag in the head portion)- can you post it?
If it is a style tag, you need to surround it with {literal}...{/literal} tags.
I think it's here:

Code: Select all

<style>
<!--

body{font-family:arial,sans-serif}.fs{border-left:9px solid}.sq .fs{border-left-color:#74dd82}.msg{}
td{font-family:arial,sans-serif}.cbln{background-image:url(images/card_left_new.gif);background-position:left;background-repeat:repeat-y}.cbln{padding:0 1 0 0}.mb{font-size:80%;padding:6 8 10 14;width:100%}.sg{color:#888888}-->
</style>
You would need to do this:

Code: Select all

{literal}
<style>
<!--

body{font-family:arial,sans-serif}.fs{border-left:9px solid}.sq .fs{border-left-color:#74dd82}.msg{}
td{font-family:arial,sans-serif}.cbln{background-image:url(images/card_left_new.gif);background-position:left;background-repeat:repeat-y}.cbln{padding:0 1 0 0}.mb{font-size:80%;padding:6 8 10 14;width:100%}.sg{color:#888888}-->
</style>
{/literal}
Nullig
Post Reply

Return to “CMSMS Core”