1.0.6 Release

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.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.

Comments

  • Sweet, downloading now.
  • 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...
  • Were is this version ?
    the main page propose only the 1.0.5 !!
  • sorry, i have refreshed the main page and it s ok now !!!
  • @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.
  • Oh and I used 1.0.6.
  • The original line was

    <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
  • @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...
  • ChiliFrei. Thank you for your theme. Since your existing release works extremely well, may I ask what has changed?
  • 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!
  • trisweb Administrator
    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 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:

    `
    <?php echo $_zp_current_image->getIndex() . '/' . getNumImages(); ?>
    `

    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.
  • @trisweb.

    Minor point. What works is: 'echo $_zp_current_image->getIndex()+1' otherwise the count begins at 0.
  • trisweb Administrator
    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:

    #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.
  • trisweb Administrator
    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.
  • It is so useful and cool, but I think you should have three versions and charge for two of them.

    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.
  • trisweb Administrator
    Interesting idea, I never thought of charging for the application itself. I think if I ever made a profit off Zenphoto, it would be by providing a hosted service using Amazon's S3 or the like for storage. That would also require a lot of server horsepower, but if I had subscribing users, it'd be worth it.

    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.
  • Trisweb wrote:

    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. :-)

    All I can say, trisweb, is WOW!!! What a wonderful expression of the best principles of open source development. The essence is a desire to give something back to this economy which allows us, as individual developers, to make a reasonable living, as determined by the quality of the work which we do.

    I salute you, my friend!

    Lee Eschen
  • I downloaded 1.0.6 and FTP'd it to my server, did the setup and went to go to admin. I got the following repeating error message:

    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
  • I did finally get it to go into admin, but now at several different points in admin, I am getting errors, but always at kses.php on line 429. I'm thinking this is likely a real bug. Happy New Year all!

    Lee Eschen
  • Ive made a lot of custom modifications to zenphoto 1.03, should i upgrade and make all my modifications again, or just wait till 1.1?
  • I hate it when someone calls an application OS and then limits it to personal use only. i think it completely defeats the spirit of open source. Luckily zenphoto is GPLed, so we dont have to worry about it changing (unless its rewritten from scratch).
Sign In or Register to comment.