John Chows Adsense placement

Discussion in 'AdSense' started by nameonthecake, Jul 16, 2007.

  1. #1
    How does john chow from john chow dot com make his adsense only appear on the very top post on the front page?

    thanks
     
    nameonthecake, Jul 16, 2007 IP
  2. sahilcoolsmart

    sahilcoolsmart Well-Known Member

    Messages:
    1,192
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    140
    #2
    if you are using wordpress then, you need to do some simple php coding for that.. or you can use a plugin called adsense delux.

    before the while loop put $count=0, it acts as a counter for posts.
    in the while loop, put

     
    sahilcoolsmart, Jul 16, 2007 IP
  3. feelexit

    feelexit Peon

    Messages:
    143
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    feelexit, Jul 17, 2007 IP
  4. nameonthecake

    nameonthecake Banned

    Messages:
    336
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I dont understand...do I do this from the theme editor...
     
    nameonthecake, Jul 27, 2007 IP
  5. nameonthecake

    nameonthecake Banned

    Messages:
    336
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    OK cool. I think I figured it out...how would I wrap the blog entry around the ad...

    The below code does not work...


    <p style="float: right>

    <?php
    if($count==0)
    {
    ?>
    <---------ADSENSE HERE------->
    <?php
    }$count++;
    ?> </p>
     
    nameonthecake, Jul 27, 2007 IP
  6. bobmeetsworld

    bobmeetsworld Well-Known Member

    Messages:
    758
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    120
    #6
    Adsense Deluxe plugin.
     
    bobmeetsworld, Jul 27, 2007 IP
  7. nameonthecake

    nameonthecake Banned

    Messages:
    336
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Okay...I figured it out...wow adsense deluxe sucks

    this is a much better way

    <?php
    if($count==0)
    {
    ?>
    <--- ADSENSE CODE HERE --->
    <?php
    }$count++;
    ?>

    thanks

    sahilcoolsmart
     
    nameonthecake, Jul 27, 2007 IP
  8. mirturk

    mirturk Active Member

    Messages:
    1,635
    Likes Received:
    79
    Best Answers:
    0
    Trophy Points:
    90
    #8
    Thanks for code I will use my other site. (Not WP)
     
    mirturk, Jul 27, 2007 IP
  9. Doug the Great

    Doug the Great Peon

    Messages:
    548
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Maybe instead of p you should trying using div?
     
    Doug the Great, Jul 27, 2007 IP
  10. 330td

    330td Well-Known Member

    Messages:
    855
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    135
    #10
    I agree, i don't think a "p" can use float tag, it should works only with a div
     
    330td, Jul 27, 2007 IP
  11. nameonthecake

    nameonthecake Banned

    Messages:
    336
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    i got it now...

    thanks for the help
     
    nameonthecake, Aug 4, 2007 IP