This is a modification of a Wordpress plugin. It shows fundraising progress on a thermometer. I added a nice burst at the top when the goal is reached. It’s done in pure CSS so no Javascript is required and it seems to work in all browsers except IE4 and a few Ubuntu browsers. It’s a little tricky to wrap text around the thermometer so maybe some of you CSS gurus can suggest improvements.
Expand the zip file in the assets/snippets directory, paste the code from thermx.php into a snippet called ThermX and use this snippet call:
[[ThermX? &thermxProgress=`25000` &thermxMax=`50000`]]
The first number is the current amount raised, the second is the goal.
It sets two placeholders. The first is just the current amount, the second displays the thermometer:
<p>Our progress so far: [+thermx_progress+]</p>
[+thermx_thermometer+]
Let me know if you have any problems or suggestions.
[Update] Uploaded thermx1.0.1.zip - much improved. Mercury is now accurate to .25 percent. Separate thermx class file. A few minor bug fixes. The directory structure has changed somewhat so you should probably delete the files you have before unzipping this one.
The Revo version is available at the MODx components SVN.