2005-05-22, 06:12 PM
2005-05-22, 07:07 PM
Use number_format($number)
2005-05-23, 01:37 AM
Smethead Wrote:Use number_format($number)Where is that located? I can't find it.
2005-05-23, 07:18 AM
number_format is a PHP function.
You should change line 593 of inc/functions_post.php. Change
$post['message'] = postify($post['message'], $forum['allowhtml'], $forum['allowmycode'], $allowsmilies, $forum['allowimgcode']);
to
$post['message'] = postify(number_format($post['message']), $forum['allowhtml'], $forum['allowmycode'], $allowsmilies, $forum['allowimgcode']);
You might have to change line 585 too
from
echo nl2br(htmlspecialchars($post['message']))."<br/>";
to
echo nl2br(htmlspecialchars(number_format($post['message'])))."<br/>";
You should change line 593 of inc/functions_post.php. Change
$post['message'] = postify($post['message'], $forum['allowhtml'], $forum['allowmycode'], $allowsmilies, $forum['allowimgcode']);
to
$post['message'] = postify(number_format($post['message']), $forum['allowhtml'], $forum['allowmycode'], $allowsmilies, $forum['allowimgcode']);
You might have to change line 585 too
from
echo nl2br(htmlspecialchars($post['message']))."<br/>";
to
echo nl2br(htmlspecialchars(number_format($post['message'])))."<br/>";
2005-05-23, 10:53 PM
Okay, thanks.