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.

Drupal

Discussion in 'Co-op Advertising Network' started by sifuhall, Oct 28, 2005.

  1. #1
    Has anyone set this up with drupal?

    I would like to have this appear at the bottom of the pages but I haven't been able to get it to work with drupal yet.
     
    sifuhall, Oct 28, 2005 IP
  2. jazzylee77

    jazzylee77 Peon

    Messages:
    578
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I was working on that for quite a while. As you've probably discovered, you can't use php in the footer setup thing in admin...at least you can't out of the box. And drupals .htaccess screws up the passthru.php.method. I was able to get passthru.php to work on one drupal site, but not on any other.


    But this works...put it here in the page.tpl file

    <?php if ($footer_message): ?><div id="footer" class="footer-<?php print $layout; ?>"><p><?php print $footer_message; ?></p></div><?php endif; ?>
    <p><font size="1" color="#000000">
    <?php
    	ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../');
    	include ('ad_network_216.php');
    	echo $ad_network;
    ?>
    </font></p>
    PHP:
    (line numbers aren't accurate...)
     
    jazzylee77, Nov 2, 2005 IP