Welcome to Geeklog, Anonymous Saturday, September 07 2024 @ 08:22 pm EDT
Geeklog Forums
Trying to get a rotate banner to work
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
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
13
13
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
Or another suggestion to have three banners show in a block that rotates among 50+.
17
12
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
![Rolling Eyes Rolling Eyes](https://www.geeklog.net/forum/image_set/pixel.gif)
![Rolling Eyes Rolling Eyes](https://www.geeklog.net/forum/image_set/pixel.gif)
![Rolling Eyes Rolling Eyes](https://www.geeklog.net/forum/image_set/pixel.gif)
20
14
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
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?
16
10
Quote
Status: offline
anuenue
Forum User
Junior
Registered: 02/01/03
Posts: 32
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.
13
13
Quote
17
14
Quote
All times are EDT. The time is now 08:22 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content