Overview

MoinMoin - Random Banner

Purpose : The purpose of this script is to link to another place with a banner, like a webring

Inputs : Receives an URL of a csv file separated with semicolon with three fields : name of site;url site;url banner

The second argument is the width of the banner The third argument is the height of the banner

Output: Shows the banner, when you move over the banner it shows the legend and finally when you click you are directed to the site.

Examples:

||<tablestyle="text-align:center;width:100%"><<RandomBanner(https://bitbucket.org/ikks/moinmoin-random-banner/raw/1a60013f4cbbb14b1207cb2030839837bfb1d23c/samples/ringsample.txt)>>||

will show any of the records on the file as a banner linking to the site.

<<RandomBanner(https://bitbucket.org/ikks/moinmoin-random-banner/raw/1a60013f4cbbb14b1207cb2030839837bfb1d23c/samples/ringsample.txt,200,20)>>

will show a random banner on 200x20 size, linking.

A file containing the following lines worked for me.

Slec;http://www.slec.net;http://servidor.slec.net/~igotam/images/banner.gif Gleducar;http://www.gleducar.org.ar;http://servidor.slec.net/~igotam/images/gledubanner.gif Educalibre;http://www.educalibre.cl;http://servidor.slec.net/~igotam/images/banner.gif Structio;http://structio.sourceforge.net;http://structio.sourceforge.net/images/bannerstructio.gif Flisol;http://www.installfest.info;http://www.linuxpreview.org/images/banners/banner-flisol2006-p1latin.gif

Side Notes

Alternate ways of doing this would include using ImageLink macro with RandomQuote :) . I remembered that when I have just finished doing this. RandomBanner DOES NOT rely on those macros.

Please check that your file is well constructed.

Comments

Are welcome