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
 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+.
 Quote

Status: offline

qwikstreet

Forum User
Junior
Registered: 08/15/02
Posts: 32
Rolling Eyes Rolling Eyes Rolling Eyes Any ideas? Suggestions? Someone else has got to be running something similar on their geeklog? Buehler? Buehler? Buehler?
 Quote

Status: offline

anuenue

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?
 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?
 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.
 Quote

Status: offline

anuenue

Forum User
Junior
Registered: 02/01/03
Posts: 32
qwikstreet, did this work for you?
 Quote

Status: offline

ronack

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?
 Quote

Status: offline

ScurvyDawg

Forum User
Full Member
Registered: 11/06/02
Posts: 523
working
Hey I did this once. Check out this forum entry at Squatty\'s place

I hope it helps Smile
 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