Titolo originale: Statistics on Index 1.0.0
Questa mod visualizza nel footer le statistiche e di conseguenza il progress del forum.
Apri: language/en/common.php
cerca:
Codice: Seleziona tutto
?>
Codice: Seleziona tutto
// Statistics on index
$lang = array_merge($lang, array(
'BOARD_VERSION' => 'PhpBB version',
'START_DATE' => 'We have been online since',
'POSTS_PER_DAY_OTHER' => 'Posts per day <strong>%.2f</strong>',
'POSTS_PER_DAY_ZERO' => 'Posts per day <strong>None</strong>',
'POSTS_PER_TOPIC_OTHER' => 'Posts per topic <strong>%.2f</strong>',
'POSTS_PER_YEAR_OTHER' => 'Posts per year <strong>%s</strong>',
'POSTS_PER_YEAR_ZERO' => 'Posts per year <strong>None</strong>',
'POSTS_PER_TOPIC_ZERO' => 'Posts per topic <strong>None</strong>',
'POSTS_PER_USER_OTHER' => 'Posts per member <strong>%.2f</strong>',
'POSTS_PER_USER_ZERO' => 'Posts per member <strong>None</strong>',
'TOPICS_PER_DAY_OTHER' => 'Topics per day <strong>%.2f</strong>',
'TOPICS_PER_DAY_ZERO' => 'Topics per day <strong>None</strong>',
'TOPICS_PER_YEAR_OTHER' => 'Topics per year <strong>%s</strong>',
'TOPICS_PER_YEAR_ZERO' => 'Topics per year <strong>None</strong>',
'TOPICS_PER_USER_OTHER' => 'Topics per member <strong>%.2f</strong>',
'TOPICS_PER_USER_ZERO' => 'Topics per member <strong>None</strong>',
'USERS_PER_DAY_OTHER' => 'Members per day <strong>%.2f</strong>',
'USERS_PER_DAY_ZERO' => 'Members per day <strong>None</strong>',
'USERS_PER_YEAR_OTHER' => 'Members per year <strong>%s</strong>',
'USERS_PER_YEAR_ZERO' => 'Members per year <strong>None</strong>',
'TOTAL_POSTS_OTHER' => 'Total posts <strong>%s</strong>',
'TOTAL_POSTS_ZERO' => 'Total posts <strong>0</strong>',
'TOTAL_TOPICS_OTHER' => 'Total topics <strong>%s</strong>',
'TOTAL_TOPICS_ZERO' => 'Total topics <strong>0</strong>',
'TOTAL_USERS_OTHER' => 'Total members <strong>%s</strong>',
'TOTAL_USERS_ZERO' => 'Total members <strong>0</strong>',
'TOTAL_FILES_OTHER' => 'Total attachments <strong>%s</strong>',
'TOTAL_FILES_ZERO' => 'Total attachments <strong>0</strong>',
'FILES_PER_DAY_OTHER' => 'Attachments per day <strong>%.2f</strong>',
'FILES_PER_DAY_ZERO' => 'Attachments per day <strong>None</strong>',
'FILES_PER_YEAR_OTHER' => 'Attachments per year <strong>%s</strong>',
'FILES_PER_YEAR_ZERO' => 'Attachments per year <strong>None</strong>',
'FILES_PER_USER_OTHER' => 'Attachments per member <strong>%.2f</strong>',
'FILES_PER_USER_ZERO' => 'Attachments per member <strong>None</strong>',
));
cerca:
Codice: Seleziona tutto
?>
Codice: Seleziona tutto
'BOARD_VERSION' => 'Versione di PhpBB',
'START_DATE' => 'Siamo online dal',
'POSTS_PER_DAY_OTHER' => 'Messaggi per giorno <strong>%.2f</strong>',
'POSTS_PER_DAY_ZERO' => 'Messaggi per giorno <strong>None</strong>',
'POSTS_PER_TOPIC_OTHER' => 'Messaggi per argomento <strong>%.2f</strong>',
'POSTS_PER_YEAR_OTHER' => 'Messaggi per anno <strong>%s</strong>',
'POSTS_PER_YEAR_ZERO' => 'Messaggi per anno <strong>None</strong>',
'POSTS_PER_TOPIC_ZERO' => 'Messaggi per argomento <strong>None</strong>',
'POSTS_PER_USER_OTHER' => 'Messaggi per iscritti <strong>%.2f</strong>',
'POSTS_PER_USER_ZERO' => 'Messaggi per iscritti <strong>None</strong>',
'TOPICS_PER_DAY_OTHER' => 'Argomenti per giorno <strong>%.2f</strong>',
'TOPICS_PER_DAY_ZERO' => 'Argomenti per giorno <strong>None</strong>',
'TOPICS_PER_YEAR_OTHER' => 'Argomenti per anno <strong>%s</strong>',
'TOPICS_PER_YEAR_ZERO' => 'Argomento per anno <strong>None</strong>',
'TOPICS_PER_USER_OTHER' => 'Argomenti per ogni iscritto <strong>%.2f</strong>',
'TOPICS_PER_USER_ZERO' => 'Argomenti per ogni iscritto <strong>None</strong>',
'USERS_PER_DAY_OTHER' => 'Iscritti al giorno <strong>%.2f</strong>',
'USERS_PER_DAY_ZERO' => 'Iscritti al giorno <strong>None</strong>',
'USERS_PER_YEAR_OTHER' => 'Iscritti per anno <strong>%s</strong>',
'USERS_PER_YEAR_ZERO' => 'Iscritti per anno <strong>None</strong>',
'TOTAL_POSTS_OTHER' => 'Totale messaggi <strong>%s</strong>',
'TOTAL_POSTS_ZERO' => 'Totale messaggi <strong>0</strong>',
'TOTAL_TOPICS_OTHER' => 'Totale argomenti <strong>%s</strong>',
'TOTAL_TOPICS_ZERO' => 'Totale argomenti <strong>0</strong>',
'TOTAL_USERS_OTHER' => 'Totale iscritti <strong>%s</strong>',
'TOTAL_USERS_ZERO' => 'Totale iscritti <strong>0</strong>',
'TOTAL_FILES_OTHER' => 'Totale allegati <strong>%s</strong>',
'TOTAL_FILES_ZERO' => 'Totale allegati <strong>0</strong>',
'FILES_PER_DAY_OTHER' => 'Allegati per giorno <strong>%.2f</strong>',
'FILES_PER_DAY_ZERO' => 'Allegati per giorno <strong>None</strong>',
'FILES_PER_YEAR_OTHER' => 'Allegati per anno <strong>%s</strong>',
'FILES_PER_YEAR_ZERO' => 'Allegati per anno <strong>None</strong>',
'FILES_PER_USER_OTHER' => 'Allegati per iscritto <strong>%.2f</strong>',
'FILES_PER_USER_ZERO' => 'Allegati per iscritto <strong>None</strong>',
));
trova:
Codice: Seleziona tutto
$total_users = $config['num_users'];
Codice: Seleziona tutto
$total_files = $config['num_files'];
$start_date = date("d M Y, H:i:s", $config['board_startdate'] );
$boarddays = ceil((time() - $config['board_startdate']) / 86400);
$version = $config['version'];
Codice: Seleziona tutto
$l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OTHER';
Codice: Seleziona tutto
$l_total_file_s = ($total_files == 0) ? 'TOTAL_FILES_ZERO' : 'TOTAL_FILES_OTHER';
$posts_per_day = $total_posts / $boarddays;
$l_posts_per_day_s = ($posts_per_day == 0) ? 'POSTS_PER_DAY_ZERO' : 'POSTS_PER_DAY_OTHER';
$posts_per_year = $posts_per_day * 364.25;
$l_posts_per_year_s = ($posts_per_year == 0) ? 'POSTS_PER_YEAR_ZERO' : 'POSTS_PER_YEAR_OTHER';
$posts_per_user = $total_posts / $total_users;
$l_posts_per_user_s = ($posts_per_user == 0) ? 'POSTS_PER_USER_ZERO' : 'POSTS_PER_USER_OTHER';
$posts_per_topic = $total_posts / $total_topics;
$l_posts_per_topic_s = ($posts_per_topic == 0) ? 'POSTS_PER_TOPIC_ZERO' : 'POSTS_PER_TOPIC_OTHER';
$topics_per_day = $total_topics / $boarddays;
$l_topics_per_day_s = ($topics_per_day == 0) ? 'TOPICS_PER_DAY_ZERO' : 'TOPICS_PER_DAY_OTHER';
$topics_per_year = $topics_per_day * 365;
$l_topics_per_year_s = ($topics_per_year == 0) ? 'TOPICS_PER_YEAR_ZERO' : 'TOPICS_PER_YEAR_OTHER';
$topics_per_user = $total_topics / $total_users;
$l_topics_per_user_s = ($topics_per_user == 0) ? 'TOPICS_PER_USER_ZERO' : 'TOPICS_PER_USER_OTHER';
$files_per_day = $total_files / $boarddays;
$l_files_per_day_s = ($files_per_day == 0) ? 'FILES_PER_DAY_ZERO' : 'FILES_PER_DAY_OTHER';
$files_per_year = $files_per_day * 365;
$l_files_per_year_s = ($files_per_year == 0) ? 'FILES_PER_YEAR_ZERO' : 'FILES_PER_YEAR_OTHER';
$files_per_user = $total_files / $total_users;
$l_files_per_user_s = ($files_per_day == 0) ? 'FILES_PER_USER_ZERO' : 'FILES_PER_USER_OTHER';
$users_per_day = $total_users / $boarddays;
$l_users_per_day_s = ($users_per_day == 0) ? 'USERS_PER_DAY_ZERO' : 'USERS_PER_DAY_OTHER';
$users_per_year = $users_per_day * 365;
$l_users_per_year_s = ($users_per_year == 0) ? 'USERS_PER_YEAR_ZERO' : 'USERS_PER_YEAR_OTHER';
Codice: Seleziona tutto
'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),
Codice: Seleziona tutto
'TOTAL_POSTS' => sprintf($user->lang[$l_total_post_s], number_format($total_posts, 0, ',', ',')),
'POSTS_PER_DAY' => str_replace('.', '.', sprintf($user->lang[$l_posts_per_day_s], $posts_per_day)),
'POSTS_PER_YEAR' => sprintf($user->lang[$l_posts_per_year_s], number_format($posts_per_year, 0, ',', ',')),
'POSTS_PER_TOPIC' => str_replace('.', '.', sprintf($user->lang[$l_posts_per_topic_s], $posts_per_topic)),
'POSTS_PER_USER' => str_replace('.', '.', sprintf($user->lang[$l_posts_per_user_s], $posts_per_user)),
'TOTAL_TOPICS' => sprintf($user->lang[$l_total_topic_s], number_format($total_topics, 0, ',', ',')),
'TOPICS_PER_DAY' => str_replace('.', '.', sprintf($user->lang[$l_topics_per_day_s], $topics_per_day)),
'TOPICS_PER_YEAR' => sprintf($user->lang[$l_topics_per_year_s], number_format($topics_per_year, 0, ',', ',')),
'TOPICS_PER_USER' => str_replace('.', '.', sprintf($user->lang[$l_topics_per_user_s], $topics_per_user)),
'TOTAL_FILES' => sprintf($user->lang[$l_total_file_s], number_format($total_files, 0, ',', ',')),
'FILES_PER_DAY' => str_replace('.', '.', sprintf($user->lang[$l_files_per_day_s], $files_per_day)),
'FILES_PER_YEAR' => sprintf($user->lang[$l_files_per_year_s], number_format($files_per_year, 0, ',', ',')),
'FILES_PER_USER' => str_replace('.', '.', sprintf($user->lang[$l_files_per_user_s], $files_per_user)),
'TOTAL_USERS' => sprintf($user->lang[$l_total_user_s], number_format($total_users, 0, ',', ',')),
'USERS_PER_DAY' => str_replace('.', '.', sprintf($user->lang[$l_users_per_day_s], $users_per_day)),
'USERS_PER_YEAR' => sprintf($user->lang[$l_users_per_year_s], number_format($users_per_year, 0, ',', ',')),
'START_DATE' => $start_date,
'VERSION' => $version,
trova:
Codice: Seleziona tutto
<p>{TOTAL_POSTS} • {TOTAL_TOPICS} • {TOTAL_USERS} • {NEWEST_USER}</p>
Codice: Seleziona tutto
<p>{TOTAL_POSTS} • {POSTS_PER_YEAR} • {POSTS_PER_DAY} • {POSTS_PER_TOPIC} • {POSTS_PER_USER}<br />
{TOTAL_TOPICS} • {TOPICS_PER_YEAR} • {TOPICS_PER_DAY} • {TOPICS_PER_USER}<br />
{TOTAL_FILES} • {FILES_PER_YEAR} • {FILES_PER_DAY} • {FILES_PER_USER}<br />
{TOTAL_USERS} • {USERS_PER_YEAR} • {USERS_PER_DAY} • {NEWEST_USER}<br />
{L_START_DATE} <strong>{START_DATE}</strong><br />
{L_BOARD_VERSION} <strong>{VERSION}</strong></p>
Prima della modifica:
dopo della modifica: