Page 1 of 1

Formatting Statistics on Index

Posted: 04 Mar 2010, 22:08
by Post Bot
Formatting Statistics on Index
Written by Simon

Format your statistics on index like here.
Image

Instructions:

Open index.php
Find:

Code: Select all

'TOTAL_POSTS'   => sprintf($user->lang[$l_total_post_s], $total_posts),
   'TOTAL_TOPICS'   => sprintf($user->lang[$l_total_topic_s], $total_topics),
   'TOTAL_USERS'   => sprintf($user->lang[$l_total_user_s], $total_users),
Replace with:

Code: Select all

'TOTAL_POSTS'    => sprintf($user->lang[$l_total_post_s], number_format($total_posts, 0, ',', '.')),
    'TOTAL_TOPICS'    => sprintf($user->lang[$l_total_topic_s], number_format($total_topics, 0, ',', '.')),
    'TOTAL_USERS'    => sprintf($user->lang[$l_total_user_s], number_format($total_users, 0, ',', '.')),
Open language/en/common.php
Find:

Code: Select all

'TOTAL_POSTS_OTHER'	=> 'Total posts <strong>%d</strong>',
Replace with:

Code: Select all

'TOTAL_POSTS_OTHER'	=> 'Total posts <strong>%s</strong>',
Find:

Code: Select all

'TOTAL_TOPICS_OTHER'=> 'Total topics <strong>%d</strong>',
Replace with:

Code: Select all

'TOTAL_TOPICS_OTHER'=> 'Total topics <strong>%s</strong>',
Find:

Code: Select all

'TOTAL_USERS_OTHER'	=> 'Total members <strong>%d</strong>',
Replace with:

Code: Select all

'TOTAL_USERS_OTHER'	=> 'Total members <strong>%s</strong>',