MyBB-Plugins Forums

Full Version: NewPoints 1.9.9
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I understand you correctly? You mean you can not do uprade beta to final release?
@Minnemann yeap you can't

Those who had downloaded already, re-download please and re-upload.
Deactivate Bank 1.1 (1.0 for those who haven't downloaded yet) and Activate it back. (Deactivate is not Uninstall!) Do this to fix the bank issue.
(06-02-2010, 02:57 AM)Pirata Nervo Wrote: [ -> ]@Minnemann yeap you can't

Those who had downloaded already, re-download please and re-upload.
Deactivate Bank 1.1 (1.0 for those who haven't downloaded yet) and Activate it back. (Deactivate is not Uninstall!) Do this to fix the bank issue.
Is this procedure necesarry if I don't use Bank system at all, because I've already upgraded Newpoints and I don't even need upgrade for Bank, so basicly I'm asking if this new update is only for the bank? Tongue

Hope you get it xD
If you don't have the bank installed you can skip that Smile
Thanks for the new updates PN.
Sorry to bug you, but this issue is important to make Newpoints easier for end-users.
Usability issue:
The bank could use regular expressions on the input form, to strip out the prefix/sufix & commas:

End-user = Copy/paste number -->
$1,499.00
Withdraw = 0

8,500
Withdraw = 8

1,498.00
Withdraw = 1

My$1,998,500.00
Withdraw= 0

1,998,500.00
Withdraw = 1

The proper number formatting is a big improvement, but the commas cause problems if people use them.
Thank you.
Using regular expressions would be stupid because commas and points may vary from region to region.
It will stay as it is right now, with round()
Usability is very important, sorry you think my effort was stupid. Have a nice day anyway. Smile
(06-11-2010, 03:19 AM)Seeker Wrote: [ -> ]Usability is very important, sorry you think my effort was stupid. Have a nice day anyway. Smile

I guess I've explained why in PM
Pirata Nervo Wrote:[quote=Seeker]
Removing every comma and points would make 9,003.005 90003005

Good point, will this help?
((example 'code' version Alpha 0.01))
PHP Code:
switch ($decimal_setting) {
    case 
0 decimals
      
//  ..regex does cool stuff here..
        
echo "Now people can copy / paste the number or type in any format";
        break;
    case 
1 decimal:
      
//  ..regex does more cool stuff here..
        
echo "Now people can copy / paste the number...";
        break;
    case 
2 decimals:
      
//  ..regex ...
        
echo "Now people can still copy / paste the number or type in any format";
        break;
    case 
3 decimals:
      
//  ..regex lives on... 
        
echo "Now more people can copy / paste the number...";
        break;
    case 
4 decimals:
      
//  ..regex lives on still...
        
echo "Now people can copy / paste the number";
        break;
    case 
5 decimals:
        echo 
"5 decimals: What country do you live in!?";
        break;


Regex can fix any possible format
$1,499.00
8,500My$
1,498.0034
My$1,998,500.00
1,998,500.00My$

Maybe you need just two sets of switch statements one for each possible number of places after the decimal (like above)
...and then switch statements for prefix / suffix setting --> adjustments based on that setting

Usability is really important on the Net, and this can be done, IMO.