The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How can I make post counts for members have commas if their count is over 1000 (so it looks like 1,000)?
|
#2
|
||||
|
||||
In functions.php, add this:
Code:
$post[posts]=number_format($post[posts]); Code:
$postsperday = sprintf("%.2f",($post[posts] / $jointime)); } I just hope you don't use $post[posts] in other hacks you may have in the getpostbit() function, because doing this will more than likely screw any other hacks using this number up. |
#3
|
||||
|
||||
Building on your modification, to solve any possible conflicts mentioned in your warning, could I just change this:
Code:
$post[posts]=number_format($post[posts]); Code:
$postcomma[posts]=number_format($post[posts]); |
#4
|
||||
|
||||
Code:
$post[postscomma]=number_format($post[posts]); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|