Home > Blog Add-ons > Post Avatar

Post Avatar

October 30th, 2009

Table of contents

Description

This plugin simplifies including a picture when writing posts by allowing the user to choose from a predefined list of images. The image can be automatically shown on the page or output customized with the use of a template tag in themes. This plugin is similar to Livejournal userpics. Developed with Dominik Menke.

Translations:

Features

  • Easy selection of images in the Write Post screen.
  • Scans images in sub-directories of the image option folder.
  • Allows the following file types: .jpg, .jpeg, .gif and .png.
  • Settings display avatars automatically or through the use of template tags.
  • Customize html output of avatars.
  • Does not display missing images.

Installation, Settings & Usage

Installation

Activate the plugin from the ‘Plugins’ Management screen.

Settings

Set plugin options in ‘Options’ > ‘Post Avatar’.

  • Path to Images Folder – location of your images folder in relation to your WordPress installation.
  • Show image in Write Post Page – Place a tick mark if you want to see a thumbnail of the post avatar in the Write Post screen.
  • Scan the images directory and its sub-directories – Place a tick mark if you want to list all images including those in sub-directories of the image folder.
  • Show avatar in post – Place a tick mark to show avatar automatically on your blog post. Disable to use the template tag.

These options help you further customize the display of your post avatar:

  • Customize HTML/CSS – These options help you customize the look of your post avatar
  • Before and After HTML – enter the HTML you want to display before and after the post avatar. Example: Before: / After: Output:
  • CSS Class – enter the name of the css class that you would like to associate with the post avatar image. Can be left blank. Example: The class name is: postimage Output:

If you use both the css class and the before and after html you will get the following output:

  • Others
  • Get image size? – Turned on by default to determine the image’s width and height. If you encounter any getimagesize errors, turn this feature off.
  • Show in feeds? – Turned off by default. Check this option to display post avatars in your RSS feeds.

Usage

  1. UPLOAD IMAGES

    Upload the images that you intend to use to the folder defined in the Post Avatar options.

  2. ADDING AN AVATAR TO A POST
    1. To add an image to a post, go to the ‘Post Avatar’ section. In WordPress 2.7 the selection box is below the ‘Excerpt’ but you can move it to a different location.
    2. Select the image name from the list.
    3. Save your entry.
Tags: , ,
Comments are closed.