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.

nees help in this script

Discussion in 'Programming' started by rewater, Dec 30, 2010.

  1. #1
    hi
    i'm using xfilesharing script in this site
    www.maskshare.com
    iwant to add googleadsense in that place

    [​IMG]
    SEMrush
     
    rewater, Dec 30, 2010 IP
    SEMrush
  2. rewater

    rewater Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hellooooooooooooooo
     
    rewater, Dec 30, 2010 IP
  3. Alan Smith

    Alan Smith Active Member

    Messages:
    1,263
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    78
    #3
    If you want to add Google Adsense in your website, then first of all you need to apply for an account to mange your ads. You can apply for the same on http://adsense.google.com and once you are accepted, just paste provided html code in each webpages of your site where you wish to display the ads.
     
    Alan Smith, Dec 31, 2010 IP
  4. rewater

    rewater Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    i know that i already have an active adsense account
    i can't manage the Templates :S
     
    rewater, Dec 31, 2010 IP
  5. rewater

    rewater Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    helloooooooooooooooooooo
     
    rewater, Jan 1, 2011 IP
  6. whiteshadow18

    whiteshadow18 Peon

    Messages:
    378
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    add the following after </title>
    
    <style type="text/css"> 
    #sidebar1 {
    	float: left; /* this element must precede in the source order any element you would like it be positioned next to */
    	width: 22%; /* since this element is floated, a width must be given */
    	background: #FFFFFF; /* the background color will be displayed for the length of the content in the column, but no further */
    	padding: 15px 0; /* top and bottom padding create visual space within this div  */
    }
    
    #sidebar2 {
    	float: right; /* this element must precede in the source order any element you would like it be positioned next to */
    	width: 23%; /* since this element is floated, a width must be given */
    	background: #FFFFFF; /* the background color will be displayed for the length of the content in the column, but no further */
    	padding: 15px 0; /* top and bottom padding create visual space within this div */
    }
    </style>
    
    Code (markup):
    after that, add in the body, after <body>
    
    <div id="sidebar1">
      <h3>Sidebar1 </h3>
    Here you can add adsense pub
      <!-- end #sidebar1 --></div>
      <div id="sidebar2">
        <h3>Advertising </h3>
    Here you can add adsense pub
      <!-- end #sidebar2 --></div>
    
    Code (markup):
     
    whiteshadow18, Jan 8, 2011 IP
  7. rewater

    rewater Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    thx alot but which templates can i add this codes?
     
    rewater, Jan 8, 2011 IP
  8. rajib.bahar

    rajib.bahar Active Member

    Messages:
    87
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    68
    #8
    Copy and Paste the html of the webpage here if you are unsure of where to place the <div> fields.
     
    rajib.bahar, Jan 8, 2011 IP
  9. whiteshadow18

    whiteshadow18 Peon

    Messages:
    378
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    add those codes in every page of your script, or you can create another php file , let's say call it slidebars.php, and add them with include, to every page
     
    whiteshadow18, Jan 9, 2011 IP