[solved] Facebox script issue with smarty tag {}

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
manols
New Member
New Member
Posts: 2
Joined: Thu Nov 26, 2009 5:44 pm

[solved] Facebox script issue with smarty tag {}

Post 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
Last edited by Anonymous on Tue Dec 01, 2009 6:10 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Facebox script issue with smarty tag {}

Post by Jos »

You may want to put your javascript between {literal} {/literal} tags
manols
New Member
New Member
Posts: 2
Joined: Thu Nov 26, 2009 5:44 pm

Re: Facebox script issue with smarty tag {}

Post by manols »

I knew there was an simple solution ;)

Thank you so much. It does work now!
Post Reply

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