Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Currency Converter Module for CMPS Details »»
Currency Converter Module for CMPS
Version: 1.10, by Leo Brazil Leo Brazil is offline
Developer Last Online: Aug 2017 Show Printable Version Email this Page

Category: Major Additions - Version: 3.8.x Rating:
Released: 02-10-2009 Last Update: 08-31-2009 Installs: 14
Auto-Templates
Re-useable Code Translations  
No support by the author.

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

Download Now

File Type: xml currencyconverter-CMPSv1-1.xml (650 Bytes, 85 views)
File Type: zip Currency_Center.zip (1.7 KB, 43 views)

Screenshots

File Type: jpg currencyconverter.jpg (23.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-12-2009, 03:47 AM
Nadeemjp Nadeemjp is offline
 
Join Date: Aug 2008
Location: Japan
Posts: 601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i love it.
installed
very nice.
Reply With Quote
  #3  
Old 02-12-2009, 12:00 PM
zelnik zelnik is offline
 
Join Date: Aug 2008
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do you have any plans to convert this into a php or something so we don't need CMPS?
Reply With Quote
  #4  
Old 02-12-2009, 03:49 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zelnik View Post
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.
Reply With Quote
  #5  
Old 02-12-2009, 06:29 PM
Sunka Sunka is offline
 
Join Date: Mar 2008
Location: Croatia
Posts: 400
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 02-12-2009, 06:53 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 02-12-2009, 09:40 PM
zelnik zelnik is offline
 
Join Date: Aug 2008
Posts: 374
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leo Brazil View Post
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
Reply With Quote
  #8  
Old 02-13-2009, 08:22 AM
Sunka Sunka is offline
 
Join Date: Mar 2008
Location: Croatia
Posts: 400
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Leo Brazil View Post
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:
Reply With Quote
  #9  
Old 02-13-2009, 08:56 AM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zelnik View Post
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 View Post
Working....:up:
Thank you for your feedback Sunka. Just updated the file of first post. It's the same file you tested.
Reply With Quote
  #10  
Old 02-13-2009, 02:26 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just added some customization tips at first post, like how to change language, text color, default currecies to be showed, etc.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07036 seconds
  • Memory Usage 2,330KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete