• Resolved amadeus61

    (@amadeus61)


    Hello,

    i use WordPress 3.0.1 and the NextGEN Gallery 1.6.2.
    To show the images i use the [ slideshow id=1 w=740 h=481 ] tag. (without the spaces)
    I sort the images with drag and drop. The thumbnails show the new order right.
    After reload of the website, the slideshow do not show the new order.
    Maybe i am blind. ??
    Where is my mistake?
    Any tip or help is very welcome.

    Greetings..

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter amadeus61

    (@amadeus61)

    Hello,

    I’ve forgotten to declare that the slideshow works perfectly with the flash imagerotator.
    If I would like to use the slideshow without flash, like here https://nextgen-gallery.com/slideshow/, is the sorting of the pictures do not display correctly.
    A new sorting of the pictures is not accepted by the jquery-cycle slideshow.
    It is importabt for me that the user can wiew the site on mobile devices.

    Any tip or help is very welcome.

    Greetings…

    Same problem. Drag and drop to reorder slideshow images. Save changes. Reload website…nothing changes, same order as before.

    Also finding that when I do a batch rotate of a dozen or so images, two of them refuse to rotate when batch is saved and site reloaded.

    I’m having the same problem…

    Looking for a solution to this problem also.

    I have the same problem, it looks like the slideshow is showing the images according to their id numbers. The image with the lowest id shows up first and so on. So I guess a temporary solution would be to upload the images in that particular order, but it would sure be nice to get a more flexible solution for this.

    ngg.slideshow.js should be rewritten.

    Right now is just taking the images urls in the default order (id):
    for (img in r.images) {
    var photo = r.images[img];
    //populate images into an array
    stack.push( decodeURI( photo[‘imageURL’] ) );

    I dont know how to arrange it by “galSort”

    Here’s the solution:

    Open wp-content/plugins/nextgen-gallery/xml/json.php

    Go to line 85, under where it says case ‘gallery’ :

    Change the second parameter on the nggdb::get_gallery function from ‘pid’ to ‘sortorder’

    Works for me!

    Nice! Works for me too! Thx!

    Seems to work for me in Safari/Firefox but it’s still using the default sort order in Chrome. Any idea why this is happening?

    The gallery is at: https://www.lindsaykarl.com/portraits (is the initial image different for anyone on chrome vs. safari?)

    This is an issue with how For..In loops are executed in Chrome. It’s a bug as far as I’m concerned.

    This issue is described more here: https://stackoverflow.com/questions/640745/google-chrome-javascript-associative-arrays-evaluated-out-of-sequence

    In order to preserve the order on Chrome, you’ll have to modify the javascript in ngg.slideshow.min.js.

    Aha! Any insight on what should be modified to make that fix?

    You would need to get have an array of keys in the correct order, then use that as reference to display the images in the right order. It may require some PHP modifications as well to output the JSON differently.

    The new beta version should fix that issue https://alexrabe.de/2010/12/02/scalability/

    It worked for me too. Thanks!
    And thank you Alex for this wonderful plugin, so appreciated! I will check the beta.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: NextGEN Gallery] [Plugin: NextGen Gallery] How to sort the images in the slideshow’ is closed to new replies.