random thoughts to oil the mind

Tag: WordPress

Language Switcher Widget

This certainly isn’t my area of expertise, but I’ve been trying to figure out a way to integrate the Language Switcher plugin with a widget-enabled theme. As this hasn’t yet been implemented, I copied wrote the simplest of Widgets which will list the available languages on your blog in the sidebar.

There really isn’t anything special here, but for people even more hesitant with code than I am, pop this file into the wp-content/plugins/ folder of your WordPress installation, and then enable it via the Plugins admin page. You should then find the Widget available in the Presentation -> Sidebar Widgets admin page. At the moment, the Widget will display your available languages listed only by name. I’m still learning how to allow this to be changed from within the Sidebar Widgets page.

Click here to download Language Switcher Widget v1.0.

Moving Your WordPress Blog

As I found recently, if you’re planning on moving your WordPress blog around on your server or domain there are a few things to be aware of. Most importantly, do not move the blog before setting up the WordPress for the new location!

  1. Go to the admin section of your blog, select and find the Options > General panel.
  2. Change the WordPress address and Blog address entries to reflect the new location of your blog.
  3. Update your blog, and do not worry if there appear to be problems, simply log out.
  4. Delete the wp-content/cache folder from your WordPress installation (if it exists).
  5. Move the WordPress files to their new location, including all subdirectories.
  6. If you use Permalinks, update them via the Options > Permalinks panel.
  7. Update the settings for any plugins which require addresses which have changed.
  8. Navigate to your new blog address and check everything is working.

Whilst this should update most of your settings to reflect the blog’s new location, some problems might arise with links and images, particularly relative links if you have changed the blog’s location within a single domain. If this is the case it would be easiest to edit the links en mass via the SQL database, however if this affects only a small number of posts it could prove simpler to edit these manually.

Note: WPG2 users might find the WPG2 Plugin page on their WordPress page reports everything successful, yet their embedded gallery page attempts to find images under the old structure. In this case, Show/Hide Manual Configuration Form will display the entries which need manually updating to reflect the blog’s new location.

WordPress 2.1.1 Vulnerability

No doubt this news will be all over before the day is out, but it is worth spreading this announcement all the same.

Long story short: If you downloaded WordPress 2.1.1 within the past 3-4 days, your files may include a security exploit that was added by a cracker, and you should upgrade all of your files to 2.1.2 immediately.

Whilst the news is that the hacked changes were installed after the 2.1.1 release, since the new version includes an unrelated security patch it is probably worth everyone upgrading their WordPress files to 2.1.2 regardless. A sad occasion for WordPress, but the exact details are as yet unknown, and hopefully this release will be dilligently applied to prevent any serious damage being done.

Page 3 of 3

Powered by WordPress & Theme by Anders Norén