Last Modified Footer – 1.0.2

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

  • Made message templates completely customizable via the admin panel
  • Tidied the admin panel up and added per-field contextual help (hidden by default)
  • Fixed bug that to ensure that only published posts are used for the ‘Site Last Modified’ date (props: DavyB)
  • The ‘changelog.txt’ file has been merged back in to main readme file to conform to the new WordPress readme standard.

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.

Changing User Nice Name

After reading about Donncha’s experiences with the Limit Login Attempts plugin I decided it would be a good idea to implement it on my blog. It’s extremely simple to set up, but I couldn’t work out how to solve the security warning the plugin generated telling me that my ‘user_nicename’ was the same as my username.

It turns out that ‘user_nicename’ parameter is used to construct a permalink to an Author Archive. By default it is set to your username, allowing an attacker to obtain a valid username from the Post Author permalink that is commonly included in themes. Luckily the problem can be easily resolved through a simple database modification:

  1. Fire up phpMyAdmin.
  2. Select your WordPress database from the menu on the left.
  3. Select the ‘wp_users table’, and then click the ‘Browse’ tab.
  4. Locate the row that has your username in the user_login column. Click the Edit button (the pencil icon) on that row.
  5. Enter the desired URL version of your name into the user_nicename field, e.g. ‘firstname-lastname’.
  6. Click “Go” to save your changes.

To check that the process has worked, visit ‘http://yourblogurl/author/firstname-lastname/’, replacing ‘firstname-lastname’ with whatever you picked in step 5; you should now see your Author Archive page. On checking the Limit Login Attempts options page, you should see that the security warning has disappeared. Props to WordPress Hacks for the solution.

Ninjas Ate My Blog

When re-hosting WordPress, deactivate and delete WP Super Cache first. If you don’t then your site might just show blank pages. There’s 7 hours of my life I won’t see again…

Last Modified Footer – 1.0.1

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

  • A widget has been added to the plugin, this can be customised through the Widgets admin menu.
  • Plugin readme file has been updated, changelog.txt has been added.

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 – 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.

We’re Going Through Changes…

Bad musical puns aside, you may notice a few design changes on the site. As part of an effort to speed up the site I have implemented the excellent WP Super Cache plugin and removed the Twitter and Last.fm widgets from the sidebar. Dynamic content and caching don’t work too well together, and although it’s possible to set the cache to expire each time the sidebar changes it rather negates the point of caching as I use Last.fm and Twitter rather a lot!

WordPress Auto Save Woes

It seems like there’s a real problem with the auto save function on WordPress at the moment, if you let the auto save kick in before pressing ‘Save’ or ‘Publish’ then all your musings are lost. Unfortunately for me I only found this out after spending about 20 mins writing a post :-(

It seems to be ok if you hit ‘Save’ before the first auto save hits, you’ve got about 2 minutes as far as I can tell. So the moral of this story is get in there first and press ‘Save’ yourself! Or you could always resort to offline authoring instead…

Hopefully this’ll be fixed in 2.5, I’ve seen at least 10 threads on WordPress.org complaining about it, so it seems to be quite a common problem. Roll on the 10th of March!

Edit: Dydd Gwyl Dewi hapus! | Happy Saint David’s Day!




Copyright © 2007-2009 Hugh Johnson

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