My pictures are all numbered. The latest additions have larger numbers. However if i sort by filename the photos are being displayed from old to new (001.jpg -> 999.jpg). Is there any way to reverse this? I am sure there is since I found some earlier solutions on this forum (but I don't think they work with the latest version). I have no programming skills myself so I was hpoing someone could help me out here.
Comments
Identify the file classes.php in the /zen folder. Find line 579:
ksort($images);
Change it to:
krsort($images);
Now if you sort by filename or title in the Admin Panel, the largest filename (or title) will be first.
1. I believe in the same file classes.php there is a ksort($album); which when changed to krsort($album); will reverse the existing order of your album folders. Play with it and see.
2. Regarding the prev-next issue this has to be solved in the theme. A dirty way to do this for the default theme
Find the file image.php (/themes/default/image.php).
In it find the section: <div class="imgnav"> at line 24.
Within the section replace two lines
Replace line 26 which reads:
<div class="imgprevious">" title="Previous Image">« prev</div>
With:
<div class="imgnext">" title="Next Image">next »</div>
Replace line 28 which reads:
<div class="imgnext">" title="Next Image">next »</div>
With:
<div class="imgprevious">" title="Previous Image">« prev</div>
Don't change anything else and please backup your original files so you can revert easily.
1. I believe in the same file classes.php there is a ksort($album); which when changed to krsort($album); will reverse the existing order of your album folders. Play with it and see.
2. Regarding the prev-next issue this has to be solved in the theme. A dirty way to do this for the default theme
Find the file image.php (/themes/default/image.php).
In it find the section: <div class="imgnav"> at line 24.
Within the section replace two lines
Replace line 26 which reads:
'<div class="imgprevious">" title="Previous Image">« prev</div>'
With:
'<div class="imgnext">" title="Next Image">next »</div>'
Replace line 28 which reads:
'<div class="imgnext">" title="Next Image">next »</div>'
With:
'<div class="imgprevious">" title="Previous Image">« prev</div>'
Don't change anything else and please backup your original files so you can revert easily.
I always have trouble posting code on this forum since some characters do not show up. Send me your email and I will mail you the correct version.
« for «
&» for »