Menu

#98 Adding statistics counters

v0.4rc1
open
nobody
counter (1)
1
2013-08-25
2013-08-25
Vitalijs
No

Hello! When I try to add the code in templates/default/index.tpl, eg., Google Analitics, then the site loads a blank page. Please tell me the solution!

Discussion

  • Alessandro Briosi

    Openupload uses Smarty as it's template engine.
    Google analytics uses javascript, which is misinterpreted by smarty.
    So you need to put that code inside the special smarty tag {literal} {/literal}

    So enclose all google code inside that tags like:

    {literal}
    put here your google code
    {/literal}

    for more information see:
    http://www.smarty.net/docsv2/en/language.function.literal

     

    Last edit: Alessandro Briosi 2013-08-25
  • Vitalijs

    Vitalijs - 2013-08-25

    thank you!!!

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB