Working with tweaks
-
I’ve been tinkering with WorldCurrency to try to get it working again on my system. I have managed to get it mostly functional again. I had various problems along the way however.
1. I have jQuery loaded with “defer”. I had to make several changes to force the inline JS code from the plugin to run after jQuery is loaded. I used the example from https://stackoverflow.com/a/7486344 to wrap all of the WorldCurrency JavaScript (approx lines 130 – 200)
2. I use https, and there is an option to support this. But a coding error in the plugin means it tries to access httpss with an extra S. This is easily fixed by adding some colons to the php replace function in worldcurrency.php (lines 121 and 123)
After I had done the above (and ticked “jQuery no conflict”, “”Always include the script” and “Ajax over SSL” in the plugin options page) I was able to get the plugin to work, with historical rates.
I’m now working on fixing non-historical rates.
- The topic ‘Working with tweaks’ is closed to new replies.