Google Currency Converter - AJAX version |
| Written by kksou | ||||||||
| Tuesday, 26 August 2008 | ||||||||
|
This module allows you to add the Google Currency Converter in a module position. The module makes use of the Currency Converter from Google Finance. (Scroll to the bottom right and you'll see the Currency Converter.) Prefer Yahoo Finance?If you prefer to use the Currency Converter from Yahoo Finance as oppose to Google Finance, here it is: Table of ContentsNote that Google did not release any API for the Google Currency Converter (There are some APIs for Google Finance, but not for the Google Currency Converter). ImportantI've implemented the Google Currency Converter Mashup with the use of PHP's cURL library. So please make sure your PHP has the cURL library installed in order to use this module. For those interested, the module uses cURL at the backend to convert the currency using the Google Currency Converter. The result is then passed back to the client (i.e. the browser) using AJAX. Since AJAX is used, no reloading of pages is required when the result is displayed. Latest Version v1.0.5 (for Joomla 1.0) and v1.5.5 (for Joomla 1.5) Enable support for css styles for result. Live DemoThere are four demos available:
Unique Features
Including this module in Content Item or ArticleSince this is a standard Joomla module, you can easily include this module into a content item or article with the use of {mosloadposition} (for Joomla 1.0.x) or {loadposition} (for Joomla 1.5.x). You can take a look at the demo here.
DownloadJoomla 1.0.x: mod_googlecurrencyconverter_v1.0.5.zip
Joomla 1.5.x: mod_googlecurrencyconverter_v1.5.5.zip How to install
<?php phpinfo(); ?> If your PHP has the cURL library installed, you should see something similar to the following:
If you don't have the cURL library, there are numerous resources on the Internet that gives you very clear instructions on how to install cURL on various platform such as windows, linux, etc. That's it! You're now ready to use the Google Currency Converter right inside your Joomla website! ParametersYou can set the following in the Parameters page:
Styling the Module using CSSYou can set the style of every item within the Google Currency Converter to the exact format you want through CSS. This means that you can set the font family, font size, foreground and background color of the input field, pulldown menu, submit button, etc. For example, if you're using the default Joomla 1.5 template, define the following style in
div.googlecurrency input.inputbox {
font-family: Verdana;
font-size: 12pt;
font-style: italic;
}
div.googlecurrency input.button {
font-family: Verdana;
font-size: 10pt;
}
div.googlecurrency option {
font-family: Verdana;
font-size: 10pt;
}
div.googlecurrency select {
font-family: Verdana;
font-size: 10pt;
}
div.googlecurrency .input_label {
font-family: Verdana;
font-size: 12pt;
}
div.googlecurrency .result {
font-family: Verdana;
font-size: 12pt;
}
div.googlecurrency .highlight {
color: #333366;
background-color: #0033ff;
}
div.googlecurrency {
background: #33FF66;
}
Version History
Bug Fix. When you set the default "currency from" and "currency to", in the parameters page, these options will now be correctly displayed in the frontend. Thanks to Pablo for pointing this out. fixed the undefined variables in mod_googlecurrencyconverter_lib.php User reviews Average user ratings: 5.0 (from 4 users) Note: You have to be a registered member to leave a comment. Free registration here. |
||||||||
| < Prev | Next > |
|---|
Joomla 1.0 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla 1.5 Articles
- How to create a module with DirectPHP plugin?
- How to include modules in Content item?
- How to include modules in Section/Content Description
- How to include PHP commands in Section/Content Description
- How to make plugins process Section/Category descriptions
- Include Code Listing plugin - More Tips and Techniques
- How to have DirectPHP plugin process RSS feed?
- How to have the plugins processed when genrating PDF documents of content items?
- How to have DirectPHP commands processed in Joomla search?
Joomla Plugins
Joomla Components
Joomla Gadgets
- Google Image Search
- Google News Search
- Wikipedia Search
- Google Book Search
- Google Video Search
- Google Currency Converter - AJAX version
- Yahoo Currency Converter - AJAX version
- Yahoo Stock Quote (AJAX module version)
- Yahoo Stock Quote (AJAX component/ module version)
- googleSearch_cse component
- googleSearch_cse module
- googleMaps plugin





5.0 (from 4 users)
October 03, 2008 1:26am
This is a real nice converter with many options! Simple but nice and powerful.
Good work as always kksou!!
May 07, 2009 4:59pm
This is excellent. I just have one question that I hope you can help me with. I am using a template with a module box that is set as -box box-grey
When I use the currenct converter the highlighted result makes it so that I cannot read the result. Please can you advise where I find the css to edit as per the instructions above.
I cannot locate the css for the template that I am using (it's a JoomlaShine template).
Please can you advise me where I can find this as I cannot locate it! I have checked all of the css files that I can find relating to my template.
Your help would be greatly appreciated :)
May 08, 2009 3:45pm
Highly recommend this - very fast, really great support also provided by kksou
Many thanks!!
June 11, 2009 3:29am
What is it error:
Google Currency Converter
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/searest/public_html/modules/mod_googlecurrencyconverter/mod_googlecurrencyconverter_lib.php on line 148