PDA

View Full Version : code problem


OZGRESSION
03-29-2002, 07:11 PM
I installed an ad management program called DB-Free Ad Manager v0.8.0 and it was successful. I uploaded a banner to test it, and it worked. But here's the problem...

I go to place the code for the banner on my page and it doesn't work. I followed the exact step (as listed below) and it just diplayed the code as text on the page (yes I did try putting the path settings in the head tag and above it. Any help would be great.

3 - Now to add banners to your webpages, you need to do two things.

a) Add these lines to the top of your page:
require('./path/to/settings.php');
require('./path/to/functions.php');

Where ./path/to/ is the path to the banner directory you created in the
installation process.

b) Wherever you want to place a banner, simply add:
displayAd();

thanx in advance

kevin
03-29-2002, 07:21 PM
You're not trying to put the code on a regular HTML page are you? Looks like its supposed to go on a php webpage.

OZGRESSION
03-29-2002, 08:27 PM
Im trying to put it on a template for a links2.0 site.

Will it not work?

scoutt
03-30-2002, 09:43 AM
you can't use requires for a template because teh paths will be different on everybodys machine.

maybe I missed the poinit. but kevin is right. what you are doing will require the page to be named file.php

also where it says path, don't be useing the url you need the absolute path.

what is the code you are trying?

OZGRESSION
03-30-2002, 07:03 PM
Thats alright guys, I found a better one at cgi-factory.com that will definately work.

Thanx for your help anyway...;)