p.s. my wordpress is in a subdirectory, if that is an issue …
Now, it is working again … it might be tought to debug, as it works sometimes, and sometimes doesn’t.
Maybe it is the call to the getting of yahoo rates or yahoo has a problem ?
Hi Astrasuite,
Yep, it’s going to be hard to debug because sometimes it can find the get_from_yahoo function, but other times it can’t. I’ll look into it over the next day or two.
Thanks for your patience.
Cheers,
Stephen
Hi,
I should be the one thanking you, at least you are still looking into it 🙂
Hi Astrasuite,
I’ve had a quick look at WorldCurrency and the author has actually converted it to use the Ajax API. I’m guessing that’s why it’s working, though its hard to know for sure. So that may be the solution, but it will take me a while to implement that.
In the meantime, I can give you a modified getexchangerate.php that doesn’t load WordPress or do any of the more advanced stuff – like caching the exchange rates locally, allowing frozen exchange rates (as at the post date as opposed to todays rates). It basically just talks to Yahoo and gets the rate and returns it. Let me know your email address if you want to do that (maybe through my contact form at http://scratch99.com/contact).
If it works and you keep it in place, then you need to be aware that it will be overwritten with the next update and you may need to copy it back in (unless the next update actually fixes the problem!).
Cheers,
Stephen
We are approaching perfection.. Now everything work great.
just a detail replace VEB for VEF.
Hi Groupemedia,
Good to hear.
Just to make sure: we need to remove Venezuelan bolívar (VEB) and replace it with Venezuelan bolívar fuerte (VEF). Is that right? That should only take a few days to sort out – probably early next week.
Cheers,
Stephen
I am trying on my web server page. I am at a customer office and it does not work and I can’t even change the currency with the scroll down.. would that be because of firewall setting?
Hi Groupemedia,
It looks to me like it’s a problem in the HTML (except in the first row). Chrome and Firefox go ahead and render properly and work, but IE8 and IE9 fall over and die.
From the second row down, the HTML in the Price column looks like this:
<div<span id="localcurrency8-1"> GBP£124.85</div<span>
Note the extra <div
at the front and the extra </div
near the end.
Like I said, Chrome and Firefox go ahead and render it properly, even though it’s not valid HTML, but IE can’t cope with it.
If you fix this up (in each row), it should work properly.
Cheers,
Stephen