Posted on: 07/17/03 04:15pm
By: qwikstreet
I have a banner.php that has the code to rotate banners of a specific size. So, in my PHP block, I would like to rotate 88x31 banners. These banners need to be called from a txt file (ie - # URL | target=\"_blank\" (1 = Yes, 0 = No) | off-site image (1 = Yes, 0 = No) | image | Alt text)
The include that needs to be on the php to call from banner.php is:
Now, I am having problems creating a block to do this. I can\'t make it a normal block because the above include wont register. Any suggestions?
A link to the script I am using is http://abledesign.com/programs/banner.php
Re:Trying to get a rotate banner to work
Posted on: 07/17/03 11:42pm
By: qwikstreet
Or another suggestion to have three banners show in a block that rotates among 50+.
Re:Trying to get a rotate banner to work
Posted on: 07/20/03 02:02am
By: qwikstreet
Re:Trying to get a rotate banner to work
Posted on: 07/24/03 02:45pm
By: anuenue
Have you tried adding the php code to lib-custom.php and then making the block a php block that calls the banner ad function?
Re:Trying to get a rotate banner to work
Posted on: 08/02/03 04:02am
By: qwikstreet
I\'ve tried something like that. The part that screws it up with that is; it has its own php script to pull up a banner from a txt file. Then their is the php include which you would implement calling up a banner to a php page. You would use a couple php includes to call up as many as you wanted.
What is everyone else using for rotating hotlink 88x31 banners?
Re:Trying to get a rotate banner to work
Posted on: 08/08/03 09:54am
By: anuenue
qwikstreet,
Take banner.php minus the php tags and add it to the end of lib-custom.php. Then create a function for each size of ad you wish to run like this:
function phpblock_Ad125x125()
{
$retval = get_banner( \"125x125\" );
return $retval;
}
Then create a phpblock that calls phpblock_Ad125x125. That should do it.
Re:Trying to get a rotate banner to work
Posted on: 08/12/03 06:57pm
By: anuenue
qwikstreet,
did this work for you?
Re:Trying to get a rotate banner to work
Posted on: 09/10/03 07:19pm
By: ronack
Take a look at the banner at the top of http:www.charlottebizonline.com/
Is that something like what you want?
Re:Trying to get a rotate banner to work
Posted on: 09/10/03 08:46pm
By: ScurvyDawg