I've just released 1.0.6 with several accumulated bugfixes from 1.0.5.
Head to the changelog to see them all, but in short:
- Fixed the image sorting bug.
- Fixed the image dimension caching bug.
- New: detects if the original image has changed (same file name) and reprocesses on request.
- New: Return error images instead of no images when an image error occurs.
I've been running this code for several days now and it seems nice and stable and bug-free, so it should be a no-brainer to upgrade.
Go get it!-------------------------------------------------
Edit: I just realized there's no link to the sub-albums test theme anywhere, so here it is:
http://zenphoto.org/files/testing-dev.zipRemember that it's incomplete, has no admin access or sorting and you need to turn mod_rewrite off for it to work. But it's cool if you need it.
Comments
Also.. I notice that it still says I am running on 1.0.5 even though I am on 1.0.6...
the main page propose only the 1.0.5 !!
I get the same result on the version #. Any easy way to change this manually?
Only one thing failed.
I had a line that basically is 'X/Y' where X = current image sort order and Y = total number of images. It used to work fine provided I sorted the album once from the admin panel after creating it. Now it does not. I have tried a number of changes based on template_functions.php.
So my question is:
How to display (in the image context) the sort order of the image being currently displayed?
So far I tried:
printImageSortOrder() and getImageSortOrder().
I am sure I am doing something wrong.
<div class="block light"><?php printImageSortOrder(true);?>/<? $number = getNumImages(); echo$number; ?></div>
which would show up as:
11/55
if you had total 55 images and you were on the 11th image.
Now it shows up as:
/55
Line 12 of functions.php has the variable you can set
@jayray999
I actually updated my ChiliLight2 for Zenphoto 1.0.4 and up. I think I may have forgotten to release it.. When I get home tonight I will put up the link..
I have actually updated all my themes for zp (except 1) which is why I guess I never posted that anywhere...
If you are not using subalbums then the theme will work just fine.. I just like to keep my stuff current so it is easier to change down the road and I can follow all the changes...
BTW, any suggestions about my printImageSortOrder() problem above? I am really puzzled.
And thank you, thank you.
Ah. That's it. Thanks!
I've updated the version number in the packages, nothing to worry about but it's correct now.
@jayray999 - the function you want is actually `$_zp_current_image->getIndex()`. `getSortOrder()` only prints the existing sort order in the database if one exists, which is only true when the images are manually sorted. The index will always be the image number, like you want.
There's no template function for it yet, so you have to use the object. I'll add one for future use...
Your line (simplified) would look like:
`
You sound so surprised that the upgrade works ;-) Upgrades are usually better than previous versions, and I always try not to break anything...
I sound surprised because not everyone shares your perfectionist outlook and since the others constitute the majority, one becomes wary.
Consider Microsoft Word. How much grief updating it has given me in the past (hunt for the original CD, wait interminably for the install, reboot, reboot, reboot etc.). Or getting my Macbook not to drop its WiFi connection every few seconds (only continuous ping keeps the connection alive!). My ATI X800 soundcard which (after a driver update) kept crashing my PC for several months till one day by pure chance I updated (again) and was ok ever since. My Brother HL-1440 laser printer which to this day goes offline without reason and has to have the USB cable replugged to work. phpBB which despite being great software has to be used with much care or malicious robots could delete your entire forum. My Canon 70-200mm L lens which needed factory recalibration despite being brand new. The list could go on but I am way off topic.
Into such a world you have brought Zenphoto, so can you blame me for being surprised.
Happy Holidays to you and the others.
Minor point. What works is: 'echo $_zp_current_image->getIndex()+1' otherwise the count begins at 0.
I just try, and know it's important, which is half of the battle I think.
Here's a thought experiment: You have two exactly identical programs, both with quality flaws (as everything must have). One has a developer who doesn't give a crap about how it works for you and provides little or no support and just doesn't care (and doesn't need to because it has a monopoly, AKA Microsoft), and the other a developer who listens to you and supports the product even though it has flaws and tries their best to fix them and help you.
Two questions: which is higher quality to you right now? Then, which will have higher physical quality in the future?
Another: Would you be willing to pay more for #2? What if #2 was less complete even than #1?
When I call a large corporation the customer support person is well meaning and motivated but he is so far removed from the product that he has to resort to the manual. That works with routine problems but not with intermittent (sly) problems which are the real ones anyway. And the Suggestion Box is often a PR exercise for the most part. I can never speak to the team leader for Word; what is more neither can my University's IT Dept. So I have to hope that suggestions will meander through but I never get the sensation that they will.
The other word you used was "care" and I'd like to qualify its use as well. I think I can work with someone who does not care for me as long as they care for their product. Pride in one's job, the possibility of a promotion or a raise and such other motivators can go only so far. If I speak with someone in a corporation I am counting on these motivators. But do these people feel an organic, passionate love for their creation. They cannot, I think, because the creation is not theirs to care about.
Two answer your questions about two identical programs against this backdrop:
#2 is higher quality right now because identical products have identical value but the monolith's product is hampered by the negative features listed above which are non-existant in the case of the small developer. At any point in the future it will depend on whether the net gain from the monolith's product (value of innovative features minus nuisance factor for being monolith) is greater than the value of the small developer's product at that time. All this is assuming that the small developer does not develop negative (monolith-like) features over time.
Regarding willingness to pay, that follows from above i.e. it is more at present but 'depends', in the future. But how much of that translates to actual payment depends on the market i.e. the monolith withholds the product till I pay so it is the legalized coercion of all market economies. Even so, depending on the market the monolith may not get me to pay every dollar I am willing to pay. The small developer depends on goodwill so regardless of willingness to pay, the actual price is zero. Whether goodwill PLUS willingness to pay results in revenues for the small developer is a question of psychology and cannot be answered systematically for everybody. Personally I would (and have) paid under such circumstances and have done so with great joy.
Something I strive for is making a product so good, so useful, so "cool" that people want to throw money at me for it -- and to then give it away for free. I truly believe that putting the customer and the product first will result in the greatest benefit to me, even if that's only through the friends I make in the process. :-)
Thanks Jayant.
1. Free, limit of certian features or the ability to add an X amount of photos, but still the same, smooth application. Must have powered by logo at bottom. In this way people can fall in love with it. 3 themes included.
2. $10.00, full application for personal or non-profit use. Must have powered by logo at bottom. 4 themes included.
3. $25.00 - $50.00, full application for commercial use. Ability to remove the powered by logo at the bottom. 6 themes included.
But on that note, I think zenfolio ( http://www.zenfolio.com ) does a much better job. I like their service... I'll at least stick with open source for now, and continue to take donations.
I salute you, my friend!
Lee Eschen
Warning: Invalid argument supplied for foreach() in /mnt/w0713/d48/s25/b0288033/www/ashgrovevisualarts.com/zenphoto/zen/kses.php on line 429
Any thoughts on what happened?
Oh, and by the way, a very HAPPY NEW YEAR to everyone here. May it be a year of incredible success for ZenPhoto.
Lee Eschen
Lee Eschen