Autorotate settings

yukino031902 - February 16, 2009 - 20:44
Project:Content Glider
Version:6.x-1.5
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I see in the settings how to change the glide animation duration, however, I need to change the pause between content rotations. I've tried plugging different numbers into the .js file but nothing changes. The script that is generated has a default of 3000 milliseconds, but I need it to be longer, more like 6000 or 7000. What do I change to make this happen?

#1

shawngo - September 2, 2009 - 15:38
Version:6.x-1.1» 6.x-1.5

I'm guessing you may have found this already, but for those still looking:

Line 195 of 6.x-1.5
$output_body .= 'autorotateconfig: [3000, 2] //if auto rotate enabled, set [milliseconds_btw_rotations, cycles_before_stopping]'."\n";

Change 3000 to the # of milliseconds between rotations.

And here's my attempt at a patch.
[Edit]I should also mention that this patch allows the admin to modify the milliseconds_btw_rotations value.[/Edit]

AttachmentSize
content_glider.module.patch 1.69 KB
 
 

Drupal is a registered trademark of Dries Buytaert.