Back to vBulletin 3.0 Add-Ons

[bbcode] xe.com currency convertor (lite)
Mod Version: 1.00, by alkatraz

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 5
Released: 10 Dec 2004 Last Update: 10 Dec 2004 Downloads: 3
Not Supported  

Not really a hack, but a quick solution to a problem I always have on my forums. If this shouldn't be here feel free to move it, I searched and didn't find anything that did any type of currency conversion.
*If anyone knows how to make the currency conversion automatic please create a full hack for it! (My coding knowledge is next to nothing) I've started the Modification Request for a full featured convertor.

Description:
My members are always asking "what's that in US dollars?" or "how much is $__ in Canadian dollars?" Someone will go to xe.com for them and post up the currency conversion.

Now you can use this bbcode to specify USD or CAN and it will display a link that will open a new window with the converted currency.

Currency conversion is done by XE on the fly so the rates are always acurate. XE.com is the most popular currency conversion site out there, to my knowledge.

Usage:

[CAD]18.49[/CAD] typed inside a post results in,

$18.49 CAD. [http://www.xe.com/ucc/convert.cgi?From=CAD&To=USD&Amount=18.49]

Example:

I'm looking for [USD]15,000[/USD]

I'm looking for $15,000 USD. [http://www.xe.com/ucc/convert.cgi?From=USD&To=CAD&Amount=15,000]

* Click on the link, it opens a new window with the converted currency.

Installation:
Download the TXT document attached.
Just 2 BBCodes to add, should only take a minute
Please click if you use it.

Updates:
* Found a way to make link open a new window (not a popup) that calculates the currency without having to press the go button. Updated instructions.

Customization:
I've set this up for CAD to USD and USD to CAN, but you can put whatever currency codes you want.

You can either make additional bb codes for new currency codes or you simply replace the currency codes I've used. Just do a search and replace on instructions doc for "CAD" then "USD" and that should do it.

I've changed the code to open a new window with the currency already converted but you can change it so it opens a popup where some options can be changed. IE: with the popup, you can use a currency selector instead of the fixed currency selection.
Full instructions on XE's popup convertor:
http://www.xe.com/pca/customize.htm

Support:
It's a BB Code, there's nothing to support!

Suggestions
Post them here

There are so many possibilities for this script in the right hands. I'm not a programmer by any means, this is just a simple bbcode and I don't think there's much else I can do to this with my skill level.

I've started a modification request here for a much more integrated hack. Feel free to add to it, hopefully someone can help us out.

Download

This modification is archived and cannot be downloaded.

Similar Mods

Default BBCode formatting for user's posts (LITE VERSION) vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2024