Please Help With Directory

Discussion in 'PHP' started by crash9811, May 27, 2010.

  1. #1
    I am new to php and this is my first site.I am trying to add google adsence to the top of my page next to my title.I have the ads up now but i cant bring them down to be on the right of my title.I dont know if im using the right file, i put them in index.php.I looked in index.html file but nothing was in there.It would be great if someone could guide me in the right direction.My site is: http://www.directorybidsite.com
     
    crash9811, May 27, 2010 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    thats index.php, try to access the page using .php well if it is, delete the .html file to avoid confusion in the future
     
    bartolay13, May 27, 2010 IP
  3. cupi

    cupi Greenhorn

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Easy, your google adsense is out of the body tags of the page. Once your page actually starts you have div elements which create spacing.

    Find this piece of code in the beginning of your body tag:

    <table width="100%" cellpadding="0px" cellspacing="0px" border="0px">
    <tr>
    
    <td nowrap valign="bottom"><a class="logo" href="/">Directory Bid Site</a><br /><small>Bid Directory </small></td>
    <td width="100%" align="right" valign="bottom" nowrap>
    Code (markup):
    Now, add another row above the first tr tag, then cut and paste your google adsense go there, like this:

    <table width="100%" cellpadding="0px" cellspacing="0px" border="0px">
    <tr>
    <td> PLACE YOUR ADSENSE CODE HERE </td>
    </tr>
    
    <tr>
    
    <td nowrap valign="bottom"><a class="logo" href="/">Directory Bid Site</a><br /><small>Bid Directory </small></td>
    <td width="100%" align="right" valign="bottom" nowrap>
    Code (markup):
    This will bring down your code. Because at the moment it's out of the template overall.
     
    cupi, May 27, 2010 IP
  4. crash9811

    crash9811 Member

    Messages:
    145
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    38
    #4
    Thanks for the help guys,I am so lost when it comes to php.I am now trying to add my googl ads at the bottom of the page to go above my "©2007 Directory Bid Site, All rights reserved.
    Powered by phpLinkBid Directory Script" and im trying to put one more under my Resources on the right side of the page.It would be nice if you can help again.Thanks for all your help guys.
     
    crash9811, May 27, 2010 IP