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.

Setup For .html/.htm Files Without A Footer File

Discussion in 'Co-op Advertising Network' started by digitalpoint, Dec 1, 2004.

  1. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,199
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #81
    I tried doing it as suggested in your initial thread and got a 500 error.

    Then as suggested in another post edited these lines in the .htaccess file:

    RewriteCond %{REQUEST_FILENAME} ^(.*)\.htm [NC,OR]
    RewriteCond %{REQUEST_FILENAME} ^(.*)\.html [NC]

    And this resolved the 500 error issue, but the ads still werent showing...

    Perhaps its because Im using shtml files.
     
    dcristo, Jan 6, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #82
    It's possible... if you have access, check your error log for apache on the server.
     
    digitalpoint, Jan 6, 2005 IP
  3. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,199
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #83
    Can you check the error log through Cpanel?
     
    dcristo, Jan 6, 2005 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #84
    No idea, I don't use cpanel.
     
    digitalpoint, Jan 6, 2005 IP
  5. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,199
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #85
    Ok cheers mate, thanks anyway.
     
    dcristo, Jan 6, 2005 IP
  6. jeff123

    jeff123 Well-Known Member

    Messages:
    251
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    108
    #86
    This is what worked for me. Have to do some more testing though.

    Note the $ sign after html and htm. Also had to add a special case for the home page.
     
    jeff123, Jan 9, 2005 IP
  7. Foxy

    Foxy Chief Natural Foodie

    Messages:
    1,614
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #87
    Thanks for this one - it gave me some hope

    Unfortunately it only works on the index page with a "placed" code on the page, even with or without the special case for the index page.

    It appears not to be picking up the passthru file.

    However at least it is not the dteaded 500 :)
     
    Foxy, Jan 10, 2005 IP
  8. pstatus

    pstatus Peon

    Messages:
    297
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #88
    Shawn got my site back into working order using your passthru.php ADS appear on all pages except

    index.html

    it is the only page that is an html.
    the rest are extensions .htm

    anysuggestions????

    http://www.homeloanhawaii.com
     
    pstatus, Jan 20, 2005 IP
  9. pstatus

    pstatus Peon

    Messages:
    297
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #89
    Nevermind i read a thread on it... got it up and running finally. Thanks for everyone's help
     
    pstatus, Jan 20, 2005 IP
  10. Blogmaster

    Blogmaster Blood Type Dating Affiliate Manager

    Messages:
    25,924
    Likes Received:
    1,354
    Best Answers:
    0
    Trophy Points:
    380
    #90
    Yes you can!
     
    Blogmaster, Jan 20, 2005 IP
  11. leonardlee

    leonardlee Peon

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #91
    include ('ad_network.php');
    echo preg_replace ("/<\/body>/i",
    $ad_network[0]
    $ad_network[1]
    $ad_network[2]
    . '</body>', file_get_contents(str_replace ('../', '', $_REQUEST['file'])));
     
    leonardlee, Jan 20, 2005 IP
  12. leonardlee

    leonardlee Peon

    Messages:
    29
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #92
    too late to delete my last post I found the answer.
     
    leonardlee, Jan 21, 2005 IP
  13. seoxperts

    seoxperts Peon

    Messages:
    453
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #93
    SHAWN..............WHERE ARE YOU ? I CAN"T HELP MYSELF SHOUTING.

    I NEED TO SAY, YOU ARE GREAT. SOLVED A LOT OF MY PROBLEMS.

    THANKS.

    excuse me guys for shouting.
     
    seoxperts, Jan 21, 2005 IP
  14. Haichi

    Haichi Well-Known Member

    Messages:
    293
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #94
    I'm trying to do this for DREAMHOST and got a 500 error

    which one is the root folder at dreamhost

    I have a few domains hosted with them
    is / the root folder?
    which has folders of all my sites...
    or is it /kreyol.com?
    the site I want to run the ads on
     
    Haichi, Jan 27, 2005 IP
  15. Haichi

    Haichi Well-Known Member

    Messages:
    293
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #95
    I got the normal ads to work when I post the code on the page myself

    but I have so many pages I need this to work

    so far here is my only error the site goes blank with this error message

    Parse error: parse error, unexpected T_STRING in /home/.alexa/onehaiti/kreyol.com/passthru.php on line 3
     
    Haichi, Jan 27, 2005 IP
  16. RLM Webcreations

    RLM Webcreations Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #96
    I hate asking stupid questions, but I am having trouble. I generally have a fair understanding of basic programming but I am stuck.

    I have followed the instructions which were very basic thank you Shaun. However, as soon asI add that snippet of code to the .htaccess file It comes up with an internal server error. I know its that because I have eliminated everything else. But as soon as I put that code in teh htaccess file. Bang no website anymore... Can anyone help?
     
    RLM Webcreations, Mar 14, 2005 IP
  17. RLM Webcreations

    RLM Webcreations Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #97
    Sorry I now have it working
     
    RLM Webcreations, Mar 14, 2005 IP
  18. intensity

    intensity Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #98
    Nice, got it.
     
    intensity, Mar 23, 2005 IP
  19. intensity

    intensity Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #99
    Has anyone here that uses subdomains have any redirecting problems after installing the script? I came to find out, by messing around with the htaccess file that the rewrite rule hampers with the subdomain redirect. As soon as I remove it my subdomains work fine.
    Example subdomain.Domain.com now works
    With the below Rewrite Condition I can only access these file by typing in the Domain/Folder. Any help would be appreciated.

    AddType application/x-httpd-php .php .htm .html
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} ^(.*)\.html [NC]
    RewriteRule ^(.*) /passthru.php?file=$1
    </IfModule>
     
    intensity, Mar 24, 2005 IP
  20. Cygnus

    Cygnus Cat Herder

    Messages:
    172
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    108
    #100
    I was futzing around trying to get it working on a site that was giving me tons of trouble.

    The problem? The idiot that wrote the page I was testing on (me) forgot the </body></html> tags...so when the script looks for </body> it doesn't find anything.

    Thus, check to make sure the HTML is okay...like making sure the PC is plugged in before calling the repair tech.

    Cygnus
     
    Cygnus, Mar 25, 2005 IP