took off adsense,got smarty error?

Discussion in 'Directories' started by templates, Jun 21, 2007.

  1. #1
    i took off the little adsense banner i had on my site that was located in the newsfield.tpl of my site and got a smarty error for my entire site..can someone suggest why i delete JUST the adsense code i would get this error and my site would not work right?
     
    templates, Jun 21, 2007 IP
  2. jl255

    jl255 Well-Known Member

    Messages:
    2,762
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    185
    #2
    perhaps double check to see if you accidentally removed an additional bracket or left something behind.....
     
    jl255, Jun 21, 2007 IP
    templates likes this.
  3. templates

    templates Notable Member

    Messages:
    4,772
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    205
    #3
    thanks for the answer..i did look and only saw the code removed that was supposed to...maybe i will try again..(3rd times a charm?)
     
    templates, Jun 21, 2007 IP
  4. aspidov

    aspidov Well-Known Member

    Messages:
    2,875
    Likes Received:
    272
    Best Answers:
    0
    Trophy Points:
    175
    #4
    post your newsfield.tpl code and i will help you real quick
     
    aspidov, Jun 21, 2007 IP
  5. Fastian

    Fastian Peon

    Messages:
    2,085
    Likes Received:
    235
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Would be better if you can show that part of the code to see what happened there.

    Or possibly a link to newsfield.tpl code.
    Removing AdSense shouldn't be a problem.
     
    Fastian, Jun 21, 2007 IP
  6. templates

    templates Notable Member

    Messages:
    4,772
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    205
    #6
    <br />
    {literal}
    <script type="text/javascript"><!--
    google_ad_client = "pub-lalalalalaal";
    google_ad_width = 468;
    google_ad_height = 60;
    google_ad_format = "468x60_as";
    google_ad_type = "text_image";
    //2007-01-28: webdirec
    google_ad_channel = "1627056341";
    google_color_border = "38B63C";
    google_color_bg = "FFFFFF";
    google_color_link = "2BA94F";
    google_color_text = "000000";
    google_color_url = "008000";
    //--></script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    {/literal}
    </center>
    <br />

    should be real simple?
     
    templates, Jun 21, 2007 IP
  7. jl255

    jl255 Well-Known Member

    Messages:
    2,762
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    185
    #7
    simple suggestion, try removing it line by line until u get the error.... of course not the <script> or </script> lines
     
    jl255, Jun 21, 2007 IP
  8. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #8
    Where is the opening <center> tag ??
     
    MeetHere, Jun 21, 2007 IP
  9. aspidov

    aspidov Well-Known Member

    Messages:
    2,875
    Likes Received:
    272
    Best Answers:
    0
    Trophy Points:
    175
    #9
    needs to be removed, including {literal} tags
     
    aspidov, Jun 21, 2007 IP