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.

Problem With Setting Up

Discussion in 'Co-op Advertising Network' started by Trieste, Oct 14, 2004.

  1. #1
    Hi,

    I am new and I hope you can help me. I have a site which uses ssi but uses regular .html extensions using .htaccess.

    I am unable to run the ads using the instructions for .shtml pages. They just don't display. Oddly, if I use the instructions for php pages, the ads do display but then my server side include content does not load.

    Any suggestions?
    SEMrush
    Thanks in advance
     
    Trieste, Oct 14, 2004 IP
    SEMrush
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,287
    Likes Received:
    2,602
    Best Answers:
    460
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    In the ad_network.php file, towards the end of it there should be a reference to .shtml file extensions. Since you are using SSI with .html, try changing it from .shtml to .html and see if that works.
     
    digitalpoint, Oct 14, 2004 IP
  3. Trieste

    Trieste Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the quick reply and the suggestion. Unfortunately it didnt help.

    I am not sure if this would help, but this is the .htaccess I use. Maybe this is where I am going wrong.


    Options Indexes FollowSymLinks Includes

    AddType application/x-httpd-cgi .cgi

    AddType text/x-server-parsed-html .html

    AddType text/x-server-parsed-html .htm

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


    If there is anything else you can suggest I would really appreciate it.
     
    Trieste, Oct 14, 2004 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,287
    Likes Received:
    2,602
    Best Answers:
    460
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Try changing this:

    if (substr ($_SERVER['DOCUMENT_NAME'], -6) == '.shtml') {
    	ini_set ('zlib.output_compression', 0);
    	echo end ($ad_network);
    }
    PHP:
    to this:
    
    	echo end ($ad_network);
    PHP:
    And do the normal SSI include of the ad_network.php file.
     
    digitalpoint, Oct 14, 2004 IP