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
Anyone else already done this?
Thanks in advance!
Terry
Re: [equinox69] Please help - Ad/File image rotator?
By Dave - February 18, 2008
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!
interactivetools.com
Re: [Dave] Please help - Ad/File image rotator?
By Codee - February 20, 2008
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
Hope that helps, let me know if I can provide more details.
interactivetools.com
Re: [Dave] Please help - Ad/File image rotator?
By Codee - February 22, 2008
Re: [equinox69] Please help - Ad/File image rotator?
By Dave - February 22, 2008
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.
interactivetools.com