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.




May 12th, 2009 at 9:14 am
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.
May 12th, 2009 at 9:45 pm
@malka It’s clearly stated in the FAQ that you need PHP5 to run WP-prettyPhoto.
May 15th, 2009 at 5:48 am
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?
May 15th, 2009 at 8:45 am
@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.
May 16th, 2009 at 9:17 am
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
May 16th, 2009 at 12:13 pm
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.
May 17th, 2009 at 7:24 am
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.
May 17th, 2009 at 6:40 pm
@Frank, @Alex Canning, @onelargeprawn Fixed in 1.2.1. Thanks for the feedback guys.
May 18th, 2009 at 4:05 am
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.
May 18th, 2009 at 10:07 am
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!
May 18th, 2009 at 1:44 pm
fixed
May 18th, 2009 at 2:09 pm
Trying now… Indeed error message gone. It works.
There are some issues still.
The rounded template is not round (looks like the corner images are not there. The close (X) image is also invisible.
I tried with Firefox, IE8 & Chrome.
I’ll keep this version on my website for you to check if you like.
May 18th, 2009 at 2:10 pm
Yeah I just saw it as well. prettyPhoto changed the way the box is displayed, 3 files weren’t added in svn. They are now. Sorry for that.
May 18th, 2009 at 2:54 pm
Done, ready and working great! 5 stars!
Thanks for the quick fixes.
Frank
May 20th, 2009 at 6:21 pm
Upgraded again and is now working perfectly, thanks… glad to be part of the process!
July 26th, 2009 at 9:21 am
Hmmz.. the prettyPhoto settings option disappeared from the menu altogether after upgrading