Hi All,
Here is a snippet to randomly rotate a set of flash banners.
Ie home page may have 4 different banners that change on refresh, and other pages can have different sets.
Copy code into snippet, adjust array in snippet to your flash filenames and call like so from template/document
[!FlashRotator? &baseFlashUrl=`/url/to/flash/dir/` !]
Nice snippet! Thanks for sharing
Don’t know how to write php, what goes in snippet?
Sorry didn’t see the text file, I’ll try again.
Not so difficult, thank you!
Is there any way to have this just get the specified directory contents and use those files? I dont want to have to set an array of names so that I can just upload the swf files and it will use them without being renamed.
Thanks
This is a cool addition stempy, most definitely be useful... I’ll give this a run an report
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id