Random start image

Permalink Browser Info Environment
Hi just want to know if someone could tell if it is possible to get this SLIDER LITE to random show the images

Cheers

Type: Discussion
Status: New
pauk
View Replies:
Vivid replied on at Permalink Reply
Vivid
It's not an option directly in the add-on.

However, you can hack it and edit the file a bit.
On your sever go to /c5InstallationFolder/packages/michaelg_power_slider_lite/block/power_slider_lite/view.php

and change

$(function(){
   $("#powerSliderContainer<?php echo $bID; ?>").cycle({ 
      fx: '<?php echo $transitionType ?>',
      next: '#powerSliderNext<?php echo $bID; ?>',
      prev: '#powerSliderPrev<?php echo $bID; ?>',
      pager: '#powerSliderPagination<?php echo $bID; ?>',
      cleartypeNoBg: true,
      timeout: <?php echo $slideDelay ?>000
   });
});


to

$(function(){
   $("#powerSliderContainer<?php echo $bID; ?>").cycle({ 
      fx: '<?php echo $transitionType ?>',
      next: '#powerSliderNext<?php echo $bID; ?>',
      prev: '#powerSliderPrev<?php echo $bID; ?>',
      pager: '#powerSliderPagination<?php echo $bID; ?>',
      cleartypeNoBg: true,
      timeout: <?php echo $slideDelay ?>000,
      random: 1
   });
});
pauk replied on at Permalink Reply
pauk
Thanks alot for quick reply

Great addon = more stars

:-) pauk

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.