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:
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.zip
Remember 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.
Another easy upgrade.. Thanks..
Also.. I notice that it still says I am running on 1.0.5 even though I am on 1.0.6...
@Chili
I get the same result on the version #. Any easy way to change this manually?
It WORKS!!! Both for ChiliLight2 and CIMI.
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.
@ThinkDreams
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...
The subalbum support for the theme.. The album.php has a second part to it which looks for subalbums, and also the title navigation, it is now using breadcrumbs instead of just links to the pages
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...
Oh cool. Thats really quick work so I didn't expect it. Thank you. Re: subalbums, I might want to wait till they are compatible with mod_rewrite. But I will update the theme anyway.
BTW, any suggestions about my printImageSortOrder() problem above? I am really puzzled.
And thank you, thank you.
@Chili:
Ah. That's it. Thanks!
Thanks everyone for comments, I'll finish reading them later...
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 [i]if one exists[/i], 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...
@trisweb - Thanks as ever.
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.
Cool, thanks for the little explanation, you're absolutely right The world is full of halfway attempts at quality, and I myself can't even claim to get it all right.
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?
The operative word for me is not monopoly but monolith although the two often go hand in hand. I have nothing against size per se but at some point the extremities lose touch with the brain. The Roman Empire, dinosaurs and such other things come to mind. In organizations, such size means great achievements but also documentation in the form of record keeping, rules and manuals. That is where they lose me.
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:
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.
My point is not economical, and actually I do believe that goodwill plus willingness to pay (plus a product with such perceived value) can result in a revenue, but not a predictable nor large one. However there's no reason "individual personal issues" like that can't be examined in a macroeconomic system; personally I think that's valid.
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.