mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Num posted articles/topics update
git-svn-id: file:///svn/phpbb/trunk@3028 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
bb20ba7235
commit
f0da525e44
1 changed files with 15 additions and 0 deletions
|
@ -64,6 +64,8 @@ $mark_topics = (isset($_COOKIE[$config['cookie_name'] . '_t'])) ? unserialize(st
|
||||||
$mark_forums = (isset($_COOKIE[$config['cookie_name'] . '_f'])) ? unserialize(stripslashes($_COOKIE[$config['cookie_name'] . '_f'])) : array();
|
$mark_forums = (isset($_COOKIE[$config['cookie_name'] . '_f'])) ? unserialize(stripslashes($_COOKIE[$config['cookie_name'] . '_f'])) : array();
|
||||||
|
|
||||||
// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
|
// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
|
||||||
|
$total_posts = $config['num_posts'];
|
||||||
|
$total_topics = $config['num_topics'];
|
||||||
$total_users = $config['num_users'];
|
$total_users = $config['num_users'];
|
||||||
$newest_user = $config['newest_username'];
|
$newest_user = $config['newest_username'];
|
||||||
$newest_uid = $config['newest_user_id'];
|
$newest_uid = $config['newest_user_id'];
|
||||||
|
@ -97,6 +99,19 @@ else
|
||||||
$l_total_post_s = $user->lang['Posted_articles_total'];
|
$l_total_post_s = $user->lang['Posted_articles_total'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($total_topics == 0)
|
||||||
|
{
|
||||||
|
$l_total_topic_s = $user->lang['Posted_topics_zero_total'];
|
||||||
|
}
|
||||||
|
else if ($total_topics == 1)
|
||||||
|
{
|
||||||
|
$l_total_topic_s = $user->lang['Posted_topic_total'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$l_total_topic_s = $user->lang['Posted_topics_total'];
|
||||||
|
}
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
|
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
|
||||||
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
|
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
|
||||||
|
|
Loading…
Add table
Reference in a new issue