![]() |
How do I get a comma in my forum stats?
I want a comma to be used in my stats like instead of showing:
Registered Members: 1059 I want it to show: Registered Members: 1,059 But I also want it to work with Total Posts, and Total Threads. Can somebody help me? This seems simple enough, but I can't figure it out. :( Any help would be appreciated. Thanks. |
Any time a variable is being set up for output, you can format it using the PHP function number_format($var). I have a hack in the works that does this in a number of places on the site.
For example, suppose (and this is not real vBulletin code) that the total members are stored in $totalmembers. You would add a line to the code somewhere that looks like: PHP Code:
In other words, code like this would work: PHP Code:
PHP Code:
|
That just prints out the code that I added. It doesn't do it and then print the outcome it prints the actual
PHP Code:
|
I need this too...
Please help |
All times are GMT. The time now is 04:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|