1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Placing adsense into my script

Discussion in 'Placement / Reviews / Examples' started by TheWebJunkie, Mar 15, 2005.

  1. #1
    Hey guys i would like to place the new google adlinks from adsense into my script, i would like to place it where i have pointed out in the pic :)

    [​IMG]

    Here is the code for my view.php file

    http://www.sigtraders.com/view.txt

    And here is my adsense code i wish to use

    
    <script type="text/javascript"><!--
    google_ad_client = "pub-XXXXXXXXXXXXXXX";
    google_ad_width = 200;
    google_ad_height = 90;
    google_ad_format = "200x90_0ads_al";
    google_ad_channel ="";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "0000FF";
    google_color_url = "008000";
    google_color_text = "000000";
    //--></script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    
    Code (markup):
    Thanks in advance :)
     
    TheWebJunkie, Mar 15, 2005 IP
  2. NewComputer

    NewComputer Well-Known Member

    Messages:
    2,021
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    188
    #2
    I don't think you can because it looks like you would have to login or register to get to that page and that would be against their TOS...
     
    NewComputer, Mar 15, 2005 IP
  3. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You dont have to login or reg to view a members profile where i want the ads.
     
    TheWebJunkie, Mar 15, 2005 IP
  4. wendydettmer

    wendydettmer Peon

    Messages:
    1,462
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are you asking if we think it's a good placement? I think the new adlinks would work quite well in that spot. Let us know how they work out!
     
    wendydettmer, Mar 15, 2005 IP
  5. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #5
    im asking how to place the new adlinks in that spot :) that why i have included my adsense code and the code for my view.php file :)
     
    TheWebJunkie, Mar 16, 2005 IP
  6. wendydettmer

    wendydettmer Peon

    Messages:
    1,462
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Ah. You will probably have better luck if you ask under the php or web development section.
     
    wendydettmer, Mar 16, 2005 IP
  7. yfs1

    yfs1 User Title Not Found

    Messages:
    13,798
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You might want to put a priority on fixing:

    Find A Seller.
    Use the form below to search for sellers via keywords.



    It has never worked (for me anyway)
     
    yfs1, Mar 16, 2005 IP
  8. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The find a seller option works try a keywork like design.

    Also if you dont want to search by keywords you can just press list all sellers :D
     
    TheWebJunkie, Mar 16, 2005 IP
  9. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Find:

    <table width='160' border='0' align='center' cellpadding='2' cellspacing='1' bgcolor='#FFFFFF'>
    
    
    
    
    <tr bgcolor='#103463'>
                                                  <td height='20' width='160' colspan='2' class='td2'>
    <font color='#FFFFFF'>
    Make Seller An Offer
    </font></td>
                                          </tr>
                                          <tr>
            <td valign='center' align='center' height='100%' bgcolor='#FFFFFF'>
    <br>
                    <center><input type=submit name=offer value='Send An Offer'><br><font size='1'>(By PM)</font></center><br>
            </td>
    </tr>
    </table>
    Code (markup):
    After, add:

    <table width='160' border='0' align='center' cellpadding='2' cellspacing='1' bgcolor='#FFFFFF'>
    
    
    
    
    <tr bgcolor='#103463'>
                                                  <td height='20' width='160' colspan='2' class='td2'>
    <font color='#FFFFFF'>
    Advertisments
    </font></td>
                                          </tr>
                                          <tr>
            <td valign='center' align='center' height='100%' bgcolor='#FFFFFF'>
    <br>
                    <center><script type="text/javascript"><!--
    google_ad_client = "pub-XXXXXXXXXXXXXXX";
    google_ad_width = 200;
    google_ad_height = 90;
    google_ad_format = "200x90_0ads_al";
    google_ad_channel ="";
    google_color_border = "FFFFFF";
    google_color_bg = "FFFFFF";
    google_color_link = "0000FF";
    google_color_url = "008000";
    google_color_text = "000000";
    //--></script>
    <script type="text/javascript"
      src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script></center><br>
            </td>
    </tr>
    </table>
    Code (markup):

    I think that should work :p


    Josh
     
    Josh, Mar 16, 2005 IP
  10. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Nice one Josh im at a friends house atm playing metal gear on ps2, ill test this when im home and let you know if it works :)
     
    TheWebJunkie, Mar 16, 2005 IP
  11. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Alright :) Hope it works.. basically its just adding another box (if I read your code right)



    Josh
     
    Josh, Mar 16, 2005 IP
  12. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #12

    Im surprised you can read the code its very messy indeed, im hiring a new coder to make my site much cleaner and add a user feedback system :)
     
    TheWebJunkie, Mar 16, 2005 IP
  13. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #13
    *sigh* My domain lifelessgeek.com really fits me, doesn't it? :p


    Josh
     
    Josh, Mar 16, 2005 IP
  14. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #14

    What do you mean by that josh?
     
    TheWebJunkie, Mar 16, 2005 IP
  15. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #15
    hey Josh your code didnt work :(

    i got this error
    
    Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home2/webjunki/public_html/view.php on line 235
    
    Code (markup):
     
    TheWebJunkie, Mar 16, 2005 IP
  16. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Yeah.. thats because the "'s in the adense code need to be escaped, i.e. instead of " it should be /" -- email me your modified file, and Ill fix it for you. josh ----at---- thejosher [[dot]] com


    Josh
     
    Josh, Mar 16, 2005 IP
  17. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Thanks alot josh, email sent :)
     
    TheWebJunkie, Mar 16, 2005 IP
  18. Josh

    Josh Peon

    Messages:
    893
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #18
    And reply was sent :) Within one minute I might add ;)

    Hope it works.

    Josh
     
    Josh, Mar 16, 2005 IP
  19. anthonycea

    anthonycea Banned

    Messages:
    13,378
    Likes Received:
    342
    Best Answers:
    0
    Trophy Points:
    0
    #19
    Rent-a-Josher.com
     
    anthonycea, Mar 16, 2005 IP
  20. TheWebJunkie

    TheWebJunkie Banned

    Messages:
    630
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #20
    check your email please josh :)
     
    TheWebJunkie, Mar 16, 2005 IP