The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Comma in Post Counts Causing trouble
I'm hoping somebody can help me with a problem I'm having. In my forum I included a comma in post counts so that instead of saying a post count of 50000 it would show up as 50,000. The problem is, is that sometimes it will not show the last digit so a post count of 50,000 would show up as 50,00 Can somebody help me fix this probem? Here are the instructions I used to get the comma in the post counts:
Code:
In admin/functions.php: Look for: code: //highlight words for search engine Add the following directly above it: code: if($post[posts] >= 1000) { $left = floor($post[posts] / 1000); $right = $post[posts] % 1000; $post[posts] = "$left".","."$right"; } Thanks in advance if somebody can help me. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|