| Yahoo Currency Converter - AJAX version |
| Written by kksou | ||||||||
| Friday, 29 August 2008 | ||||||||
|
This module allows you to add the Yahoo Currency Converter in a module position. The module makes use of the Currency Converter from Yahoo Finance. Important Note: Yahoo Finance has changed its interface to pure AJAX module. As a result, it is no longer possible to retrieve the converted currencies using the cURL library direct from http://finance.yahoo.com/currency-converter. In case you're wondering where does the program get the currency conversion rate from? First go to http://finance.yahoo.com/currency-converter, click the link "View 5 Day Trend", then on the left navigation bar, you will see one more link "Summary". Click on that link. This is where the program gets the rate for the currency conversion. Prefer Google Finance?If you prefer to use the Currency Converter from Google Finance as oppose to Yahoo Finance, here it is: Table of ContentsImportantI've implemented the Yahoo 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 Yahoo 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. Live DemoThere are four demos available:
Latest Version v1.0.3 (for Joomla 1.0) and v1.5.3 (for Joomla 1.5) Yes, the Yahoo Currency Converter is back again! Managed to find another Yahoo Finance page that allows us to grab the cuurency conversion rate. Please refer to here for more details. 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_yahoocurrencyconverter_v1.0.3.zip
Joomla 1.5.x: mod_yahoocurrencyconverter_v1.5.3.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 Yahoo 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 Yahoo 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.yahoocurrency input.inputbox {
font-family: Verdana;
font-size: 12pt;
font-style: italic;
}
div.yahoocurrency input.button {
font-family: Verdana;
font-size: 10pt;
}
div.yahoocurrency option {
font-family: Verdana;
font-size: 10pt;
}
div.yahoocurrency select {
font-family: Verdana;
font-size: 10pt;
}
div.yahoocurrency .input_label {
font-family: Verdana;
font-size: 12pt;
}
div.yahoocurrency .result {
font-family: Verdana;
font-size: 12pt;
}
div.yahoocurrency .highlight {
color: #333366;
background-color: #0033ff;
}
div.yahoocurrency {
background: #33FF66;
}
Version History
Thanks to Andre who pointed out that the converter keeps "spinning" when one enters a large amount e.g. 10,000. This is because the previous version did not test for the comma sign. The new version has fixed this. FAQ (Frequently Asked Questions)Q1: I modified the stylesheet as outlined in Styling the Module using CSS. But the new styles do not seem to take effect. A1: Note that after you have modified the stylesheet, you have to reload the page so that the stylesheet is reloaded. I've also found that for some browsers, they still use the "cached" version of stylesheet even when you click the "Reload" button. In such case, you need to clear the cache so the the modified stylesheet gets reloaded. Q2: I changed the format from Style 1 to Style 2. But the Yahoo Currency Converter are still displayed as Style 1. A2: After you have changed the style in Modules Manager from Style 1 to Style 2, make sure you click the "Reload" button on the page in which the Yahoo Currency Converter is displayed. 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)
September 07, 2008 10:58am
April 21, 2009 3:05am
Hi,
Great module but a small problem.
On a Joomla 1.0 install with open_basedir set I get this error.
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set.
After a bit of Googling I commented out the line 185 in mod_yahoocurrencyconverter_lib.php.
//curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
This killed the warning and themodule works fine.
My question is, is this safe or will it harm the module somehow?
April 21, 2009 3:48am
Hi,
Great module but a small problem.
On a Joomla 1.0 install with open_basedir set I get this error.
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set.
After a bit of Googling I commented out the line 185 in mod_yahoocurrencyconverter_lib.php.
//curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
This killed the warning and themodule works fine.
My question is, is this safe or will it harm the module somehow?
April 21, 2009 5:37am
Hi,
Great module but a small problem.
On a Joomla 1.0 install with open_basedir set I get this error.
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set.
After a bit of Googling I commented out the line 185 in mod_yahoocurrencyconverter_lib.php.
//curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
This killed the warning and themodule works fine.
My question is, is this safe or will it harm the module somehow?