![]() |
How can I make post counts for members have commas if their count is over 1000 (so it looks like 1,000)?
|
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. |
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]); |
Code:
$post[postscomma]=number_format($post[posts]); |
All times are GMT. The time now is 10:06 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:
|