Slideshow_XH random

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

Slideshow_XH random

Post by twc » Sun Nov 02, 2014 11:17 am

Slideshow_XH

how to add random ?
dont wanna 1234.....butt random

folder @ 1.jpg 2.jpg 3.jpg

<?php echo imagescroller('./userfiles/FDheader');?>

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Slideshow_XH random

Post by cmb » Sun Nov 02, 2014 12:09 pm

twc wrote:Slideshow_XH

how to add random ?
dont wanna 1234.....butt 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.
Christoph M. Becker – Plugins for CMSimple_XH

twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

Re: Slideshow_XH random

Post by twc » Sun Nov 23, 2014 3:17 pm

cmb wrote:
twc wrote:Slideshow_XH

how to add random ?
dont wanna 1234.....butt 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.
dont work here :(

folder> 1.jpg,2.jpg....

<?php echo imagescroller('./userfiles/FDheader', 'random');?>

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Slideshow_XH random

Post by cmb » Sun Nov 23, 2014 7:24 pm

twc wrote:<?php echo imagescroller('./userfiles/FDheader', 'random');?>
You have to write it the following way:

Code: Select all

<?php echo imagescroller('./userfiles/FDheader', 'order=random');?>
Christoph M. Becker – Plugins for CMSimple_XH

twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

Re: Slideshow_XH random

Post by twc » Sun Nov 23, 2014 8:09 pm

cmb wrote:
twc wrote:<?php echo imagescroller('./userfiles/FDheader', 'random');?>
You have to write it the following way:

Code: Select all

<?php echo imagescroller('./userfiles/FDheader', 'order=random');?>
add butt not working still 1 2 3 4 pictures not 4 2 3 1 7

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Slideshow_XH random

Post by cmb » Mon Nov 24, 2014 12:06 pm

twc wrote:add butt not working still 1 2 3 4 pictures not 4 2 3 1 7
Hm, it works fine in the demo (just press F5 to see how the sequence changes for every request).

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

twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

Re: Slideshow_XH random

Post by twc » Mon Nov 24, 2014 1:25 pm

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

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Slideshow_XH random

Post by cmb » Mon Nov 24, 2014 1:37 pm

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
Ah, I see! :idea: 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:

Code: Select all

<?php echo imagescroller('FDheader', 'order=random');?>
However, I wonder why there have been images displayed at all. :?
Christoph M. Becker – Plugins for CMSimple_XH

twc
Posts: 233
Joined: Fri Jun 18, 2010 12:25 am
Location: Netherlands

Re: Slideshow_XH random

Post by twc » Mon Nov 24, 2014 2:45 pm

cmb wrote:
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
Ah, I see! :idea: 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:

Code: Select all

<?php echo imagescroller('FDheader', 'order=random');?>
However, I wonder why there have been images displayed at all. :?
tkx working now ;)

Post Reply