Convertisseur de devises - Ajax widget pour WordPress
Je vous présente mon premier Widget pour WordPress: YAACC, un convertisseur de devises en Ajax ! Vous pouvez l’essayer dans la colonne de droite. Comme vous pouvez le constater, j’ai simplifié au maximum l’interface. Le widget est aussi optimisé au niveau des performances avec un système de cache intelligent ainsi qu’une compression du javascript et du css. Il dispose aussi d’options qui vous permettront de choisir les devises par défaut et le montant initial. Enfin, la liste des devises est facilement paramètrable depuis une liste complète des 177 devises mondiales.
Téléchargez YAACC
YAACC, le convertisseur de devises en Ajax (Widget pour WordPress).
Historique des versions
- 20080614: version 1.0: les devises sont maintenant dans un fichier à part pour faciliter les mises à jour, mise en cache intelligente, nettoyage du code, localisation et passage à une licence GPL.
- 20080614: version 1.0: currencies settings are now in a separate file to ease future upgrade, advanced caching, code cleaning, localisation and GPL license.
- 20080301: 0.9.4 corrige le problème du chemin codé en dur dans le css.
- 20080301: 0.9.3 titre, correction d’un bug mineur, vérification de la version et de la source.
- 20070922: 0.9.2 problème de mise en cache de ajax-working.gif.
- 20070909: 0.9.1 remplacement de l’image ajax-working.gif par son équivalent transparent.












Convertisseur de devises - Ajax widget pour WordPress…
- Vous aimez cet article ? Votez pour lui sur Blogmemes.fr !Un Widget en Ajax pour votre blog WordPress qui permet de convertir des devises. Facile à installer et à utiliser….
Rétrolien: 5 August 2007 — 11:06 | Lien permanent
Pratique ce petit outil
commentaire: 18 August 2007 — 8:10 | Lien permanent
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.
commentaire: 6 September 2007 — 23:38 | Lien permanent
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.
commentaire: 7 September 2007 — 9:55 | Lien permanent
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.
commentaire: 20 February 2008 — 17:31 | Lien permanent
Josh,
I am getting ready a version that will fix this problem.
Stay tuned.
commentaire: 26 February 2008 — 6:20 | Lien permanent
I actually figured out a way to do it.
commentaire: 28 February 2008 — 19:23 | Lien permanent
Je viens de mettre en ligne une nouvelle version de mon convertisseur de devises en Ajax pour Wordpress: Yet Another Ajax Currency Converter (YAACC 0.9.3).
Correction de l’option pour le titre du widget.
Ajout de la vérification du numéro de version et de la source.
Mise à jour requise: les anciennes versions de YAACC ne sont plus compatible avec le service web donnant les taux de conversions.
commentaire: 1 March 2008 — 6:42 | Lien permanent
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.
commentaire: 2 March 2008 — 23:10 | Lien permanent
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
commentaire: 30 April 2008 — 20:45 | Lien permanent
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?
commentaire: 1 May 2008 — 6:34 | Lien permanent
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
commentaire: 5 May 2008 — 8:52 | Lien permanent
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.
commentaire: 10 May 2008 — 7:13 | Lien permanent
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
commentaire: 11 May 2008 — 9:18 | Lien permanent
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…
commentaire: 18 May 2008 — 5:45 | Lien permanent
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
commentaire: 18 May 2008 — 10:14 | Lien permanent
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.
commentaire: 20 May 2008 — 4:39 | Lien permanent
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
commentaire: 20 May 2008 — 20:54 | Lien permanent
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
commentaire: 17 June 2008 — 17:43 | Lien permanent
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.
commentaire: 18 June 2008 — 6:08 | Lien permanent
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
commentaire: 18 June 2008 — 21:08 | Lien permanent
Thanks Tim,
I made the changes you proposed.
I will take a look at your theme tomorrow.
commentaire: 18 June 2008 — 21:53 | Lien permanent
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
commentaire: 6 July 2008 — 21:14 | Lien permanent
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
commentaire: 6 July 2008 — 21:49 | Lien permanent
Hi,
I am not sure of the circumstances leading to the bug you described.
Could you give me more details?
Thanks.
commentaire: 8 July 2008 — 5:53 | Lien permanent
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?
commentaire: 22 July 2008 — 22:00 | Lien permanent
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.
commentaire: 28 July 2008 — 5:42 | Lien permanent
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
commentaire: 2 August 2008 — 6:44 | Lien permanent
I am looking into it.
Check back for updates.
commentaire: 4 August 2008 — 5:41 | Lien permanent
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.
commentaire: 4 August 2008 — 6:23 | Lien permanent
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!
commentaire: 28 August 2008 — 11:50 | Lien permanent
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.
commentaire: 28 August 2008 — 21:13 | Lien permanent
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.
commentaire: 29 August 2008 — 4:35 | Lien permanent
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
commentaire: 30 August 2008 — 19:44 | Lien permanent
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.
commentaire: 30 August 2008 — 22:02 | Lien permanent
HI!..
Excellent plugin, but how can i activate it “manually”?
(without the widgets feature)
Thanx
Cristián
commentaire: 4 October 2008 — 5:19 | Lien permanent
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.
commentaire: 4 October 2008 — 5:27 | Lien permanent
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!…
commentaire: 4 October 2008 — 5:44 | Lien permanent
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
commentaire: 17 October 2008 — 7:19 | Lien permanent
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.
commentaire: 11 December 2008 — 16:19 | Lien permanent
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.
commentaire: 14 December 2008 — 4:35 | Lien permanent
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!
commentaire: 14 December 2008 — 18:43 | Lien permanent
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!
commentaire: 14 December 2008 — 18:44 | Lien permanent
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
commentaire: 26 December 2008 — 3:33 | Lien permanent
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).
commentaire: 22 January 2009 — 5:03 | Lien permanent
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
commentaire: 26 January 2009 — 20:48 | Lien permanent
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.
commentaire: 29 January 2009 — 6:16 | Lien permanent
@Kenji. Exact !
Merci beaucoup. On va vous faire un petit “remerciement” public
Benjamin
commentaire: 30 January 2009 — 1:45 | Lien permanent
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.
commentaire: 18 March 2009 — 15:05 | Lien permanent
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!
commentaire: 11 April 2009 — 21:13 | Lien permanent
Hi Kenji,
It appears that YAACC isn’t pulling the feed properly any more.
See your widget on the right-hand side.
The AJAX-working.gif keeps looping and the data feed doesn’t load.
Can you look into this?
Thanks for reading!
commentaire: 29 April 2009 — 3:28 | Lien permanent
Hi Kenji,
the YAACC tool doesn’t seems loading for awhile.. COuld you please advice
thank you
Regrads,
Ivay
commentaire: 5 May 2009 — 20:57 | Lien permanent
Hi,
Thanks for reporting the problem.
It turns out that the backend service I was using is down (domain temporarily parked). I will modify the endpoint connection if I can find an alternative solution that is also free. Or we can hope that the current service will be back in a few days.
You will not have to download/install a new version of the plugin.
Thanks for your patience.
commentaire: 6 May 2009 — 11:39 | Lien permanent
Hi Kenji,
Have you thought of parsing Yahoo’s data?
eg. http://download.finance.yahoo.com/d/quotes.csv?s=EURUSD=X&f=sl1d1t1ba&e=.csv
This example will grab the exchange rate from Yahoo, but it’s contained in a CSV.
Hope this helps.
commentaire: 7 May 2009 — 1:58 | Lien permanent