Smarty Error when using pop under ad

Discussion in 'PHP' started by Spyder0215, May 7, 2008.

  1. #1
    I have several website that use smarty templates and when I add a popunder ad code from precissionclick I get an error. I have tried putting the code in different locations in the file and get the same results. I also made a .js file and put the ad code in it and called the file in the header. That worked but I am not getting paid for the click. Anyone know how to work around this?
     
    Spyder0215, May 7, 2008 IP
  2. nihcer

    nihcer Member

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    you should probably surround your js code with literal tags:

    {literal}
    /*your JavaScript code*/
    {/literal}

    if it doesn't work, please post the error
     
    nihcer, May 7, 2008 IP
  3. Spyder0215

    Spyder0215 Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    That worked perfectly. I knew it was something like that but couldn't remember. Thanks.
     
    Spyder0215, May 7, 2008 IP