PDA

View Full Version : How to add the DigitalPoint Ad Network to FREEBS


Greg
04-15-2005, 12:13 AM
Adding the DigitalPoint Network Ads to your FREEBS installation is very easy.

In your footer.html template in the /templates folder of your FREEBS installation, add the following code where you want the ads to display.

This is an example, use your server path and replace the XXX in the ad network file with your file version. Edit this as necessary.


<?php
chdir('/home/yoursite/public_html/forums/');
include ('ad_network_XXX.php');
echo '<center>' . $ad_network . '</center>';
?>

Capn
04-15-2005, 12:10 PM
The code below works for me:

<?
include ('../ad_network.php');
echo $ad_network;
?>

Greg
04-15-2005, 12:12 PM
Thanks for the example.

jhughes
04-15-2005, 02:56 PM
More compatible.
a.) Place file ad_network.php at www_root
b.) Place .txt at www_root and chmod to writable
c.) Call from anywhere :) using the line below

<?
include ($_SERVER['DOCUMENT_ROOT'].'/ad_network.php');
echo "<center>$ad_network</center>";
?>

Greg
04-15-2005, 03:15 PM
Very good, thanks.