Auto Spin?

Permalink Browser Info Environment
Is there a way to make this automatically spin upon loading rather than waiting for mouse input?

Type: Discussion
Status: New
VelvetElvis
View Replies: View Best Answer
sebastienj replied on at Permalink Reply
sebastienj
Do you talk about autoplay/diaporama ?
They are actually no diaporama inside. It's possible that will be contained in the next version.
VelvetElvis replied on at Permalink Reply
VelvetElvis
Yes, I think that's the effect I'm looking for. When might another version be coming out?
sebastienj replied on at Permalink Reply
sebastienj
The next will containt the possibilities to add content from Scrabook. I think that will be not until 1 month.

Regards,

Seb
FatTony1952 replied on at Permalink Reply
FatTony1952
Try this, if you look in the js folder and open the jquery.roundabout-1.0.min.js file, it's the default for the Lazy Suzan option.

In that file you'll see a snippet of code like this:

clickToFocus: (options.clickToFocus !== false),


Try changing it to:

clickToFocus: (options.clickToFocus !== true),


This won't become an option in the editor when you place it on a page, so I suggest you create a custom template for this block and name it, 'Auto Rotate' or something so that you still have the original in tact.
mmwfrank replied on at Permalink Best Answer Reply
mmwfrank
I'm afraid that the 'clickToFocus' solution didn't work for me, but the mod used on the showcase site (http://www.concrete5.org/about/showcase/business/rafia-chic/) seemed to work OK. I replaced the last couple of lines from the view.php file:

minZ:4
   });
});
   // ]]>
</script>
<!--
-->


with these lines:

minZ:4
   })
   .hover(
function() {
clearInterval(interval);
},
function() {
interval = startAutoPlay();
}
);
interval = startAutoPlay();
});
function startAutoPlay() {
return setInterval(function() {
$('#roundabout_<?php echo $bID?>_handler ul').roundabout_animateToNextChild();
VelvetElvis replied on at Permalink Reply
VelvetElvis
That did the trick perfectly. Thanks.
sebastienj replied on at Permalink Reply
sebastienj
Thanks mmwfrank ! Great work.
geekeboy replied on at Permalink Reply
geekeboy
Tried what you said....

but looks a little different ie its not just the view.php
and the code you give is on view_fileset.php and view_stacks.php

so created in root blocks - roundabout_gallery > templates > autoview

in here places view.php, view_fileset.php and view_stacks.php
changed the code in the latter 2 files as described, chose the custom template, now its not even showing any images

any help on this one? cheers
felixb101 replied on at Permalink Reply
felixb101
There is an easier way, just set the "autoplay: true," in the file view_fileset.php.

Full function:
$(document).ready(function() {
   $('#roundabout_<?php    echo $bID?>_handler').roundabout({
      shape:      "<?php    echo $shape ? $shape : 'lazySusan'?>",
      duration:    <?php    echo $duration?>, 
      minOpacity:  <?php    echo $minOpacity?>,
      minScale:    <?php    echo $minScale?>,
      easing:     "<?php    echo $easing?>",
      reflect:      true,
     autoplay:      true,
      maxZ :       <?php    echo ( is_array($rg) ? count($rg) : count($scrapbookBlocks) ) + 4?>,
      minZ:4
   });

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.