WordPress 2.6 added post revisions as a new feature that is turned on by default. In an earlier post, I described how you could control this by editing wp-config.php and there are a number of plugins that purport to provide the same level of control through the administration screens. Even so, I decided to look at things from the housekeeping side of things and create my own plugin for clearing the database of revisions at one swoop. Currently, it takes out all revisions but I am thinking of adding the facility for selecting which revision to keep and which to delete. It goes without saying that you should back up your database first in case anything might go wrong.
Topics Discussed
Adobe Blog Blogging Canon Command Line CSS Debian Fedora Firefox GNOME Google hard drive Hardware HTML Installation Internet Explorer JavaScript Linux Microsoft MySQL openSUSE Opera Operating System Perl Photoshop Photoshop Elements PHP SAS Software Ubuntu UNIX upgrade VirtualBox Virtualisation Virtual Machine Vista VMware Web Browsers Windows Windows XP WordPress WordPress.com WordPress plugins XHTML XP
Twitter Updates
- GR Shared Items: Google Maps Adds Bike-Friendly Directions and Trails [Google Maps] http://ow.ly/16LE5o 3 hrs ago
- GR Shared Items: Guide: 8 ways to speed up Internet Explorer 8 http://ow.ly/16LE5p 3 hrs ago
- Delicious: TikiWiki CMS Updates 3.5 and 4.2, Offers a Peek at Version 5 http://ow.ly/16LA4I 5 hrs ago
- Delicious: Browse the Web as it Looked in 1993 | Webmonkey | Wired.com http://ow.ly/16LA4H 5 hrs ago
- Delicious: data.gov.uk, BBC Backstage and MDDA announce Data Visualisation Weekend - MDDA http://ow.ly/16LyjH 6 hrs ago
- More updates...
Photo Gallery
Here are a few teaser photos from my online photo gallery.
Archives
Archive for the ' WordPress plugins' Tag
New version of my Countrytones plugin
Now that WordPress 2.6 is out, it is time to introduce a new version of Countrytones to the public. A few CSS tweaks have been needed to the original version after the changes that have been made to the administration interface for 2.6. Those screens still look largely the same with this release as they did before but for the styling of things like the bubble that alerts you to the availability of plugin upgrades, among other things.
Tags: administration interface, Countrytones, CSS, WordPress plugin, WordPress plugins
A spot of WordPress 2.5 administration panel colouration
The final release of WordPress 2.5 isn’t out yet but that hasn’t stopped me playing around with it and spotting a bug or two. Along the way, I have taken the chance to create a plugin that takes the old Earthtones palate into the new world. To do this, I have taken the WordPress Classic colours stylesheet along with some template code from planetOzh and tweaked it accordingly. I may not have got to every possible nook and cranny for colouration but I hope to have covered most of them. You may even find it useful yourself.
Tags: Countrytones, CSS, planetOzh, WordPress, WordPress plugin, WordPress plugins
FCKEditor for WordPress
The standard WordPress post editor got broken on this blog so my mind turned to replacing and I spied plugins for adding FCKEditor to the thing. Dean Lee’s is the one that I am using and it seems to work well so far too. As this is FCKEditor, there are more editing options than those offered by the WordPress standard and that’s even with the advanced options made visible with the Alt+V/Alt+Shift+V keyboard shortcuts; the former is for IE and the latter for Firefox. We’ll see how it goes from here…
Login Logger plugin
The Login Logger WordPress plugin sounds a great idea and it works fine with standard situations. However, go beyond these and things start to go awry. An example is where you have to use unique database table prefixes because you use shared hosting. This is certainly something that I do and it breaks Login Logger. Thankfully, the fix for this is easy enough: just amend the database query on line 22 in the manage.php file as follows:
Before:
$query = "SELECT distinct wp_users.user_login,".$table_name.".username FROM wp_users LEFT OUTER JOIN ".$table_name." ON wp_users.user_login = ".$table_name.".username WHERE ".$table_name.".username IS NULL";
After:
$query = "SELECT distinct " . $table_prefix . "users.user_login,".$table_name.".username FROM " . $table_prefix . "users LEFT OUTER JOIN ".$table_name." ON " . $table_prefix . "users.user_login = ".$table_name.".username WHERE ".$table_name.".username IS NULL";
The issue was caused by hard-coding of the table prefix for the user table and using the prefix that you yourself have set is the way out of this. What is less easy to resolve is a conflict between Login Logger and the Themed Login plugin. That will take further investigation before I come up with a fix.
A feast of plugins
Here’s a useful idea: get your blog login page to look like it’s part of your blog. It does work well on my hillwalking blog but you do have to watch how it behaves with whatever theme you are using. Strangely, I couldn’t get it to work on my offline blog, the development mirror of what you see online. The ability to set what page is displayed after logging in or logging out is an especially useful inclusion.
These sound like really good ideas: being able to control the running order of things on your blog sidebar is a good thing. What scuppered my using them is that you need widgets turned on for the effect to work and i have seen issues with how ID’s have been set when things are widgetised.