Feb 222013
 
Plugin

Apologies for the long wait after my last post. Work has been brutal, and after 16-hour workdays I have had scarcely any time for myself or my family, let alone Photonic or Suffusion.

This version of Photonic was supposed to have a lot more stuff than it does, mainly pagination, but due to the sudden explosion of my workload, this is all I can deliver this time:

  1. I added support for the Thickbox library. Thickbox doesn’t play well with JQuery Tooltip, so if you plan on using Thickbox, bear in mind that your titles might not appear in the lightbox if you are using tooltips. Unfortunately since Thickbox is distributed with WP, I didn’t have any leeway in terms of customizing it.
  2. There was some incompatibility between Photonic and themes from Themify. Specifically it was not possible to use Photonic’s lightbox selection, and clicking on album thumbnails didn’t show the popup panel. I have added some workarounds in Photonic to address this (though ideally this should have been handled by Themify)
  3. I have added the capability to exclude password-protected galleries from displaying in SmugMug.
  4. In yet another innovative feature, I added support for an alternative shortcode. Photonic is set up to use the [gallery] shortcode by default. However your theme might be overriding this shortcode too, or maybe you have another plugin that has its plans for this shortcode. So now you have the option to specify what name you want to use for the shortcode, and that shortcode is yours. Bear in mind, that if you use this feature, using the [gallery] shortcode for Photonic will no longer work. More importantly, if you stop using Photonic, your new shortcode will show up all over the place – something that doesn’t happen if you stick with the [gallery] shortcode.

Hope you like this release. Photonic doesn’t get anywhere close to the amount of love that Suffusion does despite being a unique product, so it would be great if you left your reviews on the official WP site.

Jan 232013
 
Plugin

I have just released version 1.42 of Photonic. The major highlights of this version are under the hood, wherein there are lots of performance improvements.

  1. There has been a massive amount of refactoring. Several lines of JavaScript code have been taken off, lots of JavaScript and PHP code has been modularized.
  2. I have added an option to use a ColorBox skin defined in the theme folder. Earlier if such a folder existed, it would be picked up by default. And quite embarrassingly this made Photonic’s ColorBox skin selection not work with Suffusion!
  3. I have updated the SimpleModal, ColorBox and PrettyPhoto libraries to the latest versions. This will fix incompatibility issues with IE for the popup windows, in addition to letting the code work for JQuery 1.9.x.
  4. I have modified some native code in Photonic to ensure that it will work with JQuery 1.9.x, which some zealous plugin authors seem to include by force. Consequently, Photonic now requires you to be on at least WP 3.3.
  5. I have removed the explicit link that said “View in Flickr” from the plugin. To compensate I have provided options for each provider to let you link to the photo page from the lightbox. This puts the onus on you to ensure that the terms of service are maintained with respect to linking.
  6. This is another big one. I have started the support for non-bundled lightbox libraries. Currently FancyBox2 is supported. The reason I have started this is to let users use non-GPL libraries (which cannot be bundled with the plugin) with Photonic. FancyBox2 happens to be released under a non-GPL-compatible license, but you can link the JS and the CSS appropriately for it.
  7. I had earlier bundled modified scripts for FancyBox and ColorBox because I couldn’t get them to work with the JQuery Tooltip plugin. I now have a fix for this scenario, so the scripts are back to their original. I couldn’t do the same for PrettyPhoto though, so I am hoping that a version of PrettyPhoto in the near future will help.

Several factors necessitated the code refactoring, primary being that for every new provider I was setting up, I was having to repeat a lot of code. With this change the barrier to introduction of new providers should reduce (though I cannot think of any other provider to include other than Facebook). This also helped me cut out hundreds of lines of JS, easing the load on the browser.

Do let me know how you like this release.

Jan 112013
 
Plugin

I have just released version 1.41 of Photonic with the following updates:

  1. One of the most popular plugins in WP is JetPack, and it also happens to be one that messes up other plugins quite a lot. I didn’t have JetPack active for a while since unknown to me the last time I had tried to update JetPack I wasn’t successful. But apparently having some modules of JetPack activated, like “Publicize”, would cause the galleries to be evaluated twice, resulting in messed up global variables for Photonic. To cut a long story short, login buttons were not appearing. While JetPack is the culprit here, I understand that the 800lb gorillas are the toughest to dislodge, hence I made some changes in Photonic to get around this.
  2. I have added support for the ids parameter for the native shortcode in the “Add Media” panel.
  3. I have added options to control the display of the thumbnail, title and photo count in SmugMug album headers

Hope you enjoy this release. As usual, if you like Photonic please leave a review for it.

Jan 082013
 
Plugin

A Happy New Year to all readers of this site and all the people who use Suffusion, Photonic, FontMeister and all my other plugins!

