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.

adding co-op to html site

Discussion in 'Co-op Advertising Network' started by l234244, Dec 5, 2004.

  1. #1
    I have used the co-op on a phpbb forum but would like to use it on my other pages within the overall site which are html. How do I go about this?
    SEMrush
     
    l234244, Dec 5, 2004 IP
    newbie100 likes this.
    SEMrush
  2. zamolxes

    zamolxes Peon

    Messages:
    176
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Add this line in your .htaccess file:

    Then insert this php code:

    <?php
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network.php');
    	echo $ad_network[1];
    ?>
    PHP:
    where you want the ads displayed on the page.
     
    zamolxes, Dec 5, 2004 IP
  3. asamuel

    asamuel Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    l234244 has php to start with, but if you have a site totally written in html can the code be inserted to join the coop network??
     
    asamuel, Dec 6, 2004 IP
  4. yfs1

    yfs1 User Title Not Found

    Messages:
    13,799
    Likes Received:
    922
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Make sure your site is PHP enabled (Most hosting companies offer this for free).

    If it is windows servers, have them cofigure your website to parse .php, .htm and .html files through the
    php engine (instead of htaccess)

    And make sure the text file you create is writeable (again ask your hosting company)

    To answer your original question - Yes you just put the PHP code where you want the ads displayed.
     
    yfs1, Dec 6, 2004 IP
  5. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #5
    Yes, if you are running apache, php and mod rewrite. This thread shows the code you would need to use. http://forums.digitalpoint.com/showthread.php?t=5659
     
    nevetS, Dec 6, 2004 IP