amadeus61
Member
Posted 1 year ago #
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..
amadeus61
Member
Posted 1 year ago #
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 http://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.
screenwords15
Member
Posted 1 year ago #
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.
medinauta
Member
Posted 1 year ago #
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"
nospam60622
Member
Posted 1 year ago #
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!
garretvoorhees
Member
Posted 1 year ago #
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: http://www.lindsaykarl.com/portraits (is the initial image different for anyone on chrome vs. safari?)
nospam60622
Member
Posted 1 year ago #
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: http://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.
garretvoorhees
Member
Posted 1 year ago #
Aha! Any insight on what should be modified to make that fix?
nospam60622
Member
Posted 1 year ago #
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 http://alexrabe.de/2010/12/02/scalability/
kamogawa32
Member
Posted 1 year ago #
It worked for me too. Thanks!
And thank you Alex for this wonderful plugin, so appreciated! I will check the beta.