Ajax currency converter widget for WordPress

YAACC

Let me introduce my very first Widget for WordPress: YAACC, an Ajax powered currency converter ! Feel free to try the live version on the right sidebar. As you might have noticed, the user interface is dead-simple. The widget is also optimised with a smart caching system and with compressed javascript and css. The option panel of the widget let you customise the default currencies and the initial amount. Finally, this currency calculator allow you to cutomize the list of available currencies by commenting or uncommenting lines of the complete list of currencies (177 currencies).

Download YAACC, a free Ajax powered currency converter widget for WordPress ! Your ideas or questions are welcomed.

Changelog

  • 20080301: 0.9.3 fixed a minor bug, fix for the title option, version and usage check
  • 20070922: 0.9.2 fixed a glitch in the caching of ajax-working.gif.
  • 20070909: 0.9.1 replaced the ajax-working.gif image with a transparent version.
This entry was posted in Website status. Bookmark the permalink.

73 Responses to Ajax currency converter widget for WordPress

  1. Pingback: www.blogmemes.fr

  2. Pratique ce petit outil :-)

  3. JMom says:

    I just downloaded the plugin, and uploaded it to my host server, but it’s still not showing in the WP admin panel. What am I doing wrong. Can you help? I really like this widget.

  4. Kenji says:

    Hi,

    Did you upload the yaacc folder under wp-contents/plugins/ ?
    You should have the following structure and files :
    /wp-content/
    …|
    …|–>/plugins/
    ………|
    ………|–>/yaacc/
    ……………|
    ……………|-/conversions/ (writable, chmod 775)
    ……………|-ajax-working.gif
    ……………|-all.js
    ……………|-money.png
    ……………|-textfield_bg.gif
    ……………|-yaacc.php
    ……………|-yaacc-fetch.php

    You should then go to the plugins tab of your administration panel and look for the following entry :

    currency-converter 0.9 yet another AJAX currency converter YAACC …

    Click on the link to activate the plugin then move to the Presentation tab and click on the Sidebar Widgets sub-tab. You should find the yaacc widget in the list of widgets. Drag and drop it on one of your sidebar (your theme must be widget enabled).

    Let me know how it went.

  5. Josh says:

    I can’t seem to figure out how to get the widget title to show up in my sidebar. I saw you left a place in the code for it, but I’m not sure how you intend it to be implemented.

  6. Kenji says:

    Josh,

    I am getting ready a version that will fix this problem.
    Stay tuned.

  7. Josh says:

    I actually figured out a way to do it.

  8. Kenji says:

    I have uploaded a new version of Yet Another Ajax Currency Converter (YAACC 0.9.3).

    Fix for the title option and a minor bug.
    Added version and referer check.

    Upgrade required: older versions are not supported by the backend anymore.

  9. Josh says:

    I tried deactivating the old version, deleting, and uploading and activating the new. For some reason, it says under the second line ‘Reinstall’, and it won’t do any conversions. Check robertastephens.com for what I’m talking about. I made sure to not change ANY code on the new upload.

  10. Tim Lester says:

    Thank you for making this plugin. I have install the plugin in the correct folder but when I run it a smiley face appears for the date then when I change the currency the smiley face changes to Update or Reinstall. The background around where the user enters the current amount doesn’t display. I am running WP 2.5.1.

    Cheers
    Tim

  11. Kenji says:

    Sorry for the troubles you had with my widget.

    I have tweaked the backend. Now, it should work without any modification on your end.

    As for the background not showing, could you tell me which browser are you using and the page where you are using the widget?

  12. Tim Lester says:

    Hi Kenji,
    Thank you for fixing the background the conversion is working now. The background picture still isn’t working http://www.gadgetsdirect.com.au/wp-content/plugins/yaacc/textfield_bg.gif and I think I have it in the correct place. When I activate your plugin the footer doesn’t line up with my main page. Also in IE7 your plugin looks a bit crazy. I am using this theme http://www.jide.fr/english/downloads/freshy2/ The formatting is fine on the default wordpress theme but I still don’t get textfield_bg.gif displaying.

    Cheers
    Tim

  13. Kenji says:

    Sorry for the late reply.

    I think I have found the reason why the background does not shows up.
    The path to the background is set to “/blog/wp-content/plugins/yaacc/textfield_bg.gif” which is not the right path for your setup as your wordpress install is not under a blog directory.

    You can solve the problem by editing the plugin files and remove any reference to /blog/

    I will try to find a way to make the plugin work for any kind of installation.
    Thanks for the feedback.

  14. Tim Lester says:

    Hi Kenji, thanks for the fix. I just removed the /blog/ part from your plugin and all good as you recommended. It still wasn’t displaying in Internet Explorer that well but when I changed .currency-converter-fieldset{width:160px to .currency-converter-fieldset{width:180px all was good but doesn’t look as nice in Internet Explorer. Can you make it 180px on the next version? I still can’t work out how your plugin is effecting my footer style. Might be your css conflicting with my themes css?

    Cheers
    Tim

  15. Kenji says:

    I have uploaded a new version that fixes the css problem for the background of the fields. Regarding the width of the widget, did you have problems with 160px? My site happens to have very narrow columns so I tried to make the widget fit in a width of 160px.

    I also took a look at your site but could not find why your footer was messed up…

  16. Cool Gadgets says:

    0.9.4 fixed up the the css path problem :) I have left it at 160px so you can see my site in internet explorer http://www.gadgetsdirect.com.au . You can also see in my footer which has my rss and rss comments (internet explorer or firefox). The css in your plugin might be escaping and effecting the css in my footer. My theme is http://www.jide.fr/english/downloads/freshy2/ . Be nice if you could make a mysql table for the currencies you want to show and default currency so when the plugin is updated don’t have to go edit the plugin manually. With wordpress 2.5 there is auto update can you add this? I think if you can fix the css and make a mysql table be a great plugin on wordpress.org and you should get a ton of backlinks for your blog. You plugin looks better than the others :)

    Cheers
    Tim

  17. Kenji says:

    You are right the plugin does not look good in IE with 160px on your site…

    I will try to come up with a new version with:
    * a fix for the css
    * a better interface to choose the currencies
    * a way to save the settings
    * implementation of WordPress 2.5 auto-update

    and I will eventually release the code with a GPL license so it can be included in the official plugins directory.

  18. Gadgets says:

    Hi Kenji,
    Even when I increased the width of my sidebar it didn’t fix the display in IE. I don’t know much but it looks like IE displays css a little different than Firefox. Can’t wait for the updates.

    Cheers
    Tim

  19. Hi Kenji,
    Cheers for the update but I got the below error from auto update in WP Admin.
    Warning: require_once(/home/content/t/i/m/timlester/html/gadgetsdirect/wp-content/plugins/yaacc/settings/currencies.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/t/i/m/timlester/html/gadgetsdirect/wp-content/plugins/yaacc/yaacc/yaacc.php on line 35

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/t/i/m/timlester/html/gadgetsdirect/wp-content/plugins/yaacc/settings/currencies.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/t/i/m/timlester/html/gadgetsdirect/wp-content/plugins/yaacc/yaacc/yaacc.php on line 35

    With a manual clean install worked fine. I still have the problem of your plugin effecting my footer layout.

    Cheers
    Tim

  20. Kenji says:

    Hi Tim,

    I am still running on the the old branch of WordPress (still maintained for security fixes) so I am not able to try this auto-update feature. My guess is that the repository was not completely up-to-date when you tried because the settings directory and its currencies.php definitely were there when I checked.

    I also did check the css and html layout for unclosed tags but could not find any. I will look at your theme for errors whenever I have time.

    I would really appreciate if you can rate the yaacc plugin in the wordpress directory.

    Thanks again for your feedback.

  21. Tim says:

    You got 5 stars from me, did a quick forum post also. Might want to change the description in the WordPress plugin directory from “Compatible up to: 2.1″ to “Compatible up to: 2.5.1″ as your plugin works great on the latest version of wordpress also.

    What do you think about changing $ to USD as a lot of countries also use the $ sign. Eg in Australia we use $ for AUD and so does New Zealand and most likely a few more countries do also.

    Be great if you could look at the theme I use.

    Cheers
    Tim

  22. Kenji says:

    Thanks Tim,

    I made the changes you proposed.
    I will take a look at your theme tomorrow.

  23. Robert says:

    Hi, great plugin but I have a problem with the JS.
    It shows me a XMLDoc is null error. How to fix it?

    Thanks in advance.
    Regards,
    Robert

  24. Robert says:

    Hi, I again.
    I fixed the error. There was a mistake in the yaacc-fetch.php. I wrote now line 38 above line 36 and commented out line 255.

    Take care.
    Regards, Robert

  25. Kenji says:

    Hi,

    I am not sure of the circumstances leading to the bug you described.
    Could you give me more details?

    Thanks.

  26. Filip says:

    Hi,

    How do i manually activate the widget. I know i should type something in
    Theme Editor >> ‘my theme’ >> sidebar.php but i dont know what. Anyone?

  27. Kenji says:

    You should go to the Presentation tab and then “Sidebar widgets”. There you should be able to drag and drop YAACC if your theme is compatible with widgets.

  28. Alejandro says:

    Sorry for my bad english..

    I install the WordPress YAACC plugin, and don´t work…

    I change /conversions/ (writable, chmod 775)
    and I change the file permisions to 775 to 0d22295dba298b8a4831a943545b0810-3518f8944d42212dd37daffe097d216e and 3518f8944d42212dd37daffe097d216e-0d22295dba298b8a4831a943545b0810..

    Please help me

  29. Kenji says:

    I am looking into it.
    Check back for updates.

  30. Kenji says:

    Hmm, I tried to access your cache files but got a 404… Also, the response of yaacc-fetch is strange: the xml content header is missing thus displaying html…

    Please reinstall from scratch with the newest version (1.1) that might fix your problems.

    If this still does not work, it might be due to limitations on your php install. The script then have to rely on a weaker method to poll the service which might cause your problems.

  31. JBF says:

    Hi Kenji,

    The plug-in looks excellent but for some reason it’s not working properly on my site. The loading image just continues spinning and it doesn’t convert any of the calculations.

    Site: http://housemeetsowner.com

    What do you think it could be? Thanks for making this plugin!

  32. Kenji says:

    Hi,

    I have checked your website and it seems that you are missing the conversions folder. Make a sub-folder named ‘conversions’ under wp-content/plugins/yaacc/ and it should work. Let me know how it goes.

  33. JBF says:

    That did the trick! It works flawlessly, thank you for such an innovative plugin.

    I downloaded the plugin from WordPress.org and it didn’t have an empty conversions folder in it.

  34. Frank says:

    Bonjour,

    est-ce que cela fonctionne sous WP 2.6.1 ?
    J’ai installé le plug-in mais je ne vois nulle part d’option pour les paramètres.

    Merci
    Frank
    ————
    Hi I just installed it on my WP version 2.6.1. Does it run under this version ?
    I didn’t see anywhere to fill the parameters.

    Thanks
    Frank

  35. Kenji says:

    Ca devrait fonctionner sous 2.6.1 et plus. Cependant, comme il s’agit d’un widget, il faut l’ajouter par le biais du menu Sidebar Widgets qui se trouve sous l’onglet Présentation de l’interface d’administrateur de WordPress.

    —–

    It should work under 2.6.1 and later. However, this is a widget so you must activate it from the Sidebar Widget menu under the Presentation tab in your WordPress Admin page.

  36. Cristián says:

    HI!..

    Excellent plugin, but how can i activate it “manually”?
    (without the widgets feature)
    Thanx

    Cristián

  37. Kenji says:

    Hi,

    If “activate it manually” means being able to display YAACC at a specific location, it’s not possible with the current version.

    Could you explain me what you are trying to accomplish with YAACC? Maybe I can try to work on it for the next version.

  38. Cristián says:

    Hi, Kenji…

    I wanna put it in a specific location, but my sidebar isnt’ a widget-like.

    I’ll like that visitors can convert any currency (actually are 4 options only)…
    That be great too.

    Anyway, thanx for sharing this!… :D

  39. Phil says:

    Hello Kenji,

    Thank you for your great plugin! works like a charm.
    I had 1 issue that I could fix on my own, but maybe you’d like to fix in the next version.

    1. edit currencies.php to only allow JPY and CAD
    2. Activate plugin
    *** Plugin FAILS ***

    how to fix
    change all instances of “\” ( yen mark ) to “JPY”

    output Yen mark is now displayed as “JPY” ( fine by me )

    I also have a request.
    my site will show ;
    100 JPY
    1 CAD

    in reality it should be 1.xxx or 0.9xx or so.
    if you could add perhaps 2 or 3 ( or have the options to choose the amout of ) digits after the decimal to give a more precise number

  40. Tigran says:

    Hello,

    I have added one more currency to the currencies.php file.
    AMD (Armenian Drams), but it’s not working.
    It just shows loading.

    Please help.

  41. Kenji says:

    Tigran,

    Did you un-comment the existing line for AMD ?
    Also you might want to follow the instructions of Phil (the comment above yours) and check that you have a writable “conversions” folder under “yaccc”.

    If it still does not work, let me know the address of your website.

  42. Tigran says:

    Hello Kenji,

    I have uncommended the line for AMD.
    Also conversations folder hasm been chmod-ed and chown-ed appropriately.
    For other currencies everything works fine.
    But for AMD I see only loading.
    Seems like rates for AMD are N/A.

    Thanks!

  43. Tigran says:

    Hello Kenji,

    I have uncommented the line for AMD.
    Also conversations folder has been chmod-ed and chown-ed appropriately.
    For other currencies everything works fine.
    But for AMD I see only loading.
    Seems like rates for AMD are N/A.

    Thanks!

  44. Ray Doucette says:

    I have been looking for a converter like this. I live in Costa Rica and use Canadian dollars. I exchange money frequently and would like to have an indication as to the exchange rate. I use XP professional and was wondering if I can install this on desktop or at least IE.
    Thank You
    Ray

  45. Kenji says:

    Ray,

    This is a WordPress plugin, you would need to install a WordPress blog (locally or on the Internet) and make that your default page on IE (or Firefox).

  46. benjamin says:

    Bonjour, je viens d’installer ton plugin sur expatriation.com mais a priori, il “cherche” (il working ;-) un peu le site sur lequel mettre à jour les taux ?
    j’ai loupé une étape dans l’installation ?

    merci d’avance pour ta réponse,
    a bientôt
    Ben

  47. Kenji says:

    Bonjour,

    Je suis allez faire un tour sur votre site.
    Le problème vient sans doute de la protection du répertoire conversions sous yaacc. Il doit être librement accessible sans quoi le plugin ne fonctionne pas.

  48. benjamin says:

    @Kenji. Exact !
    Merci beaucoup. On va vous faire un petit “remerciement” public ;-)

    Benjamin

  49. Leigh says:

    Hi KEnji

    I like your plugin.

    I am having a problem, it is setup and works BUT it is affecting my background and header from loading properly. I am using the most recent WP upgrade. Could you please advise.

    Thank you.

  50. Nick Wilsdon says:

    Hi Kenji,

    I’m finding an error on the latest 2.7.1, when you go to the widget config you get the following error at the top of the settings box.

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/owner/public_html/wp-content/plugins/yaacc/yaacc.php on line 133

    YAACC V.1.1: settings

    The widget is not showing on the page, even after the values are put in. Any ideas? Thanks!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>