Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 10:37 am EST
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
15
16
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+.
20
14
Quote
Status: offline
qwikstreet
Forum User
Junior
Registered: 08/15/02
Posts: 32
Any ideas? Suggestions? Someone else has got to be running something similar on their geeklog?
Buehler? Buehler? Buehler?
22
17
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?
19
14
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.
16
15
Quote
19
17
Quote
All times are EST. The time is now 10:37 am.
- 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