The plugin can help you add dynamics to your blog / site. Assuming that you have a series of images with thumbnails, you could easily pick them at random and show on your page / in your post at a defined place.
The names of images in the directory the plugin scans should follow the pattern:
- somename.png – the main image.
- somename-thumb.gif – the thumbnail for the main image.
Note that current version supports only PNG format for the main image and GIF format for the thumbnail. You can easily modify it to support any extension or let me know if it’s necessary and I’ll update the plugin.
Usage
… this is a random {random_screen} screen …
{random_screen class=css_class} <p>this is a random screen … </p>
this is a random screen …
Downloads
- Version 1.0 (11/07/2006)
Installation Instructions
Installation is quite straight-forward:
- Unzip the archive to your plugins folder
- Go to the WordPress plugins admin panel then activate the [NCG] Random Screens plugin.
- Open the ncg-random-screens.php in your favorite editor and update the paths:
- NCG_RS_IMG_ROOT_PATH – absolute path to the site root
- NCG_RS_IMG_ROOT_URL – URL of the site
- NCG_RS_IMG_PATH – relative path to images directory from the root
Future Directions
- Recognize popular extensions for both the image and the thumbnail
- Define several directories to lookup images from
I'm a Java and Ruby on Rails fan. Among my other interests are industrial photography and electronic music composing. In the mean time I build great web-sites and help AVAAZ to save Great Barrier Reef.