 |

dunlap
Novice
Apr 16, 2008, 11:11 PM
Post #1 of 6
(352 views)
Shortcut
|
Would it be possible to create an image randomizer? The utility would have an uploader for the images or media & then the php element generated could be moved around the page. Just a thought
|
|
|  |
 |

Dave
Staff
/ Moderator

Apr 17, 2008, 12:38 PM
Post #2 of 6
(347 views)
Shortcut
|
Hi dunlap, You could definitely do that with CMS Builder. How many images did you want to have? Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

dunlap
Novice
Apr 17, 2008, 2:43 PM
Post #3 of 6
(342 views)
Shortcut
|
Dave: I would probably add no more than 10 ads to the rotation. Jim
|
|
|  |
 |

Dave
Staff
/ Moderator

Apr 17, 2008, 2:53 PM
Post #4 of 6
(340 views)
Shortcut
|
Ok, and what other data will you need for each image? Maybe just a link? If that's the case I'm thinking a "single page" section editor with just a upload field, and then create a "page viewer" that shows all the images. Once you get that far (do that first) you'll want some code like this to randomize the images and show just the first one:
<?php $uploads = getUploads(...your settings here...); shuffle($uploads); // randomize foreach ($uploads as $upload): ?> ?> <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/> <?php break; ?> <?php endforeach ?> Hope that helps. Let me know if you get stuck along the way. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

grauchut
User
Apr 18, 2008, 7:16 PM
Post #5 of 6
(308 views)
Shortcut
|
Dave would this look like the top where the three pictures rotate on this page? http://www.colonialparkfire.org/ Thanks Glenn Glenn Rauchut (Owner) Emergency Designz
(This post was edited by grauchut on Apr 18, 2008, 7:17 PM)
|
|
|  |
 |

Dave
Staff
/ Moderator

Apr 21, 2008, 9:46 AM
Post #6 of 6
(288 views)
Shortcut
|
No, it would just show the images in random order. It wouldn't have them fade in and out and rotate dynamically. What you need for that is a flash (or javascript) image rotator. There's a flash one here: http://www.jeroenwijering.com/?item=jw_image_rotator The first step is to figure out how to get it working with regular HTML. Once you get it working with regular HTML, then you can get CMS Builder to automatically output the same type of HTML so it's all dynamic. Hope that helps! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
|