Saturday, May 09th, 2009 | Author: pluc | Views: 1,503
PayPal - The safer, easier way to pay online!

It’s been a while since any activity has happened with prettyPhoto and WP-prettyPhoto. I was waiting for some changes to the prettyPhoto code to release a new version, and Stéphane Caron has released version 2.3 of his prettyPhoto jQuery plugin recently, so it was time to roll out a new WP-prettyPhoto version, 1.2, with all the changes and features that have been suggested since the last release. To skip the blah blah and go straight to downloading, head over to WordPress Extend.

What’s new in this version? There’s quite a lot! First off, let’s talk of the changes made by Stéphane to prettyPhoto:

  • Video and flash support has been reinstated! prettyPhoto can now handle prettifying links to MOV (Apple QuickTime) and SWF (Shockwave Flash/Small Web Format). There is a specific format you need to respect when linking to those media types. More information can be obtained on the prettyPhoto project page (near the bottom)
  • Code has been optimized and design tweaked
  • More information on the 2.3 release of prettyPhoto can be obtained on the project page.

As for WP-prettyPhoto, I have obviously integrated the changes from prettyPhoto inside this release, that means:

  • Video and flash support for links pointing to .mov and .swf media files. Again, be aware there’s a specific format to respect if you want your movies and animations to be hooked correctly. More info on this on the prettyPhoto project page.
  • Added an option to toggle media hooks (disabling it will disable WP-prettyPhoto prettifying your video and animations)

There’s also a few new features that will improve usability and user-friendliness such as…

  • There’s now an option to disable jQuery substitution. prettyPhoto relies on version 2.3.1 of jQuery. WordPress bundles a jQuery version that was inadequate to use with prettyPhoto, so to solve that problem, WP-prettyPhoto removes the JavaScript library that is shipped with WordPress and substitutes it for an adequate version that’s shipped with WP-prettyPhoto, namely 2.3.1. More info on how to do that here, should you find yourself wondering. Thanks to Stéphane Caron for suggesting this feature.
  • There’s a new feature to exclude prettyPhoto hooking on certain links. In order to do so, all you need to do is set the link of your image, flash animation or QuickTime video to a new window (target=”_blank”) and WP-prettyPhoto will skip prettifying it. Thanks to Tommy Jones for suggesting this feature.
  • Upgraded bundled jQuery from 1.3.1 to 1.3.2. Not really something that’s necessary for the plugin, but I figured that since I substitute it, it might as well be the version that users might want, namely the most current at the time of the release. You can always disable substitution and include the version you desire by some other means.
  • Switched prettyPhoto version type from uncompressed (17.5kb) to compressed (11.5kb), more fitting to production environments. Should you want to hack it up, there’s an uncompressed version over at the prettyPhoto project.
  • Obviously with the new changes, English and French localizations have been updated.
  • Fixed a bug where DD_belatedPNG (PNG transparency hack for IE6) would be included even if the selected theme wasn’t dark, which made it useless.

That’s enough for now, isn’t it? As always, if you have feature suggestions do not hesitate to contact me, they might make it to the next release! Now that you’re educated as to what and how, feel free to head over to WordPress Extend to download this new version. Enjoy!

Note: Version 1.2 pretty much hit a wall.. I made the mistake not to add jQuery 1.3.2 in the package.. so yeah.. nothing worked. It’s fixed in 1.2.0.1. Sorry about that.


Category: WP-prettyPhoto
You can leave a response, or trackback from your own site.

16 Comments

Pages: [1] 2 » Show All

  1. Activating the plugin in wordpress gives the following error:
    Parse error: syntax error, unexpected T_VARIABLE, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘} in wp-content/plugins/wp-prettyphoto/wp-prettyphoto.php on line 194.

  2. @malka It’s clearly stated in the FAQ that you need PHP5 to run WP-prettyPhoto.

  3. Upgrading today now means the plugin no longer works on Galleries inserted into pages, whilst posts/pages with standalone images work. Is there any way to fix this or roll-back to a previous version of the plugin?

  4. @Alex Canning You can always find previous versions at this address: http://wordpress.org/extend/plugins/wp-prettyphoto/download/
    As for your bug, it’s the first time it’s being mentioned. Can you email me more information (steps to reproduce, source of your page, previous version, etc)? Thanks.

    And for the record, you’re using jQuery 1.2.6 AND jQuery 1.3.2 on your site. That can’t be a good thing. prettyPhoto isn’t even loaded on your pages.

  5. Hi,
    I too seem to have some trouble with the new version and Galleries. It works now with images in posts, but not with Galleries. I may be doing something wrong (I am still very new at this). I’m using WordPress 2.7.1 and (as far as I know) only the jQuery provided with your plug in.
    I’m glad to provide you with more info if needed. Can you help?
    Regards,
    Frank

  6. Hmmm, well I’m fairly new to the world of WP and think the differences in versions of jQuery might have something to do with a different plugin I might have tried earlier on? As for PrettyPhoto, can’t explain why it hasn’t loaded, it was working then I did an automatic upgrade and it just stopped. Maybe I’ll try uninstalling PrettyPhoto completely and reinstalling it.

  7. I’m having the same issues as the other chaps above.

    I did the automatic upgrade to v 1.2.0.1 and wp-pretty photo does not seem to be working on galleries or normal posts.

    I don’t know what “Enable jQuery Substitution” does but I tried both selecting it and deselecting it, and wp-pretty photo doesn’t work.

    I’m going back to an older version in the meantime.

  8. @Frank, @Alex Canning, @onelargeprawn Fixed in 1.2.1. Thanks for the feedback guys.

  9. Mmmm…. sorry. I get all kinds of Javascript errors with the 1.2.1.1 version. Even during the automatic install:
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘WP_prettyPhoto::wppp_add_options_page’ was given in /usr/home/…../public_html/wordpress/wp-includes/plugin.php on line 339

    After install, I see a lot of errors:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘WP_prettyPhoto::wppp_content_hook’ was given in /usr/home/……/public_html/wordpress/wp-includes/plugin.php on line 166

    Maybe there’s something wrong with my install. I’ve reverted back to the 1.1.4 version.

  10. I’ve the same problem after installation:

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘WP_prettyPhoto::wppp_add_options_page’ was given in /usr/home/…../public_html/wordpress/wp-includes/plugin.php on line 339

    Can you fix it? Thanks in advance!

Pages: [1] 2 » Show All

Leave a Reply