Bug vBA Total Point Precision needs to be formatted

Status
Not open for further replies.

Trekkan

Customer
The total points are at about a 10 point precision (I think it's a double). I don't even use tenth's myself so it should be rounded I think... anyway, you'll know what to do to fix it. heh
 
Where exactly is it still showing more than 2 decimals? It's not possible to simply fix it in one area, so I need more details.
 
This is in the hover mod, so when you hover someone's nickname on the list there where it displays the vBA point total.
 
This is in the hover mod, so when you hover someone's nickname on the list there where it displays the vBA point total.

I just uploaded a hotfix to bring it down to 2 places. You can download the package and just swap the files, no need to reimport the xml file.

If you want it to be rounded so there is no decimal you can open dbtech/profilehover/hooks/ajax_start.php

On line 93 change

Code:
            $user['dbtech_vbactivity_points'] = @number_format($user['dbtech_vbactivity_points'], 2, $vbulletin->userinfo[lang_decimalsep], '');
to

Code:
            $user['dbtech_vbactivity_points'] = @number_format($user['dbtech_vbactivity_points'], 0, $vbulletin->userinfo[lang_decimalsep], '');
On the next version I will have a vB setting that will let you select how many decimal spaces you want it to go to :)
 
Status
Not open for further replies.

Similar threads

  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
6
Views
6K
  • Locked
  • thread_type.dbtech_ecommerce_suggestion thread_type.dbtech_ecommerce_suggestion
Replies
2
Views
1K

Legacy Profile Hover

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
391
Customer rating
0.00 star(s) 0 ratings
Back
Top