Slideshow_XH random
Moderator: Tata
Slideshow_XH random
Slideshow_XH
how to add random ?
dont wanna 1234.....butt random
folder @ 1.jpg 2.jpg 3.jpg
<?php echo imagescroller('./userfiles/FDheader');?>
how to add random ?
dont wanna 1234.....butt random
folder @ 1.jpg 2.jpg 3.jpg
<?php echo imagescroller('./userfiles/FDheader');?>
Re: Slideshow_XH random
There is the config option default_order, which you can set to "random". How to have random sort order for individual slide shows is explained in the help file.twc wrote:Slideshow_XH
how to add random ?
dont wanna 1234.....butt random
Christoph M. Becker – Plugins for CMSimple_XH
Re: Slideshow_XH random
dont work herecmb wrote:There is the config option default_order, which you can set to "random". How to have random sort order for individual slide shows is explained in the help file.twc wrote:Slideshow_XH
how to add random ?
dont wanna 1234.....butt random
folder> 1.jpg,2.jpg....
<?php echo imagescroller('./userfiles/FDheader', 'random');?>
Re: Slideshow_XH random
You have to write it the following way:twc wrote:<?php echo imagescroller('./userfiles/FDheader', 'random');?>
Code: Select all
<?php echo imagescroller('./userfiles/FDheader', 'order=random');?>
Christoph M. Becker – Plugins for CMSimple_XH
Re: Slideshow_XH random
add butt not working still 1 2 3 4 pictures not 4 2 3 1 7cmb wrote:You have to write it the following way:twc wrote:<?php echo imagescroller('./userfiles/FDheader', 'random');?>Code: Select all
<?php echo imagescroller('./userfiles/FDheader', 'order=random');?>
Re: Slideshow_XH random
Hm, it works fine in the demo (just press F5 to see how the sequence changes for every request).twc wrote:add butt not working still 1 2 3 4 pictures not 4 2 3 1 7
Have you checked in HTML mode that there are no special characters in the plugin call? What happens when you change the "order" in the configuration?
Christoph M. Becker – Plugins for CMSimple_XH
Re: Slideshow_XH random
WARNING: opendir(./userfiles/images/./userfiles/FDheader/) [function.opendir]: failed to open dir: No such file or directory
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:42
WARNING: readdir(): supplied argument is not a valid Directory resource
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:43
WARNING: closedir(): supplied argument is not a valid Directory resource
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:51
NOTICE: Undefined offset: 0
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:155
WARNING: getimagesize() [function.getimagesize]: Filename cannot be empty
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:155
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:42
WARNING: readdir(): supplied argument is not a valid Directory resource
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:43
WARNING: closedir(): supplied argument is not a valid Directory resource
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:51
NOTICE: Undefined offset: 0
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:155
WARNING: getimagesize() [function.getimagesize]: Filename cannot be empty
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:155
Re: Slideshow_XH random
Ah, I see! The plugin is looking for the images in userfiles/images/userfiles/FDheader/, but this directory doesn't exist. Assuming you have the images in userfiles/FDheader/, you have to move the FDheader/ folder to userfiles/images/ (resulting in userfiles/images/FDheader/), and then call:twc wrote:WARNING: opendir(./userfiles/images/./userfiles/FDheader/) [function.opendir]: failed to open dir: No such file or directory
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:42
Code: Select all
<?php echo imagescroller('FDheader', 'order=random');?>
Christoph M. Becker – Plugins for CMSimple_XH
Re: Slideshow_XH random
tkx working nowcmb wrote:Ah, I see! The plugin is looking for the images in userfiles/images/userfiles/FDheader/, but this directory doesn't exist. Assuming you have the images in userfiles/FDheader/, you have to move the FDheader/ folder to userfiles/images/ (resulting in userfiles/images/FDheader/), and then call:twc wrote:WARNING: opendir(./userfiles/images/./userfiles/FDheader/) [function.opendir]: failed to open dir: No such file or directory
/mounted-storage/home121a/sub001/sc28987-VHAG/fiberdordrecht.nl/plugins/slideshow/index.php:42However, I wonder why there have been images displayed at all.Code: Select all
<?php echo imagescroller('FDheader', 'order=random');?>