Wallpaper Script Forum » Announcements

Adsense under the thumbs ?? I pay for answers.

(14 posts)
  1. iiyama
    Member

    I am not asking for a free help, obviously nothing is free in this world, specialy if you asking for knowledge !!, i need a help and answer for this issue, and too bad this great script have no support.

    I am trying to have my adsense ads in my index page, in the section of the latest wallpapers, under the first 3 thumbs row.

    example attached snapshot :

    http://www.host-images.com/u/files/cvfxlr8ym6agh67bikkj.jpg
    http://img517.imageshack.us/i/adsenset.jpg/

    Thank you,

    Posted 1 year ago #
  2. go to :
    /www/templates/default/items.tpl

    /* Affter line 7 . you can put ads code */
    {if $counter==2}
    //adsense here
    //adsense here
    {/if}

    Posted 1 year ago #
  3. iiyama
    Member

    Thanks for the help, but its not working !!

    i tried to add to my items.tpl file, but nothing is showing
    {if $counter==2}
    ADSENSE
    {/if}

    This what i have in /www/templates/default/items.tpl

    {dynamic}
    {if $items|@count}
    <ul class="wallpapers">
    {section name=item loop=$items}
    {include file="item.tpl" items=$items}
    {/section}
    <li class="reset">

    <div class="reset"></div>
    {$pagination}
    {else}
    {l s='No wallpapers found'}
    {/if}
    {/dynamic}

    Posted 1 year ago #
  4. THis is my file , look my domain : Free Wallpapers

    {dynamic}
    {if $items|@count}
    <ul class="wallpapers">
    {counter start=0 skip=1 assign='counter' print=false}
    {section name=item loop=$items}
    {include file="item.tpl" items=$items}
    {if $counter==11}

    {/if}
    {if $counter==5}
    <!--<div class="iner-ads" style="margin:5px 0px 15px 50px;">
    468 x 60
    </div>-->
    <script type="text/javascript"><!--
    google_ad_client = "***************";
    /* 300x250, created 5/18/10 */
    google_ad_slot = "6298372594";
    google_ad_width = 300;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <script type="text/javascript"><!--
    google_ad_client = "*****************";
    /* 300x250, created 5/18/10 */
    google_ad_slot = "6298372594";
    google_ad_width = 300;
    google_ad_height = 250;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    {/if}
    {if $counter==8}

    {/if}
    {counter}
    {/section}
    <li class="reset">

    <div class="reset"></div>
    {$pagination}

    {else}

    {l s='No wallpapers found'}

    {/if}
    {/dynamic}

    Posted 1 year ago #
  5. trancedman
    Member

    @ktvbmt, can you help me with a file from your script? I need "category.inc.php" file because there's a bug in the new version of the script.Thanks in advance.

    Posted 1 year ago #
  6. trancedman
    Member

    @ktvbmt, can you help me with a file from your script? I need "category.inc.php" file because there's a bug in the new version of the script.Thanks in advance.

    Posted 1 year ago #
  7. trancedman
    Member

    @ktvbmt, can you help me with a file from your script? I need "category.inc.php" file because there's a bug in the new version of the script.Thanks in advance.

    Posted 1 year ago #
  8. iiyama
    Member

    Thanks again for your efforts, but it didn't work for me!

    seems its because we use different versions and different templates for the script. so i am giving up ... lol.

    Thank you :)

    Posted 1 year ago #
  9. shekhar
    Member

    Replace Your code in items.tpl with code below...

    To place ads after first change no. 8 in {if $counter==8} with 2 i.e {if $counter==2}
    For after second line 5
    Ads after third line 8
    Ads after fourth line 11

    Code:

    {dynamic}
    {if $items|@count}
    <ul class="wallpapers">
    {counter start=0 skip=1 assign='counter' print=false}
    {section name=item loop=$items}
    {include file="item.tpl" items=$items}

    {if $counter==8}
    <center>

    ADSENSE CODE HERE

    </center>
    {/if}

    {counter}

    {/section}
    <li class="reset">

    <div class="reset"></div>
    {$pagination}

    {else}

    <h1>No Wallpapers Found.</h1>

    {/if}
    {/dynamic}

    Posted 1 year ago #
  10. ktvbmt and shekhar, with your codes I get banner at middle, but there is some error, how to solve it? look:

    Attachments

    1. problem.jpg (144.1 KB, 10 downloads) 1 year old
    Posted 1 year ago #
  11. iiyama
    Member

    i got the same problem this is why i gave up trying ... lol.

    Posted 1 year ago #
  12. shekhar
    Member

    If u want Ads between thumbs... then u must remove those modules...
    this is only way right now...

    Posted 1 year ago #
  13. jammu, how did u make to work at your site?

    Posted 1 year ago #
  14. shekhar
    Member

    ..lol:)

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.