Modified the names of the variables that are assigned in the statistics block in order to prevent overwriting already existing ones when using the Portalview MOD
This commit is contained in:
@@ -118,22 +118,22 @@ class portal_statistics_module
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'S_DISPLAY_ADVANCED_STAT' => true,
|
||||
'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),
|
||||
'NEWEST_USER' => sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
|
||||
'S_ANN' => $topics_count[POST_ANNOUNCE],
|
||||
'S_SCT' => $topics_count[POST_STICKY],
|
||||
'S_TOT_ATTACH' => ($config['allow_attachments']) ? $total_files : 0,
|
||||
'S_DISPLAY_ADVANCED_STAT' => true,
|
||||
'B3_TOTAL_POSTS' => sprintf($user->lang[$l_total_post_s], $total_posts),
|
||||
'B3_TOTAL_TOPICS' => sprintf($user->lang[$l_total_topic_s], $total_topics),
|
||||
'B3_TOTAL_USERS' => sprintf($user->lang[$l_total_user_s], $total_users),
|
||||
'B3_NEWEST_USER' => sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
|
||||
'B3_ANNOUNCE_COUNT' => $topics_count[POST_ANNOUNCE],
|
||||
'B3_STICKY_COUNT' => $topics_count[POST_STICKY],
|
||||
'B3_TOTAL_ATTACH' => ($config['allow_attachments']) ? $total_files : 0,
|
||||
|
||||
// avarage stat
|
||||
'TOPICS_PER_DAY' => sprintf($user->lang[$l_topics_per_day_s], $topics_per_day),
|
||||
'POSTS_PER_DAY' => sprintf($user->lang[$l_posts_per_day_s], $posts_per_day),
|
||||
'USERS_PER_DAY' => sprintf($user->lang[$l_users_per_day_s], $users_per_day),
|
||||
'TOPICS_PER_USER' => sprintf($user->lang[$l_topics_per_user_s], $topics_per_user),
|
||||
'POSTS_PER_USER' => sprintf($user->lang[$l_posts_per_user_s], $posts_per_user),
|
||||
'POSTS_PER_TOPIC' => sprintf($user->lang[$l_posts_per_topic_s], $posts_per_topic),
|
||||
// average stat
|
||||
'B3_TOPICS_PER_DAY' => sprintf($user->lang[$l_topics_per_day_s], $topics_per_day),
|
||||
'B3_POSTS_PER_DAY' => sprintf($user->lang[$l_posts_per_day_s], $posts_per_day),
|
||||
'B3_USERS_PER_DAY' => sprintf($user->lang[$l_users_per_day_s], $users_per_day),
|
||||
'B3_TOPICS_PER_USER' => sprintf($user->lang[$l_topics_per_user_s], $topics_per_user),
|
||||
'B3_POSTS_PER_USER' => sprintf($user->lang[$l_posts_per_user_s], $posts_per_user),
|
||||
'B3_POSTS_PER_TOPIC' => sprintf($user->lang[$l_posts_per_topic_s], $posts_per_topic),
|
||||
));
|
||||
return 'statistics_side.html';
|
||||
}
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
<!--version $Id$ //-->
|
||||
{$LR_BLOCK_H_L}<!-- IF $S_BLOCK_ICON --><img src="{$IMAGE_SRC}" width="16" height="16" alt="" /> <!-- ENDIF -->{L_STATISTICS}{$LR_BLOCK_H_R}
|
||||
<strong>{L_ST_TOP}</strong><br />
|
||||
{TOTAL_POSTS}<br />
|
||||
{TOTAL_TOPICS}<br />
|
||||
{L_ST_TOP_ANNS} <strong>{S_ANN}</strong><br />
|
||||
{L_ST_TOP_STICKYS} <strong>{S_SCT}</strong><br />
|
||||
{L_ST_TOT_ATTACH} <strong>{S_TOT_ATTACH}</strong><br />
|
||||
{B3_TOTAL_POSTS}<br />
|
||||
{B3_TOTAL_TOPICS}<br />
|
||||
{L_ST_TOP_ANNS} <strong>{B3_ANNOUNCE_COUNT}</strong><br />
|
||||
{L_ST_TOP_STICKYS} <strong>{B3_STICKY_COUNT}</strong><br />
|
||||
{L_ST_TOT_ATTACH} <strong>{B3_TOTAL_ATTACH}</strong><br />
|
||||
|
||||
<hr class="dashed" />
|
||||
{TOPICS_PER_DAY}<br />
|
||||
{POSTS_PER_DAY}<br />
|
||||
{USERS_PER_DAY}<br />
|
||||
{TOPICS_PER_USER}<br />
|
||||
{POSTS_PER_USER}<br />
|
||||
{POSTS_PER_TOPIC}<br />
|
||||
{B3_TOPICS_PER_DAY}<br />
|
||||
{B3_POSTS_PER_DAY}<br />
|
||||
{B3_USERS_PER_DAY}<br />
|
||||
{B3_TOPICS_PER_USER}<br />
|
||||
{B3_POSTS_PER_USER}<br />
|
||||
{B3_POSTS_PER_TOPIC}<br />
|
||||
<hr class="dashed" />
|
||||
|
||||
{TOTAL_USERS}<br />
|
||||
{NEWEST_USER}
|
||||
{B3_TOTAL_USERS}<br />
|
||||
{B3_NEWEST_USER}
|
||||
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
|
||||
Reference in New Issue
Block a user