Problem Back Again

Discussion in 'Co-op Advertising Network' started by tdarnold, Dec 16, 2004.

  1. #1
    I added the .htaccess to my main folder and that temporarily solved the problem of it trying to validate my html pages.

    How ever it has started again.

    It wants ads on my html pages before it will validate.
     
    tdarnold, Dec 16, 2004 IP
  2. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #2
    can you give us a bit more background info, so we know what you are talking about?
     
    chachi, Dec 16, 2004 IP
  3. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #3
    hi
    what code just post the .htaccess lines here
    what system you are on eg unix apache
    do you have cpanel
    do you use anything else than just htm and php

    coop needs to be shown on all pages that are accessible (excluded are only noindex or equivalent pages)

    M
     
    expat, Dec 16, 2004 IP
  4. tdarnold

    tdarnold Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I added this line to my .htaccess file:

    AddType application/x-httpd-php .php .htm .html

    Heres my error code:

    Ads not found on (http://www).insurance-quote-now.com/cheap-quotes/pennsylvania-insurance-quote.htm

    My site is obviously (http://www).insurance-quote-now.com

    I am only using html and php files

    (Parenthesis added because of lack of abilty to post links)

    Tim
     
    tdarnold, Dec 16, 2004 IP
  5. tdarnold

    tdarnold Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    One more thing. It worked earlier and was validated.

    then it reverted back.
     
    tdarnold, Dec 16, 2004 IP
  6. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I see ads running on the bottom of the index page...but they look messed up as you have 2 banner ads and 2 text ads. What is the code you are using to include the ad network code?
     
    chachi, Dec 16, 2004 IP
  7. tdarnold

    tdarnold Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I am using the code for text banner only.

    I fixed the problem you just mention about the banner ads and text ads. I knew what was casuing that. I still have some work to do on spacing the links at the bottom of the pages.

    My real problem again is the error code that says theri are no ads on my html files. i use cpanel also.
     
    tdarnold, Dec 16, 2004 IP
  8. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #8
    well, I think the problem is probably in your code on the page, if I had to guess. But, it is impossible to know without seeing it. The ads are not showing, so I would assume that your modifications are not including something the co-op validator is checking for
     
    chachi, Dec 16, 2004 IP
  9. tdarnold

    tdarnold Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    But I am not using code in the html files

    Heres the code I am using on the pages

    <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="45%" id="AutoNumber1">
    <tr>
    <td width="100%">
    <p style="text-align: center"><font face="Tahoma" size="1">Thanks to Our Sponsors:<br>
    &nbsp;<?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0];
    ?> |
    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[1];
    ?> |
    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[2];
    ?> |
    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[3];
    ?> |
    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[4];
    ?> | </font></td>
    </tr>
    </table>
    </center>
    </div>
     
    tdarnold, Dec 16, 2004 IP
  10. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I just went back through this thread. The validation failed for http://www).insurance-quote-now.com/cheap-quotes/pennsylvania-insurance-quote.htm so, there are no ads on that page....
     
    chachi, Dec 16, 2004 IP
  11. tdarnold

    tdarnold Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    So I need ads on the html pages too?

    Can I just delete them?

    I change them all to php so the code would work.

    I didnt think php would work on a html extension age.

    BTW sorry to be so thick headed.
     
    tdarnold, Dec 16, 2004 IP
  12. tdarnold

    tdarnold Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Problem seems to be solved.

    I deleted the html version of the pages.

    I thought the code that goes in the htaccess solves the problem of having htm files on your site with no ad. But as long as I'm validated I will glady delete them.
     
    tdarnold, Dec 16, 2004 IP
  13. tdarnold

    tdarnold Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Thanks for the help.
     
    tdarnold, Dec 16, 2004 IP
  14. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #14
    no worries. I am not totally following you when you say html versions of the pages. If the pages are in the G index (and linked to on your site) then there is no reason to delete them. You can run php inside .html extension pages, with the right stuff in your .htaccess or httpd.conf file. One important thing, you need to run the ads on EVERY page on your site. The validator will pick pages at random from the Google cache and if it does not find ads on a page, it will fail your site.

    The code in the htaccess file can do a number of things, but none of it will make it ok not to run the ads on every page of the site. The htaccess stuff can let you run php code inside of .htm or .html pages or it can allow you to use SSI to include the php as an include.
     
    chachi, Dec 16, 2004 IP
  15. tdarnold

    tdarnold Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Mmm...

    I did not know you could run the php code inside the html pages.

    I was thinking the htaccess code would allow the validator to bypass the html files, but was completey wrong.

    I will get back to work......
     
    tdarnold, Dec 16, 2004 IP
  16. giblar

    giblar Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Tdarnold,

    I noticed from message 9 of this thread that you included the php code that was given to you 5 times. Is that necessary to get the ad to show five times?

    Here's the code I use. Now I worry that I'm not getting credit for showing 5 ads, even though I am showing 5 ads. Does anybody know whether you have to include the 'ad_network.php' file 5 times, or if it's sufficient to echo the 5 variables like I did?
    =====================

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network.php');
    echo $ad_network[0]. " ".$ad_network[1]. " ".$ad_network[2]. " ".$ad_network[3]. " ".$ad_network[4];
    ?>
    =============================

    - Jim
     
    giblar, Dec 16, 2004 IP
  17. chachi

    chachi The other Jason

    Messages:
    1,600
    Likes Received:
    57
    Best Answers:
    0
    Trophy Points:
    0
    #17
    Jim, you are looking fine
     
    chachi, Dec 16, 2004 IP
  18. giblar

    giblar Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #18
    Thanks Chachi.

    Actually I was hoping I was doing it wrong, so I could get more weight by doing it right :) Oh well.

    Thanks again.

    Jim
     
    giblar, Dec 16, 2004 IP
  19. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #19
    well the ads are showing (at least when I called tha page) the source looks ok

    just one question do you use the latest code for the php?
    If so and you can't validate post a validation problem message and give the below details
    sorry
    M
     
    expat, Dec 17, 2004 IP