The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
|||
|
|||
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:
|
#3
|
||||
|
||||
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:
|
#4
|
|||
|
|||
I need this too...
Please help |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|