Please help - Ad/File image rotator?

6 posts by 2 authors in: Forums > CMS Builder
Last Post: February 22, 2008   (RSS)

By Codee - February 16, 2008 - edited: February 17, 2008

We're using CMS Builder like AutoManager and it's really coming along. My client wants a banner rotating at the top of the home page that shows thumbnails of the current inventory and be clickable.

Anyone else already done this?

Thanks in advance!

Terry

Re: [equinox69] Please help - Ad/File image rotator?

By Dave - February 18, 2008

Hi Terry,

To do that you'd basically just use a list viewer, and then set these options:

$options['perPage'] = '1'; // only show 1 banner
$options['pageNum'] = '1'; // show first result
$options['where'] = '1'; // ignore keyword searches
$options['orderBy'] = 'RAND()'; // sort randomly

That will list all the records, sort them randomly, and show you the first one.

Hope that helps! Let me know if you have any other questions!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Please help - Ad/File image rotator?

By Codee - February 20, 2008

Dave,
I'm struggling making this work. So, do I use the code from the same list viewer used to make the listings appear normally and save as a new file name, then place that file code on a page where I want the banner to appear?

And as far as "setting the list viewer options" - is that in section 1, section 2 or section 3 of the list viewer code. I really am a neophyte when it comes to scripts and coding...except I'm really good with html and seo work.

Re: [equinox69] Please help - Ad/File image rotator?

By Dave - February 21, 2008

You'd have 2 list viewers on the same page, and you would update the options in STEP 1.

Hope that helps, let me know if I can provide more details.
Dave Edis - Senior Developer
interactivetools.com

Re: [equinox69] Please help - Ad/File image rotator?

By Dave - February 22, 2008

Hi Terry,

Ok, I've responded back to you via email. Feel free to post back here with any followup questions or via email if there is any private links or details.
Dave Edis - Senior Developer
interactivetools.com