I had intended for this to be finished about a week back, but due to some technical issues I wasn’t able to do so. Version 1.40 adds yet another provider to Photonic’s growing cap – Zenfolio support! This is the complete list of changes for this release:

  1. Zenfolio Support
    I have added support for Zenfolio photos, Photosets (both Galleries and Collections), Groups and the Group Hierarchy. Take a look at the demos for usage. Please note that access to protected photos (password-protected as well as private) is not supported at this point. I did face the aforementioned technical issues while attempting to do this, but I haven’t received any help from the Zenfolio folks yet. I will work on this as soon as I can figure it out.
  2. I fixed an issue with the Instagram shortcode generation, which was inserting an incorrect shortcode when users would attempt to put in Instagram tags.
  3. I added the photonic_register_extensions action hook to enable plugin-developers to add more extensions.
  4. I fixed some PHP notices that were showing up in debug mode when no options were set.
  5. The option to prevent SmugMug album headers from being clickable was not working. This has been rectified.

Photonic has seen some breakneck development over the past few months. I will now focus on polishing some of the existing features of Photonic over the next few releases. I will also work on some enhancements to FontMeister in the next few weeks.

Dec 222012
 
Plugin

Every year around this time I have a new release of Suffusion. This year though, it is going to be a new release of Photonic. Maybe there will be one more before the New Year, depending on how much my family manages to push me out of the house.

This version of Photonic has the following highlights:

  1. I rewrote the Picasa Processor to be DOM-based instead of event-based. While that is techno-speak, not entirely relevant to you as a user, what it means is that I was able to make a few things more elegant and easy for me to achieve. So …
  2. … There is now an option to let users display the image title instead of the description in Picasa. To use it, go to Photonic → Settings → Picasa → Picasa Settings → Photo titles.
  3. Nested collections in Flickr were not working correctly. A warning was showing up, and collections were getting repeated. This should be working fine now.
  4. I have also fixed an erroneous link for the Flickr collections’ thumbnails. Clicking on them should now take you to the right page
  5. Picasa thumbnails in the popup window now have the same dimensions as those in the main page.

Hope you like this release. I have some pretty big plans for the plugin, like extending support to Zenfolio and Facebook, adding the capability to use more lightbox libraries etc. You can rate / review Photonic at the official WP page.

Dec 102012
 
Plugin

It surely looks like Suffusion’s loss if Photonic’s gain! I have pushed in the latest version of Photonic, which has some nice additions:

  1. Instagram Support:

    This was something that didn’t take long to develop. Even with my workload I managed to do most of the work last weekend and finished the rest this weekend. Instagram is now supported to the extent it is possible to support it! You can display photos that you post, in addition to popular photos. You can also search for photos by location and tags. In addition you can list out the users who follow you or are followed by you. The complete Instagram demo has been made available. The demo page is currently being worked on, however you can see all the examples in action there.
  2. Helpers:

    I pulled Photonic into its own menu item. Rather than nesting under Settings in your dashboard, Photonic is a new tab on the left. This has helped me create a new “Helpers” page for the back-end. Therein you can find things such as your Flickr ID or Instagram ID, without having to scramble across the web.
  3. This was an unreported bug: for authenticated users clicking on a Flickr Gallery thumbnail wasn’t showing a popup with the gallery photos. I have fixed this.
  4. I have also added the capability to let your external URLs (such as Flickr or Instagram URLs) in a new tab. You can configure the setting from Photonic → Settings → Generic Options → Generic Settings → External Link Handling.

I now have a pretty good framework in place for Photonic. If there is any source that supports OAuth 1 or OAuth 2, it should be fairly easy to add the nuts and bolts in place for it. The tricky part is obviously handling the galleries, photos etc.

One piece of good news is that I now have access to Zenfolio. So that is the next source in my line of sight is Zenfolio. The bad thing about Zenfolio is that it doesn’t use OAuth 1 or OAuth 2; it uses its own authentication. That makes things a bit more challenging.

Another source obviously on my radar is Facebook. However the preponderance of Facebook plugins makes me wonder if I can add value in that area. I will also be focusing on the social aspects of the plugin, like letting users share photos on Facebook, Twitter and Pinterest, among other things. In addition I will focus on more layout options, and extending Lightbox support to other non-GPL scripts.

Before I close, I would like to thank all of you for your support in response to my previous post. I shall be responding to each of you individually. The thing is, Suffusion has reached a point beyond which new features are hard to add. However I will work to keep the theme up to date, and if any new feature strikes me as being worthy of development I will definitely work on it. I will also work with you on the support forum to help resolve issues.

If you like my work, I encourage you to rate and review it – making money has never been a goal of my open source projects, but garnering your goodwill definitely has. Photonic’s review page is here, Suffusion’s here and FontMeister’s here.

Nov 252012
 
Plugin

I have been on a roll with respect to Photonic the last few week, only punctuated by the Thanksgiving weekend here in the US.

