Can co-op ad be installed on a site that written in perl mixed with html and shtml?

Discussion in 'Co-op Advertising Network' started by waelthmastery, Jul 21, 2006.

  1. #1
    As there is a index.shtml,
    So I just included
    <!--#include virtual="/ad_network_324.php" -->

    The ad only appears on the front page...

    But as the rest of the pages are in the .html
    I tried to add these lines...

    <?php
    ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    include ('ad_network_324.php');
    echo $ad_network;
    ?>

    and also
    <!--#include virtual="/ad_network_324.php" -->

    but they do not work...

    site url top-profiles.com
     
    waelthmastery, Jul 21, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    In the footer cgi file I have something like...

    
    #!/usr/bin/perl
    
    #Get the co-op page
    use LWP::Simple;
    $dpcoop = get ('http://www.domain.com/ad_network_427_perl.php');
    
    {
       print "Content-Type: text/html\n\n";
    print <<EOM;
    HTML - $dpcoop
    EOM
       exit;
    }
    Code (perl):
    where HTML is where I enter the HTML stuff and $dpcoop where you want the ad to show up.

    http://www.domain.com/ad_network_427_perl.php has....

    
    <?php
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network_427.php');
    	echo $ad_network;
    ?>
    Code (php):
    The nice thing about this is you can use the same files on all your domains.

    If you need to make the pages support SSI, in .htaccess...

    AddType text/x-server-parsed-html .html
    AddHandler server-parsed .html
     
    Nintendo, Jul 21, 2006 IP
    poseidon likes this.
  3. waelthmastery

    waelthmastery Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi Nintendo. Thanks!
    Would you mind to explain it in a step by stpe manner please? Sorry... :(

    I know you odnt get paid for this...but yoru help is really appreciated. I have been trying to get this working for a whiel now. Still no luck and get very frustarted...

    I do not think AddType application/x-httpd-php .php .htm .html work on sites that are not PHP. I remember i did change a site to all .php from .html so that they work...

    Has anybody got any idea please?

    Thanks man, sorted...

    Now, 1 more question on this. How to get the co-op ads centered?

    Thanks
     
    waelthmastery, Jul 21, 2006 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    The first code is what's in the cgi file. That's the file I call from SSI.

    <center>$dpcoop</center>

    would make the ads in the center.

    You don't need

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

    You just need to be able to do SSI.
     
    Nintendo, Jul 21, 2006 IP
  5. waelthmastery

    waelthmastery Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Man, you are truly genius! :D

    Can you give me advice on how to place ads on
    blogger blog installed on own server (meaning
    NOT http://xxx.blogspot.com)?
     
    waelthmastery, Jul 22, 2006 IP
  6. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #6
    Depends on what script you use. Follow the instructions in the co-op page.
     
    Nintendo, Jul 22, 2006 IP
  7. waelthmastery

    waelthmastery Peon

    Messages:
    64
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    i did, but does not work... :( i use whatever script issued by blogger
     
    waelthmastery, Jul 22, 2006 IP
  8. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #8
    Wordpress is all I've used.
     
    Nintendo, Jul 22, 2006 IP