|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
zdig1 Smarty Rookie
Joined: 23 Sep 2013 Posts: 30
|
Posted: Sat Nov 16, 2013 6:32 pm Post subject: code not working |
|
|
hello
ia hve this code working on html
Code: | <script src="http://www.google.com/jsapi"></script>
<script>google.load("jquery", "1");</script>
<script type="text/javascript"> //<![CDATA[
kakinetworkdotcom01username="streaming.rakuen",
kakinetworkdotcom01title="Cliquer sur J'aime pour accéder au site :-)",
kakinetworkdotcom01time="30",
kakinetworkdotcom01wait="0",
kakinetworkdotcom01lang="fr"
//]]> </script>
<script type="text/javascript" src="http://zdig1.biz/index/box/likeboxfbfanpro.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){$().kakinetworkdotcom({ closeable: true });});
//]]>
</script>
|
and when i try it on smarty i think it must be replaced by lateral is my code correct cause it dont work on tpl !!!
Code: |
<script src="http://www.google.com/jsapi"></script>
{literal}<script>google.load("jquery", "1");</script> {/literal}
</script>
{literal}<script type="text/javascript">//<![CDATA[
kakinetworkdotcom01username="streaming.rakuen",
kakinetworkdotcom01title="Cliquer sur J'aime pour accéder au site :-)",
kakinetworkdotcom01time="30",
kakinetworkdotcom01wait="0",
kakinetworkdotcom01lang="fr"
//]]></script> {/literal}
<script type="text/javascript" src="http://zdig1.biz/index/box/likeboxfbfanpro.js"></script>
{literal}<script type="text/javascript">
//<![CDATA[ $(document).ready(function(){$().kakinetworkdotcom({ closeable: true });});
//]]></script> {/literal} |
|
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Nov 16, 2013 7:40 pm Post subject: |
|
|
You have an extra </script> in line 3 of your tpl. Also the first {literal} pair is not necessary.
You need only need{literal} around sections which include { and } which belong to Javascript and not Smarty tags. |
|
Back to top |
|
zdig1 Smarty Rookie
Joined: 23 Sep 2013 Posts: 30
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|