prettyPhoto 3.1: New theme and ajax support

March 31st 2011

Here’s yet another update to prettyPhoto. It’s quite a big one too, I’ve decided to change the default theme and add ajax support…finally.

The theme is a collaboration between Orman Clark and Christian Budsched (Kriesi). I just saw it being used in a WordPress theme and found it so nice that I had to make it the default theme of prettyPhoto. So Orman and Christian, thank you very very much for saying yes!

Here’s the complete changelog:
Added: Ajax support.
Fixed: Long title would cause the box to jump up a bit.
Fixed: Namespaced scroll event.
Fixed: Browsing throught picture wouldn’t bring you back to the end when clicking previous while being on the first picture.
Fixed: Resize bug.
Fixed: Issue where the inline gallery would cause a preloading of the iframes.
Optimized: Gallery injection script, now 30% faster.
Changed: The YouTube embed code for the new iframe embed.
Changed: Slideshow are now enabled by default.

As usual, head over to the project page to download the latest version.

45 Responses to “prettyPhoto 3.1: New theme and ajax support”


  1. VSE says:

    Hooray for 3.1! Love the new theme you added too. Thanks!

  2. Jim Smith says:

    OMG! Love this script but it’s about to make me go mental! Am trying to get some inline content to work (iframe content works fine), however i keep getting a ‘Image cannot be loaded…” error!

    I’ve searched for hours now, and it seems to be a common issue – however I can’t find a cure for it!

    Please help!

  3. Cesar says:

    Dear all:
    Is there anyway to use the latest version without showing the image gallery thumbnails? We prefered the older version, much simpler. But the new code it is a requirement, given the problems found with the new IE9.

    Thanks, César

  4. hi Caro, does it works with wordpress? its a plugin for WP or in custom html use? tks! congrats!

  5. Serhat says:

    Hello. Is it possible to add easing effect like http://codecanyon.net/item/jquery-lightbox-evolution/115655 you dont need to publish this wish. Just asked. Thank you for big project 🙂

  6. Serhat says:

    And new wish. Add all images to prettyPhoto feature. If you are using wordpress and nextgen gallery. You can see this feature. Its perfect 🙂

  7. Christian says:

    Hi, I have a trouble….
    I want insert a link, near social images, to download the photo is viewing…is it possible? How?
    thanks!

  8. Ryan Martell says:

    Hi–

    So using the new ajax stuff- it replaces the innerHTML, which does NOT cause javascript to execute from the loaded ajax code. Using the changepicturecallback() to call a method to make the new data “live” doesn’t work either, because in showContent(), this is being called before the DOM is altered by _insert_gallery().

    My suggestion is either to move the changepicturecallback() to below the _insert_gallery() call, or if that might break historical code, add another callback – pictureloaded() or something.

    Otherwise, script looks great. Thanks!
    -R

  9. Ryan Martell says:

    Okay- disregard the above; I was looking at it wrong. The issue does still stand- the script elements aren’t executed after an ajax load. However, it can be fixed by doing this:

    $(“a[rel^=’prettyPhoto’]”).prettyPhoto(
    {
    changepicturecallback: function() {
    $(‘.pp_inline script’).each(function() {
    eval($(this).text());
    });
    }
    });

    You might think about adding that as a default option?

    Thanks!
    -R

  10. David says:

    Problems with youtube videos chrome – pp 3.1 lightbox opens up shaded darker entire screen nearly black buttons prev next play etc unclickable and shaded over, then crashes. Works fine ie 9

  11. Chriss says:

    Is there a way to make a minimum size for the pop up? Sometimes an image that is too small gets loaded and the top close button drops to the bottom and doesn’t work.

    Maybe a way to make it a minimum size of 200×200 or something would work.

  12. Stefano says:

    Hi, i’m having problem after an AJAX call. Simply this plugin stops working after i load a new content with ajax. I already tried re-initialiting the plugin in the “success” of the $.ajax but it didn’t work.

  13. Stéphane Najman says:

    Hi, I’m wondering if it would be possible to have prettyPhoto open automaticaly when entering on a page with images ?
    If yes, could you tell me which parameter I should change ?

    Thanks in advance …

  14. krupaharan says:

    Hi , am new to prettyPhoto and my problem is Pretty Photo is not supported with jQuery 1.11

    Is there any other alternative choice to avoid this version compatibility problem.

  15. I am glad that i read prettyphoto them and support.

  16. This is very great and brilliant information.

  17. raj yadav says:

    Full of star site it is https://passwordwindows10.com help the programme in the windows 10.

  18. Very Nice Article keep it up…! Thanks for sharing this amazing information with us…! keep sharing this type of stuff…!

  19. Thank you for taking to the time to write this informative blog post. It’s great article with good and useful information! I appreciate your work.

  20. Richard says:

    Very awesome theme. I like it experience and ask you all to try it and give your feedback. Visit https://windowstechsupport.org/

  21. “I just saw it being used in a WordPress theme and found it so nice that I had to make it the default theme of prettyPhoto. So Orman and Christian, thank you very very much for saying yes!”…….

  22. 88kgames says:

    It’s really a nice and useful piece of information. I am satisfied that you shared this useful info with us.
    Please keep us up to date like this. Thanks
    for sharing.

  23. In fact, you may enjoyable entertainment that you weren’t expecting to find.

  24. run 3 says:

    Thank you for that information you article

  25. I have read your post. It solved some aspects of the problem. I think you need to make the problem clearer

  26. happy room says:

    Thank you for the information, may be useful for all people of course who read this article

  27. Dial our toll free number and book best flights from New York to Miami. Our experts will guide you throughout on every problem related to your flight flying from New York to Miami.

  28. if you wants to enjoy comfortable and affordable journey Through airlince . Call Our Experts and Book flights from New York to atlanta in no time in no time .

  29. if you wants to enjoy comfortable and affordable journey Through airline .Call Our Experts and Book flights from New York to atlanta in no time. For more information -: https://www.flightsinusa.com/new-york-to-atlanta/

  30. if you wants to enjoy comfortable and affordable journey Through airlince . Call Our Experts and Book flights from New York to atlanta in no time .

  31. Shay Mitchell says:

    Thank you very very much for saying yes
    “”

    Read more about prettyPhoto 3.1: New theme and ajax supportStéphane Caron – No Margin For Errors on:
    http://www.no-margin-for-errors.com/blog/2011/03/31/prettyphoto-3-1-new-theme-and-ajax-support/comment-page-1/#comment-665729?utm_source=INK&utm_medium=copy&utm_campaign=share&

  32. QuickBooks add-on software suggestively elevates the features of QuickBooks accounting software. QuickBooks add-on is a program or software that boosts the functions of QuickBooks financial application program. Also, a QuickBooks add-on can be defined as a program that adds much new functionality to the QuickBooks accounting software.Totally free QuickBooks support service is offered by a cloud hosting service and application hosting vendor. QuickBooks add-ons hosting service provider’s support team fully assist you. Visit : https://accountingsupportservices.com

  33. Alitalia airlines provide an easy going service with cooperative and friendly staff.  You can contact Alitalia Airlines Customer Service for detailed information about your flight.For more information -: https://airlinescustomerservices.org/alitalia-airlines-customer-service/

  34. Some of these are really great ideas actually.

  35. Hello friend, i am QuickBooks certify Proadvisor. QuickBooks is best accounting software

  36. Thank you very much for these great cake recipes, I have learned a lot from your web blog

  37. Great with these beautiful dishes, I don’t know how to cook but you inspired me

  38. Thank you for sharing the information. It was exactly nice. We fix all Xero Issue like Xero Accounting Software, Payroll, Invoice, vat, Cloud etc then dial Xero Technical Support Helpline Number and get Instant online Support and Services from Xero.

  39. cat mario says:

    Excellent post. Keep writing such kind of info on your blog. Im really impressed by your blog.

  40. I have read your post. It solved some aspects of the problem. I think you need to make the problem clearer

  41. QuickBooks Auto Data Recovery is a new feature that was introduced in QuickBooks 2011 R6 and QuickBooks 2010 R12, both of them are US editions, but only in the Premier and Pro versions. It was not something that we were familiar with, but now we are starting to see several questions from clients about this feature alone. What is it doing? If you have any query regarding the QuickBooks auto data recovery then you can contact QuickBooks auto data recovery support or quickBooks auto data recovery technical support. You can get QuickBooks auto data recovery help on our website. Visit : https://accountingsupportservices.com/quickbooks-auto-data-recovery/

  42. Keep writing such kind of info on your blog.

  43. This is very interesting information. Thank for sharing. For sure your suggestions will help me with

  44. happy room says:

    I have the same idea with you. Your post is so interesting your opinion is so good. I like it

  45. wuxiaworld says:

    great post. i like it. feeling great when reading your post .

Leave a Reply