Table of Contents

NP_RandomImg.php

This plugin can be used to show a random image on your Nucleus blog and link these images to somewhere else.

General Plugin info
Current Version: 1.3
Download: http://foto-cs.de/blog/downloads/NP_RandomImg-1.3.tgz (format: tgz, size: 3.0 kB, 2 files) or here
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?p=34902#34902
Author: Carsten Schurig (cs42) http://foto-cs.de/blog/

Installing

  1. Unpack the file and upload the contents to your plugin directory
  2. Install the plugin...
  3. Set the options in your blog settings page and add <%RandomImg%> to your skin

How to use the plugin

Besides showing a random image on your page, with this plugin it is possible to

Available SkinVar

Options

All options are blog specific, so they are in the blog settings area.

Empty fields are ignored and to get valig XHTML output, the properties are dropped. If no image file name is given, no img tag is set and if the file name to link to is empty, no link is defined. A new line starts a new definition, empty lines are supposed to be ignored. So if you would like to show an image thumb.jpg with a title of This is a nice picture, a width of 100 and heigt of 200, and like to link it to sample.html you have to add:

thumb.jpg|sample.html|This is a nice picture|100|200

Bugs

History

Plugin review

NP_RandomImg version 1.3 works with Nucleus CMS 3.31 - 2007-10-28 Armon