Contents
RandomBanner
Purpose
The purpose of this script is to link to another place with a banner, like a webring
Download & Release Notes
Download |
Release Version |
Moin Version |
Release Notes |
|
1.3 and Above |
After donwloading, rename to RandomBanner.py, please do read the docs, before using it |
|
|
1.9 |
-- IgorTamara 2013-05-12 05:19:27 |
You can grab the most recent version from BitBucket
Calling sequence
<<RandomBanner(urlcsvfile[,width=width,height=height])>>
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(http://servidor.slec.net/~igotam/anillo.txt)>>||
will show any of the records on the file as a banner linking to the site.
<<RandomBanner(http://servidor.slec.net/~igotam/anillo.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
You can look a running example here
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.
- For sure, it would be possible to use a Parser
Legal stuff and author
Igor Támara <igor AT tamarapatino DOT org>, GNU GPL version 2
Bugs
Comments and Discussion
Comments and discussion are welcome.