Post Avatar 1.2.4

post-avatar-124

Changes to Post Avatar include:

  • Compatibility with WordPress 2.5
  • Option to include avatars in feeds
  • Basic navigation effects for images
  • Fixed javascript so avatar display works in IE 6+

Download now or visit the plugin page

Post Avatar 1.2.3

post-avatar-123

A couple of minor bugfixes and a few new features, namely:

  • Avatar selection rights for Authors, Editors and Administrators only. Use the role manager plugin to customize access rights. If you already have Post Avatar installed, deactivate and reactivate the plugin to update user rights
  • Customize HTML and CSS within the options page. Dominik added this to make it easier to change the styling of avatars. It will work with both the template tag and the automatic avatar display
  • Automatic avatar display for post excerpts is now included
  • I fixed the bug where avatars where showing up in feeds

Download now or visit the plugin page

UPDATE (Oct. 9, 2007): Discovered a bug (Thanks Paul!) - automatic avatar display causes the image to appear twice when using the_excerpt. Download the updated zip file or if you’re feeling adventurous:

Open up gkl-postavatar.php and look for this code at the end of
// Display avatar without template tag
if ($gkl_ShowInContent == 1){
add_filter('the_content', 'gkl_postavatar_filter');
add_filter('the_excerpt', 'gkl_postavatar_filter');
add_filter('wp_head', 'gkl_postavatar_showcss');
}

Just comment out or remove “add_filter(’the_excerpt’, ‘gkl_postavatar_filter’);”.

It should look something like this:
// Display avatar without template tag
if ($gkl_ShowInContent == 1){
add_filter('the_content', 'gkl_postavatar_filter');
add_filter('wp_head', 'gkl_postavatar_showcss');
}

Moving Your Wordpress Installation? Consider This!

moving-your-wordpress-installation-consider-this

There are some great articles and tutorials on how to move your Wordpress installation for all manner of user levels. They range from the basic to the detailed or for more advanced users.

But one thing these guides have failed to mention if you use the built-in upload facility - watch your absolute server paths.

What the frak is an “Absolute Server Path”

The absolute server path is the full path to a file or folder. More about paths. For example a jpeg file name “just-a-picture.jpg” is stored here: wp-content/uploads/just-a-picture.jpg.

The absolute server path could look like this:

/home/username/public_html/wp-content/uploads/2007/03/just-a-picture.jpg

This value is what Wordpress saves every time you upload an attachment inside the following post meta keys:

  • _wp_attached_file
  • _wp_attachment_metadata

While this doesn’t really affect what you see on your website, it does affect the uploads admin page. Instead of seeing a thumbnail, you’ll see the full image.
And unless you want to upload all the images again, then you’re screwed.

Okay so I am exaggerating. You just have a bit more work to do.

So what do I do?

Before transferring your database over to your new server, open your database backup in a text editor and change all instances of the old server path to the new one with the search facility.

Or you could use the tool mentioned here to do a global search and replace for the absolute server paths.

I ended up making a plugin to help fix 1000+ attachments for my friend’s website. With better than dial-up internet speed, it took about a minute each to fix thumbnails and attachments.

So I’m releasing the Fix Attachments plugin for use as a last resort in case the two options I mentioned above don’t work for you.

Remember, have an unaltered backup of your database handy in case anything goes wrong. The plugin worked fine in my case but it may not work in yours and you WILL want to restore your database.

In a mood

The Wordpress Codex lists some plugins for adding moods to posts

Moody: Enter your mood in the Custom Field section of your post entry and the plugin will display in your theme below the time.
Sounds good but the plugin doesn’t work with Wordpress 2.0 and up. Plus you have to do your configuration in the php file.

Mood Quote: Let’s you assign a quote for your mood. Interesting plugin though it’s not what I need.

Cricket Moods: This plugin lets you assign moods with images so whenever you put a mood in your entry. What’s good about this plugin is that each user can customize their own mood list and you have the option to automatically show the mood or position it in your template.

MyMooMus: This is a three-for-one plugin, combining the display of moods, music and tv in your posts. However it only shows the text not images.

I’ve made my own plugin that lets you set the location of your mood directory and image extension. In the Write Post screen, select a mood from the drop-down list of moods. There’s also a template tag to display the mood in your template. It’s not available to the general public because I’m still testing and adding features but if you’d like to try it out, drop me a line and I’ll send you the file.