vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=274293

Currency exchange
by iogames
19 Nov 2011 15:53

Hi...

I placed a currency exchange by google to automatically check the exchange rate for the euro, everything works Ok, but I've been struggling to add an operation to the code...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I get the right exchange, but I need to discount 0.5 cents to the result, to match what TV and Newspapers rate, those 5 cents are banks fees...
in the operation '1' goes for the unit, and '2' for the decimals...

Any ideas? I've tried lots of variants...

kh99 19 Nov 2011 22:14

Do you want a 0.5 cent discount (half a cent) or 5 cents?

Assuming it's 0.5 cents, I think you want this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


LifesGreatestGift 20 Nov 2011 00:11

Nvm

iogames 20 Nov 2011 20:21

Thanks! [it was 0.05 btw]

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Last question, how can add a label/tag lets say:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thx!

kh99 20 Nov 2011 22:26

You mean you just want that word to print out after the amount? You could do this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.



All times are GMT. The time now is 09:04.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.