vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Major Additions - Currency Converter Module for CMPS (https://vborg.vbsupport.ru/showthread.php?t=205038)

Leo Brazil 02-10-2009 10:00 PM

Currency Converter Module for CMPS
 
1 Attachment(s)
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 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

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/convert...-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

Code:

<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/convert...-converter.php

Example for Turkish Language:

Code:

<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) 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

Quote:

Originally Posted by zelnik (Post 1741822)
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

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

Quote:

Originally Posted by Leo Brazil (Post 1742012)
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

Quote:

Originally Posted by Leo Brazil (Post 1742186)
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

Quote:

Originally Posted by zelnik (Post 1742298)
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.

Quote:

Originally Posted by Sunka (Post 1742669)
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.


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01274 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete