login | register
Sun 21 of Mar, 2010 (18:27 UTC)

bitweaver - Web Application Framework and CMS

Web Application Framework and CMS

     
Get RSS Feed

anybody using quantcast metrics ?

kosci
Reply to this PostReply with Quote to this Post

anybody using quantcast metrics ?

Posted:Fri 06 of Mar, 2009 (03:18 UTC)
When I inserted the javascript provided by quantcast in top or bottom page or even in a custom module I am getting the smarty template error.

Did anybody tried this ?
laetzer
Joined: 15 Mar 2004
Reply to this PostReply with Quote to this Post

Re: anybody using quantcast metrics ?

Posted:Fri 06 of Mar, 2009 (04:50 UTC)
If you want somebody to be able to help you:
1. Clarify what Quantcast's Javascript is, or where to find it, or where you used it (links).
2. Describe what you did.
3. Describe what you thought would happen.
4. Describe what did happen.
5. Post the actual error.
Anonymous
Reply to this PostReply with Quote to this Post

Re: anybody using quantcast metrics ?

Posted:Sat 07 of Mar, 2009 (18:13 UTC)
Laetzer,

You are right.

The js provided by quantcast


<script type="text/javascript">
_qoptions={
qacct:"p-0c8MIx9-DqpPQ"
};
</script>

error I am getting

Fatal error: Smarty error: in evaluated template line 3: syntax error: unrecognized tag:

qacct:"p-0c8MIx9-DqpPQ" (Smarty_Compiler.class.php, line 450) in

/home/....../public_html/bitweaver/util/smarty/libs/Smarty.class.php on line 1092
Anonymous
Reply to this PostReply with Quote to this Post

Re: anybody using quantcast metrics ?

Posted:Sat 07 of Mar, 2009 (23:15 UTC)
Never mind..I was able to resolve the issue by adding
{literal} and {/literal} before and after the javascript function.

It worked.

Modified code

{literal}

<script type="text/javascript">
_qoptions={
qacct:"p-0c8MIx9-DqpPQ"
};
</script>
{/literal}