The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How do I add commas in the # of threads and posts?
On the index page of my forum where it shows the threads and the posts in each forum, I would like to have a comma in the numbers every three spaces you know.
I know that it uses the "number_format" command, but I don't know where I need to add it. I would also like to add it so that inside each forum the few threads that get over 1000 views or replies have the commas in them as well. Can somebody help me with this? It seems pretty simple, but I can't find out where I need to add the "number_format" command? |
#2
|
||||
|
||||
in index.php for example it would be before this line:
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
How about for the Subscribed Threads listing in the user cp? I tried the number format for both usercp.php and member2.php and it didn't work.
|
#4
|
||||
|
||||
boofo i think in usercp.php#
this line: PHP Code:
PHP Code:
|
#5
|
|||
|
|||
Xenon the first change works on forumhomes reply count but not thread count, how would I do the threads the same?
|
#6
|
||||
|
||||
Quote:
How do I add commas to the numbers for the forumdisplaybit, though? I checked the forumdisplay.php and I see nowhere to add the number_format variable. |
#7
|
||||
|
||||
Quote:
PHP Code:
|
#8
|
|||
|
|||
Thanks
|
#9
|
||||
|
||||
Hey Xenon,
it worked part way. I'm still trying to get it so that in the actual forum though, where a have a few threads of 1000+ replies or views. I would like those to have the commas as well. Do you know how to add it to those? I tried doing the same thing that I did with the index.php with the forumdisplay.php, but is all that did was add the commas to the same forums when you click on the catagory title in the index page of the forum. Did that make sense? |
#10
|
||||
|
||||
hmm, didn't understand everything but i think you just wanted to know where to put what in forumdisplay.php right?
before this line: PHP Code:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|