Welcome to Geeklog, Anonymous Thursday, July 17 2025 @ 04:16 pm EDT
Geeklog Forums
Trying to get a rotate banner to work
Status: offline
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
31
29
Quote
Status: offline
Forum User
Junior
Registered: 08/15/02
Posts: 32
Or another suggestion to have three banners show in a block that rotates among 50+.
37
30
Quote
Status: offline
Forum User
Junior
Registered: 08/15/02
Posts: 32



36
29
Quote
Status: offline
Forum User
Junior
Registered: 02/01/03
Posts: 32
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?
28
45
Quote
Status: offline
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?
30
29
Quote
Status: offline
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.
28
29
Quote
Status: offline
Forum User
Junior
Registered: 02/01/03
Posts: 32
qwikstreet,
did this work for you?
26
28
Quote
Status: offline
Forum User
Full Member
Registered: 05/27/03
Posts: 612
Take a look at the banner at the top of http:www.charlottebizonline.com/
Is that something like what you want?
30
23
Quote
Status: offline
Forum User
Full Member
Registered: 11/06/02
Posts: 523

38
33
Quote
All times are EDT. The time is now 04:16 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