The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
A request for number formatting
Similar to what we see in vB3. How would one go about applying numer_format to threadcount and replycount on forumhome, and replycount and views in forumdisplay.
It can't be all that tough to do. I played around a little myself and couldn't figure it out, but I'm no PHP guru by any means. And for those who may not be following my request, what I mean is to have numbers for the Numbers of posts, replies and views that currently appear like this in vB 2.x.x 100000 appear like this 100,000 |
#2
|
||||
|
||||
in your index.php you find this line:
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Thanks for pointing me in the right direction. The code I used was actually
Code:
// Number format hack $forum[threadcount]=number_format($forum[threadcount]); $forum[replycount]=number_format($forum[replycount]); // end number format hack |
#4
|
||||
|
||||
hmm, i've meant the same, just typed wrong
|
#5
|
||||
|
||||
Thanks again. And for anyone that wants to know how to do post counts and view counts, I just put the code
Code:
// Number format hack $thread[replycount]=number_format($thread[replycount]); $thread[views]=number_format($thread[views]); // end number format hack |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|