The latest version of the plugin has the following updates:

  1. The 500px.com component now has support for collections. However, please note that the Collections API in 500px.com is very quirky. It requires authentication, but then it only lets a user see his own collections after logging in. In other words, there way no way the API would let you show all your collections by a single call to a visitor – instead the visitor will see his collections after authentication. I have logged this as an issue, but I have no idea when it will get resolved. Naturally there was no point in offering such functionality.
    So what have I provided? I have built the capability to show a named collection. You could use this kind of an invocation, and it will show the photos in the specified collection:

    [gallery type='500px' view='collections' view_id='xyz']

    In the above, xyz is the collection id. Instead of view='collections' you could use view='sets'. They are synonymous in 500px.com parlance. How do you know the collection id? There is no programmatic way to do so. However you can see the URL of a photo in a collection, e.g. http://500px.com/photo/7206122?from=set/265673, and pick the portion after “from=set/”. So here the collection id is 265673. This is a photo from Michael Stuart, a Photonic user who has graciously consented to let me showcase his photos for the 500px.com demos.

  2. The prior versions had an issue with authenticating in 500px.com, which I have taken care of.
  3. I have added the capability to show fewer pictures on an archive page than in the single page/post. You can configure the settings from Settings → Photonic → Generic Options → Layouts.
  4. I have changed the Flickr module to be predominantly PHP-based, moving away from JavaScript. The reason for this switch is that the JS was causing some conflicts with some plugins. Additionally having a PHP-based solution will let you make use of caching much better.

That’s it for this release. My workload is increasing again from tomorrow, so updates will not be as frequent or heavy as they have been the last couple of weeks.

Nov 202012
 
Plugin

Version 1.26 of Photonic had a minor bug with the display of the login button – under some circumstances the button wouldn’t show up at all. I have patched this and made a new version, 1.27 available.

Do give it a try and let me know what you think.

Nov 182012
 
Plugin

I just released version 1.26 of Photonic, capping a few weeks of hectic development. First was the responsive version of Suffusion, then support for Font Squirrel in FontMeister, and now, OAuth2 support in Photonic for authentication in Picasa.

So this version of Photonic features:

  1. Support for private photos in Picasa
    This was a feature that took me quite some time and a few aborted attempts to develop. While Flickr, 500px.com and SmugMug use OAuth1 for authentication, Picasa uses OAuth2. The mechanisms for authentication differ, and it took me quite some time to figure out how to work with OAuth2. Thanks to Marcel Bokhorst, a suffurer, whose Add Links to Facebook plugin uses OAuth2 authentication. Marcel was gracious to help me with some OAuth2 concepts, which I have been able to put to use here.
    To enable private photo setup for Picasa:
    1. Go to the Google API Console.
    2. Create a “Client ID for web applications”. For the “Redirect URI” remember to include the URL of your WP homepage. E.g In my case the URI was http://aquoid.com/news.
    3. Go to Settings → Photonic → Picasa → Picasa Settings, and put in your new Client ID and Client Secret.
    4. On the same screen enable private photo access and save.

    Now when you visit a page with Picasa photos, it will show a box to log in. Without logging in that page will show all photos with public access, but once you log in you will be able to see private photos as well, to which you have been given access.

  2. Ability to show single photos in 500px.com
    Just like single photos in Flickr, you can now show single photos from 500px.com. The syntax is simple:
    [gallery type='500px' view='photos' view_id='4041547']

    This will show a single photo. The above shows a photo by Colin:

    Enjoying the sunshine

    Enjoying the sunshine
    A pretty girl sunning her self in a park in Madrid.
  3. More skins for Colorbox
    I have added a few other Colorbox skins. You can pick any that you like, from Settings → Photonic → Generic Options → JS Library Settings.

The reason I am excited about this release is that I can now consider integrating Instagram and potentially Facebook.

As usual, if you like this release, please do consider leaving a review for Photonic.

Sep 212012
 
Plugin

I managed to track down the oddest bug I have seen in code in a long time when I worked to release version 1.25 of Photonic. After the last release quite a few users noticed that the 500px.com module had stopped working. This was particularly surprising to me because I could see 500px.com working perfectly on my local install, but failing elsewhere, such as the demo site. I never would have guessed, but the problem was that my development environment is a 64-bit machine while my live environment is a 32-bit machine. That was causing the maximum possible integer in PHP to be evaluated differently on the two platforms, and since I was comparing dates using this number as a bound, the 64-bit and 32-bit machines were returning differing results.

Anyway, this is the gist of this version of Photonic:

  1. Fixed the above issue.
  2. There was an issue that you wouldn’t have noticed if you weren’t connected to the web – trying to view a 500px.com gallery while not connected would result in a fatal error. This has been taken care of.

Hope this fixes the 500px.com issues for you.