Large Rectangle Adsense Ad next to Images in PHP

Discussion in 'Placement / Reviews / Examples' started by rajun, Jun 16, 2006.

  1. #1
    I m newbie in PHP coding. I decided to use large rectangle adsense ad (336*280) in my site. I want to use 4 images next to large rectangle adsense ad. But I dont know how to put 4 images in a column next to ad and create a horizontal line between ad and images so that it doesn't violate adsense TOS. That means I want to do that this site did http://www.liewcf.com/ (They did not add horizontal line beetwn ad and images but I want to add it)

    What would be the PHP code of it?

    Thanks for ur help.
     
    rajun, Jun 16, 2006 IP
  2. Riboflavin

    Riboflavin Well-Known Member

    Messages:
    1,091
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    #2
    This has nothing to do with PHP, its all HTML.

    You could use a simple table like so:

    
    <table>
    <tr>
    <td>
    your image
    </td>
    <td>
    adsense code
    </td>
    </tr>
    </table>
    
    Code (markup):
     
    Riboflavin, Jun 16, 2006 IP
  3. rajun

    rajun Peon

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I tried with it but it didnot place images leftsite to the ad. May be I m missing something. And I also want to seperate images and ad through a horizontal line. How can i do it?

    Thanks
     
    rajun, Jun 16, 2006 IP
  4. United32

    United32 Guest

    Messages:
    89
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Check here: www.increasectr.com/images.html
     
    United32, Jun 16, 2006 IP
  5. rajun

    rajun Peon

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks. Great help.
     
    rajun, Jun 16, 2006 IP
  6. cak3p

    cak3p Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I rather confused about this. If you use
    I think this is a table with two columns. If you want to separate images and ad with horizontal rule, you need table with two rows. Correct me if I wrong.
    Something like this:
    <table>
    <tr>
    <td>
    your image
    <hr>
    </td>
    </tr>
    <tr>
    <td>
    adsense code
    </td>
    </tr>
    </table>
    Code (markup):
    Or you can make a table with 3 rows like this:
    <table>
    <tr>
    <td>
    your image
    </td>
    </tr>
    <tr>
    <td>
    <hr>
    </td>
    </tr>
    <tr>
    <td>
    adsense code
    </td>
    </tr>
    </table>
    Code (markup):
    Good Luck
     
    cak3p, Jun 16, 2006 IP
  7. Riboflavin

    Riboflavin Well-Known Member

    Messages:
    1,091
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    #7
    You don't want 3 rows, you want one row with 2 columns. One column has the image and one has the ad.
     
    Riboflavin, Jun 16, 2006 IP
  8. ThirdChair

    ThirdChair Peon

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can't put a horizontal line through an AdSense block...That violates the TOS. But, you could add a vertical line that separates your images on the left from the ad on the right.

    Just use a style for it. http://www.w3.org/TR/REC-CSS2/tables.html
     
    ThirdChair, Jun 16, 2006 IP
  9. Riboflavin

    Riboflavin Well-Known Member

    Messages:
    1,091
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    #9
    He has his TR and TD messed up, so it would seem like the HR would be vertical.
     
    Riboflavin, Jun 16, 2006 IP
  10. kelp

    kelp Peon

    Messages:
    306
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Do you guys make one big image to put on the left of the ad or put individual images in each cell?
     
    kelp, Jun 16, 2006 IP
  11. Riboflavin

    Riboflavin Well-Known Member

    Messages:
    1,091
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    #11
    Either way should work.
     
    Riboflavin, Jun 16, 2006 IP
  12. cak3p

    cak3p Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Yes, I understand. But he said about horizontal rule. So it's make me so confuse. Where is the horizontal rule place? Never mind just share my mind :D Thank You :)
     
    cak3p, Jun 16, 2006 IP
  13. cak3p

    cak3p Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    I use CSS to make it instead table. Please check it! http://www.supriyadisw.net/2006/06/17/using-images-to-increase-click-through-rate/
    I'm not an expert about CSS. Any comments will be very much appreciated.

    Thanks a bunch….
     
    cak3p, Jun 16, 2006 IP
  14. cak3p

    cak3p Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    cak3p, Jun 17, 2006 IP
  15. davcheong

    davcheong Well-Known Member

    Messages:
    1,148
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    175
    #15
    davcheong, Jun 17, 2006 IP
  16. rajun

    rajun Peon

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    I am sorry for creating the confusion guys. It would be vertical line not horizontal line.

    And thank u all guys. Now I did what i wanted to - add images left side to the ad.
     
    rajun, Jun 17, 2006 IP
  17. rajun

    rajun Peon

    Messages:
    71
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Now I am searching for suitable images :)
     
    rajun, Jun 17, 2006 IP
  18. cak3p

    cak3p Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Okey. Good luck to You ;)
     
    cak3p, Jun 17, 2006 IP