Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
New Item

 

 


dunlap
Novice

Apr 16, 2008, 11:11 PM

Post #1 of 6 (352 views)
Shortcut
New Item Can't Post

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
Re: [dunlap] New Item [In reply to] Can't Post

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
Re: [Dave] New Item [In reply to] Can't Post

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
Re: [dunlap] New Item [In reply to] Can't Post

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:


Code
<?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
Re: [Dave] New Item [In reply to] Can't Post

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
Re: [grauchut] New Item [In reply to] Can't Post

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

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4