Feed on Posts or Comments 06 January 2009

Extensions & MediaWiki robchurch on 15 Jan 2007 05:30 am

RandomImage 1.1 released

I’ve just released version 1.1 of the RandomImage extension; the quick and dirty parser hook extension which tries to bring a bit of spontaneous dynamic content generation to pages.

The new version introduces a new configuration setting; $wgRandomImageNoCache, which defaults to being off. When set to true, however, it disables the parser cache for pages using the extension, which means true randomness. This could be a performance bitch for large sites with huge numbers of images and on large pages where the formatting alone should have been cached. Double-edged sword.

One Response to “RandomImage 1.1 released”

  1. on 16 Apr 2007 at 4:52 pm 1.Fred Kirungi said …

    Hello Rob,
    I use your script on my site, which is running on MediaWiki 1.9.2. It works perfectly fine, and I can’t find anything that does as good a job.
    I have one problem: Is there a way to exclude certain file types or to limit the script to a particular image folder?
    The reason I would want this ability is that I have certain images in my MediaWiki image folders (local and shared) that I would want to be left out by the script, things like icons, logos, etc.
    If I could exclude them by file type, I would just convert them to the excluded file type (e.g tif). Or if I could limit it to a particular folder, I would move all such images to another folder.
    I guess this is not very hard to do but as you would have guessed, I am not a programmer.
    Thanks for your help!
    Fred

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply

You must be logged in to post a comment.