The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Can anyone plaese tell me what I am doing wrong in the following code that would cause larger boards with high post and thread counts to display these percentages really far off?
PHP Code:
15,300 Posts (15,300.00%) I have tried different variations of this and they all turn out the same. |
|
#2
|
||||
|
||||
|
Don't know if this'll work or not, but try dividing by a hundred (or 10 or 1000):
PHP Code:
|
|
#3
|
||||
|
||||
|
Thanks. Steve. I'll have someone with a large board test this and get back to you here with the results.
|
|
#4
|
||||
|
||||
|
Steve, do you know how to take the last 2 zeros after the decimal point off on a whole percent? Like if it is 50.00%, how would you make it so it showed up as 50%, but ONLY on whole percentages? If it is like 50.05%, I want that to show up.
|
|
#5
|
||||
|
||||
|
you could round it
|
|
#6
|
||||
|
||||
|
But that wouldn't leave it if it was 50.05%, would it?
|
|
#7
|
||||
|
||||
|
you could creat some kind if statement
|
|
#8
|
||||
|
||||
|
Any examples?
|
|
#9
|
||||
|
||||
|
Quote:
PHP Code:
|
|
#10
|
||||
|
||||
|
As long as it works, that's all that really counts. Thank you, sir.
![]() Would you have any ideas on the percentage problems for bigger boards? ) EDIT: How would I incorporate this with this code? PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|