PDA

View Full Version : Major Additions - Currency Converter Module for CMPS


Leo Brazil
02-10-2009, 10:00 PM
This is my first add on and I'm not a coder actually. Just get together a few pieces around and came up with this.

What does it do ? Adds a currency converter module to your vBAdvanced CMPS page and you can convert most world wide currencies each other.

NEW: Also, if you don't have vBAdvanced you can use the external page version

The script was supplied from www.gocurrency.com (http://www.gocurrency.com) and they updated all rates every day, so you don't need to worry about global economy late up and downs.

Requirements: You must have CMPS installed - www.vbadvanced.com (http://www.vbadvanced.com)

Installation vBA: Just upload the attached: AdminCP < vBA CMPS < Download / Upload Module

Select the position on CMPS you want despite it'll look better in right or left position due the script.

That's it, enjoy !!!

This was tested on 3.8.0 and vBadvanced CMPS v3.1.0

Screenshot Attached.

But it's going to work on older versions as well.

Customization Tips:

Despite of the Currency Coverter itself is an external content (gocurrency.com), you don't have too much control over it but serching a little deep further inside their website, I found out you really can have a few options of customizations.

Check at: http://www.gocurrency.com/v2/converter/custom-currency-converter.php

- You can change the language for Spanish, French, German and even Turkish.

- Select the text color.

- You also can chose what primary currecies will be always showed as base and target currencies, so if most of your users just want to convert Euros to Dollars (e.g.) you can select this as default for your module.

Go ahead and click "Built" and after that "Activate"

Copy the script given to you.

You will need to edit the template for this module.

Find on your template: adv_portal_currency

<a href=http://www.gocurrency.com/ id=gocurrency>Currency Converter</a> <script src= http://www.gocurrency.com/v2/gocurrcalc_t.php?id=53> </script>

and replace it by your customized script you got from http://www.gocurrency.com/v2/converter/custom-currency-converter.php

Example for Turkish Language:

<a id=gocurrency href=http://www.gocurrency.com/ >Currency Converter</a><script src= http://www.gocurrency.com/v2/gocurrcalc_t.php?lang=tr&id=45925&tcolor=000000&amt=1&len=25&nw=1 ></script>


NEW !! - Installation External Page:

Download Currency_Center.zip file.
There to files in it.
Upload currency.php to your forums folder through FTP.
Upload product-currency.xml file using: AdminCP < Product Management < Upload Product

The external page will be http://www.yoursite.com/forums/currency.php

Enjoy.

I had this idea inspired at Vaupell mod (Unitconversion 1 (https://vborg.vbsupport.ru/showthread.php?t=204954)) after one request from Pehchaan, so thanks to them.

Update log:

Version 1.0 CMPS- First Release
Version 1.1 CMPS- Fix bug to use on left side position of the page.
Version 1.0 External Page - First Release

Nadeemjp
02-12-2009, 03:47 AM
i love it.
installed:)
very nice.

zelnik
02-12-2009, 12:00 PM
do you have any plans to convert this into a php or something so we don't need CMPS?

Leo Brazil
02-12-2009, 03:49 PM
do you have any plans to convert this into a php or something so we don't need CMPS?

zelnik, it can be done, like the mod I mentioned on the release post of this one - Unitconversion1 (https://vborg.vbsupport.ru/showthread.php?t=204954)

If Vaupell make the units to be inserted by adminCP, you can make the conversion table by your self.

But the problem in converting currencies is they need to be updated everyday and nowadays there are more them 48 currencies economically reliable so every day you must get updated rates from an economics/financial institute like a bank or something and manually update them. It's a lot of job.
All I did was getting something ready do go from a website like that and make a shape for CMPS.

I agree that external contents are not reliable sometimes but I choose a good source for it. Also, for non-English boards (like myself) this is a pain because there's no way to translate the module, only the title on CMPS - Edit Module page.

But if people here have suggestions from other financial websites that has better formats or scripts for that, I can make some changes and do the same thing I did for this one, no problem.

Also, if someone find a website that has a good script for the same purpose but in a good horizontal format I can make a version for your forum home, footer, navbar or any place you want at vB.

The idea is using an script from a financial website was really get free from need to update rates everyday and let this job for them.

Sunka
02-12-2009, 06:29 PM
Working good...only problem is when I put it on left side, then all modules overrached (is that correct word?) through all screen (no more left, center or right side).

When it is on right side, then it is OK

Leo Brazil
02-12-2009, 06:53 PM
Sorry, I only tested on right side and my board is little bit oversized at right.

Try this file, if you confirm this works I'll upgraded.

Edit: File was updated on the first post.

zelnik
02-12-2009, 09:40 PM
But if people here have suggestions from other financial websites that has better formats or scripts for that, I can make some changes and do the same thing I did for this one, no problem.

Also, if someone find a website that has a good script for the same purpose but in a good horizontal format I can make a version for your forum home, footer, navbar or any place you want at vB.

Have a look on here www.xe.com

Sunka
02-13-2009, 08:22 AM
Sorry, I only tested on right side and my board is little bit oversized at right.

Try this file, if you confirm this works I'll upgraded.

Working....:up:

Leo Brazil
02-13-2009, 08:56 AM
Have a look on here www.xe.com

I've just took a look on it. Their converter looks pretty good and it could be easy to customize, I mean like using ALT parameters to match its colors to your forum and the size would be great for forum home.
The real problem with this one is when you use it their converter the results can be only get is a popup page, kind of annoying.

You can remove the popup sinning up to their premium version but there is an annual fee of $540 (USD), in my opinion pretty much expensive for this service.

For this fee I would update currencies manually everyday....lol...

Thanks anyway and we can't give up to find a good a fair option for our application.

Working....:up:

Thank you for your feedback Sunka. Just updated the file of first post. It's the same file you tested.

Leo Brazil
02-13-2009, 02:26 PM
Just added some customization tips at first post, like how to change language, text color, default currecies to be showed, etc.

RedHacker
06-09-2009, 04:41 AM
I can't show anymore this module in CMPS..!!!Why.....?

MoveOver.cc
06-09-2009, 06:15 AM
I only get the link to the website, not the actual module. Any ideas ???

Leo Brazil
06-09-2009, 07:55 PM
Hi guys,

I've been checking about this all day and it seems the issue is not with the module it self but with the external content that comes from www.gocurrency.com (http://www.gocurrency.com) that are under Error 500 (lack of memory or something with their server) and that's the reason why.

Unfortunatelly we have to wait for them to fix it. I already sent them an e-mail informing (pushing) them to fix this issue. If you wanna help send them e-mail as well.

Anyway, you don't need to do anything with your CMPS module, as soon gocurrency is back with their service, module will come back normally.

Mesohu
07-11-2009, 10:29 PM
Any chance to create it with XE.com Exchange Tool, 'coz it more completed than gocurrency.

Thanks

Leo Brazil
07-11-2009, 10:51 PM
Mesohu, I already considered XE.com but their converter, ate least the free version only opens in a anoying popup window. I'm sure nobody likes those popups.
To remove the popup from XE you have to subscribe for a year fee of USD540.00.
So, Gocurrency is not the best we can get for sure, but still the best free one and get a customization options.

I always search through the web trying to find other good options but nothing better than this so far. If someone can give a clue about another one, free, no popups, I can do it for sure.

Mesohu
07-12-2009, 09:18 AM
Ok, do you have tried to contact with XE and to explain to them that's this is for a free project?

Thanks anyway for your work.

Leo Brazil
07-13-2009, 08:14 PM
Mesohu, I really tried to send them an e-mail but as they sell it as a service and not cheap (U$540/year) they are really not interested.

Leo Brazil
09-01-2009, 05:51 PM
do you have any plans to convert this into a php or something so we don't need CMPS?

Just added an option to use a external page for this using your forum desing.

Just follow instructions I've just added at first post. 1 minute and it's done. External page and no need for vBAdvanced.

Besides Currency Converter I've included a Currency Chart at the same page.

I hope you like it.

And please Click Installed!