Page 1 of 1

[solved] Facebox script issue with smarty tag {}

Posted: Tue Dec 01, 2009 3:51 pm
by manols
Hello,

I just installed the last verison of CMSMS on this website : http://www.artonline.fr/cmsms/

Everything went just fine except for a small issue that I couldn't solve.
I installed the script Facebox http://famspam.com/facebox on my website. To be sure the path was correct, I wrote the full url leading to the required script to make it work.
- jquery.js
- facebox.js
- facebox.css

But there is an additonal required code that is apparently the source of my problem. This:

Code: Select all

<__script__ type="text/javascript">
    jQuery(document).ready(function($) {
      $('a[rel*=facebox]').facebox({
        loading_image : 'http://www.artonline.fr/facebox/loading.gif',
        close_image   : 'http://www.artonline.fr/jfacebox/closelabel.gif'
      }) 
    })
  </__script>
When I open the page with Firefox, it shows me an error message leading me to think that this was the issue:
string(284) "Smarty error: [in tpl_head:23 line 7]: syntax error: unrecognized tag: $('a[rel*=facebox]').facebox({ loading_image : 'http://www.artonline.fr/facebox/loading.gif', close_image : 'http://www.artonline.fr/jfacebox/closelabel.gif' (Smarty_Compiler.class.php, line 446)" string(110) "Smarty error: [in tpl_head:23 line 7]: syntax error: unrecognized tag '' (Smarty_Compiler.class.php, line 590)"
One last thing, the facebox script is just used at the moment on the flag (top right) and trying to make it work desperately.

I tried to write all details for you to understand, if you have any ideas, please feel free to share.

The script works perfectly on my first index website (try french flag) : http://www.artonline.fr

Thank you for your answers

Re: Facebox script issue with smarty tag {}

Posted: Tue Dec 01, 2009 3:57 pm
by Jos
You may want to put your javascript between {literal} {/literal} tags

Re: Facebox script issue with smarty tag {}

Posted: Tue Dec 01, 2009 4:03 pm
by manols
I knew there was an simple solution ;)

Thank you so much. It does work now!