Skip to main content Help Control Panel

 

English «   Need Help «  

Slide show not working correctly

Boen, Jan -- on Oct. 1 2009

YACS version 9.5beta31.8

WorkflowSupport request
StatusProblem has been recorded
OwnerBoen, Jan
Progress0%

The slide show itself works but the order of the picture seems random while the list of files as displayed is correct.

Have a look at http://www.home.sbv54.net/yacs...th=MuzWE27Sep09

Comments


Alexis Raimbaultfrom Mulhouse
Associate, 1900 posts

on Oct. 2 2009


the script use the php function readdir() to populate the slides list.

I red this function order the files by the datetime they were created in their folder. Maybe you can check if it's true with FTP looking.

For the moment no re-order of the slide by name has been implemented. The place to do that would be /collections/play_slideshow.php




Alexis Raimbault webmaster free-lance

Boen, Jan
131 posts

inspired from Alexis Raimbault on Oct. 2 2009


Alexis Raimbault:OK. Thanks that explains.

I have no experience with PHP but I will give it a try and see if I can change the logic.

 

On a related topic...

I would like to change the proportions of the inset (there is a grey outsude area that I would like to make smaller) and left column (which I would like to make narrower) in the skeleton theme.

Any idea which parts of the theme I would have to adjust.

Chang colors and fonts through the CSS files is no problem neither changing the various images.


Alexis Raimbaultfrom Mulhouse
Associate, 1900 posts

on Oct. 2 2009


hi,

I think i can help but I don't understand exactly what you want to do. Maybe you can take a screenshot and write on it what you wish ?

But also it's better to open a new topic for that.




Alexis Raimbault webmaster free-lance

Boen, Jan
131 posts

on Oct. 2 2009


Hello Alexis,

 

I made the following change to the play_slideshow.php file after line 122.

            // do the show
            else {
                //added by Jan Boen
                sort($files_in_path);
                //end added by Jan Boen

               
                // controls
                $context['text'] .= '<p id="slide_controls">'."\n";


That seems to do the trick.


Alexis Raimbaultfrom Mulhouse
Associate, 1900 posts

inspired from Boen, Jan on Oct. 3 2009


Boen, Jan : good ! that was simple




Alexis Raimbault webmaster free-lance

Bernard Paquesfrom nearby-an-airport
Associate, 8363 posts

inspired from Boen, Jan on Oct. 4 2009


Jan, this has been integrated into yacs reference code. Actually, I have used natsort, but the idea is the same. You have been added as an official author of this script, thanks for this useful contribution.

In the next version of yacs, you will be able to attach multiple images to a regular page in one single operation, by uploading a zip file.

Boen, Jan
131 posts

inspired from Bernard Paques on Oct. 5 2009


Bernard Paques:Thanks