NextGEN Facebook Open Graph v4.3 Plugin for WordPress

Aside by Jean-Sebastien Morisset - Tuesday, April 16th, 2013 - (0)

Here’s a summary of new features in version 4.0 to 4.3 of NextGEN Facebook Open Graph (NGFB), the best and most complete Open Graph plugin for WordPress.

Version 4.0 introduced many internal code changes in order to use the WordPress Object Cache and Transients API functions to improve performance. The performance gains will be most noticeable for logged-in users and websites that aren’t using full-webpage caching plugins.

You can download NGFB from the wordpress.org website, or install / upgrade it from the Plugins admin page of an existing WordPress website.

Continue reading…

Read Adobe XMP / XML in PHP

Categories: PHP, WordPress
Comments: No Comments
Published on: Tuesday, April 9th, 2013

I’ve found a few snippets of PHP code to read XMP / XML meta data from an image file, but none that I would call very robust or efficient. I ended up writing my own for Underwater Focus, and I’m quite pleased with the result. In fact, after adding support for a shortcode, I packaged it as an Adobe XMP plugin for WordPress.

The first part of using XMP meta data is reading the XMP information from the image. I’ve seen a few solutions that read the whole file into memory, and others that read-in just a small part. If the XMP / XML contains a lot of information, that small part may be incomplete. And each time the XMP meta data is required, the original (and sometimes quite large) image file must be re-read. Since the XMP doesn’t change unless the original image is updated, there’s no reason to keep re-reading the same large file time and time again.

Continue reading…

PHP Class to Cache Remote Content by URL

Categories: PHP, WordPress
Comments: No Comments
Published on: Thursday, February 14th, 2013

While developing the NextGEN Facebook OG plugin for WordPress, which adds social buttons from Facebook, Google+, LinkedIn, etc. to content and pages (along with several other features), I found the response time from these websites to be disappointing at times. When speed testing the pages of my websites, the JavaScript and images from these social elements would sometimes be a significant part of the total page load time. You can’t really save a copy of these files and serve them yourself, because they are frequently updated. You could create a cronjob to update them on a regular basis, but the maintenance of this can be cumbersome (as you add or remove files, etc.). It’s much easier to use a PHP method that caches and refreshes the remote files, and translate the URL at the same time. For example, something like:

Continue reading…

Adobe XMP with an Hierarchical Subject Array in PHP

Categories: PHP
Comments: No Comments
Published on: Monday, January 7th, 2013

This morning I had a bit of a challenge parsing Adobe XMP information for images on Underwater Focus. The Adobe XMP is too complex for SimpleXML, and anyway, I only needed a few values — one of them, the LightRoom hierarchicalSubject keywords, is the reason I’m sharing some of the code I wrote.

Using regular expressions to get at single values is quick and easy, but I wanted to create arrays for rdf:li values, and split each lr:hierarchicalSubject keyword into an additional second-dimension array.

Continue reading…

Jean-Sebastien Morisset

Coding for Xmas

I’ve been coding a lot more recently, and this Xmas period has given me the chance to catch up on a few things… NextGEN Facebook OG v2.1 should be out shortly, with support for Pinterest, and a few more options to control where the Open Graph meta tags appear.

Status update posted 5 months ago by - (0) comments
page 1 of 2»
Freelance UNIX SysAdmin
20121006-095055-jwolfe-49

Looking for a Sr UNIX Systems Administrator specializing in Systems Integration? I may be available for freelance or contract work, either remotely or on-site. You can contact me by email at jsm@surniaulula.com to discuss solutions specific to your needs.

  • Location : Montreal QC, Canada
  • Availability : 4-8 hrs / week freelance

Continue reading…

Social Pages and Feeds
FacebookGooglePlusLinkedInRSS