Monthly Archive for February, 2009

Last Modified Footer – 1.0.0

A new version of the Last Modified Footer plugin has been committed to the WordPress plugin repository. This version contains the following enhancements:

  • Output can be generated on demand with or without styling. The  lmf_generate_formatted_output() & lmf_generate_unformatted_output() functions generate the messages.
  • Add plugin option to allow automatic placement of content in site footer to be disabled.
  • Updated admin panel to show styled and unstyled output preview and add controls for new options.
  • Added content to WP contextual help menu (available on WP 2.7 and above).

N.B. The version number has been jumped to 1.0.0 to reflect the fact that this is the first ‘full functionality’ release of the plugin.

As usual,  if you’ve got the plugin installed then WordPress should display the fact that an update is available on the plugins menu within 12 hours. The plugin can be manually downloaded from the WordPress repository if you don’t want to wait.

Last Modified Footer – 0.0.2

I have just committed a new version of the Last Modified Footer plugin to the WordPress plugin repository. This is mainly an enhancement release, new features are as follows:

  • Text generated by the plugin is now styled using CSS.
  • Output preview in admin panel is now styled using CSS.
  • Text inserted between generated messages can now be customized from the admin panel.
  • Added new option to the admin panel to allow customization of the CSS used to style the output preview and generated text.
  • Added reference to date / time formatting in the admin panel.
  • The plugin has been prepared for internationalization (to be completed at next version).

If you’ve got the plugin installed then WordPress should display the fact that an update is available on the plugins menu shortly. As always the plugin can be manually downloaded from the WordPress repository if you don’t want to wait.

Missing Comments With K2

As part of a recent upgrade on this site I installed the latest version of the excellent K2 theme, taken from the nightly builds. Following the upgrade I noticed that although comments were still intact on posts, they were missing from pages. All the old comments still existed in the admin backend, but they were not shown on any pages, and neither was the comment form. I discovered that since revision 747 of K2 it is necessary to have a custom field called ‘comments’ associated with a page in order for any comments or the comments form to be displayed. This leads to a problem in itself; if you try to add an empty custom field to a page then a rather unhelpful error message is displayed and the operation fails. The solution is to give the ‘comments’ field a dummy value, anything will do as it is never displayed. Save the page and voilà: any existing comments and the comments form will resurrected below the content.

The moral of the story? If you want the latest and greatest version, at least spend five minutes reading the changelog!

Last Modified Footer – 0.0.1

Version 0.0.1 of the Last Modified Footer plugin has been committed to the WordPress plugin repository. This version is the initial release of the plugin, it contains the following known issues:

  • No styling is applied to the generated messages
  • The punctuation between messages cannot be changed from the admin panel
  • Time zone difference is not applied from WordPress settings

This plugin inserts the date and time your site was last modified, along with the date and time that the current post or page was modified (when viewing a single post or page) into the site footer. More information can be found on the plugin page.

Last Modified Footer is based on the WP CMS ‘Content Last Updated Footer’ plugin. I decided to roll my own version in order to bring the plugin in line with the current version of WordPress. Version 0.0.1 corrects a couple of bugs, simplifies the plugin code and adds the ability to select a custom date and time format.




Copyright © 2007-2009 Hugh Johnson

Site last updated Fri 6th Nov, 2009 @ 17:29