Statistics on Index

Area dedicata a tutte le MODs per phpBB 3.0.X
Rispondi
Avatar utente
Dr.House
Amministratore
Amministratore
Connesso: No
Messaggi: 2175
Iscritto il: 08/01/2012, 8:24
Versione phpBB3: 3.2.1
Stile utilizzato: Prosilver
Versione SEO: NO
Mod / Estensioni installate: Si
Forum: www.phpbb-store.it
Località: Reggio Calabria
Contatta:

Statistics on Index

Messaggio da Dr.House » 16/09/2012, 11:20

Autore:Stoker

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

?>
aggiungi prima

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>',
));

Apri: language/it/common.php

cerca:

Codice: Seleziona tutto

?>
aggiungi prima

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>',
));
apri: index.php

trova:

Codice: Seleziona tutto

$total_users	= $config['num_users'];
aggiungi dopo:

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'];
cerca:

Codice: Seleziona tutto

$l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OTHER';
aggiungi dopo:

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';
cerca:

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),
sostiutisci con:

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,
apri: styles/prosilver/template/index_body.html

trova:

Codice: Seleziona tutto

<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
sostiusci con:

Codice: Seleziona tutto

	<p>{TOTAL_POSTS} &bull; {POSTS_PER_YEAR} &bull; {POSTS_PER_DAY} &bull; {POSTS_PER_TOPIC} &bull; {POSTS_PER_USER}<br />
    {TOTAL_TOPICS} &bull; {TOPICS_PER_YEAR} &bull; {TOPICS_PER_DAY} &bull; {TOPICS_PER_USER}<br />
	{TOTAL_FILES} &bull; {FILES_PER_YEAR} &bull; {FILES_PER_DAY} &bull; {FILES_PER_USER}<br />
	{TOTAL_USERS} &bull; {USERS_PER_YEAR} &bull; {USERS_PER_DAY} &bull; {NEWEST_USER}<br />
	{L_START_DATE}  <strong>{START_DATE}</strong><br />
	{L_BOARD_VERSION} <strong>{VERSION}</strong></p>
Svuota la cache del template.

Prima della modifica:
1.png
dopo della modifica:
2.png
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.

Avatar utente
alex75
Amministratore
Amministratore
Connesso: No
Messaggi: 4410
Iscritto il: 23/08/2012, 23:45
Versione phpBB3: 3.2.8
Stile utilizzato: Prosilver
Versione SEO: SI
Mod / Estensioni installate: Si
Forum: www.phpbb-store.it
Località: palermo

Statistiche avanzate in index

Messaggio da alex75 » 21/02/2013, 21:17

Titolo originale: Statistics on Index 1.0.1
Autore: stoker
Traduzione Italiana: Si by alex75
Versione phpbb: 3.0.11 (Funziona anche con SEO)
Difficoltà: facile 5 minuti

Aumenta le informazioni sulle statistiche del forum.
statistiche.jpg
File da modificare:
index.php,
language/en/common.php,
styles/prosilver/template/index_body.html


Elenco modifiche:

Apri: index.php

Trova:

Codice: Seleziona tutto

$total_users	= $config['num_users'];
Aggiungi dopo:

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);
Trova:

Codice: Seleziona tutto

$l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OTHER';
Aggiungi dopo:

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 * 364.25;
$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 * 364.25;
$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 * 364.25;
$l_users_per_year_s = ($users_per_year == 0) ? 'USERS_PER_YEAR_ZERO' : 'USERS_PER_YEAR_OTHER';
Trova:

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),
Sovrascrivi tutto:

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),
	'POSTS_PER_DAY'   	=> sprintf($user->lang[$l_posts_per_day_s], $posts_per_day),
    'POSTS_PER_YEAR'    => sprintf($user->lang[$l_posts_per_year_s], $posts_per_year),
    'POSTS_PER_TOPIC'   => sprintf($user->lang[$l_posts_per_topic_s], $posts_per_topic),
    'POSTS_PER_USER'   	=> sprintf($user->lang[$l_posts_per_user_s], $posts_per_user),
    'TOPICS_PER_DAY'   	=> sprintf($user->lang[$l_topics_per_day_s], $topics_per_day),
    'TOPICS_PER_YEAR'   => sprintf($user->lang[$l_topics_per_year_s], $topics_per_year),
    'TOPICS_PER_USER'   => sprintf($user->lang[$l_topics_per_user_s], $topics_per_user),
    'TOTAL_FILES'    	=> sprintf($user->lang[$l_total_file_s], $total_files),
    'FILES_PER_DAY'   	=> sprintf($user->lang[$l_files_per_day_s], $files_per_day),
    'FILES_PER_YEAR'    => sprintf($user->lang[$l_files_per_year_s], $files_per_year),
    'FILES_PER_USER'   	=> sprintf($user->lang[$l_files_per_user_s], $files_per_user),
    'USERS_PER_DAY'   	=> sprintf($user->lang[$l_users_per_day_s], $users_per_day),
    'USERS_PER_YEAR'    => sprintf($user->lang[$l_users_per_year_s], $users_per_year),
	'START_DATE'        => $start_date,


Apri: language/it/common.php

Trova:

Codice: Seleziona tutto

?>
Aggiungi prima:

Codice: Seleziona tutto

// Statistics on index
$lang = array_merge($lang, array(	
	'START_DATE'			=> 'Siamo on-line dal',
	'POSTS_PER_DAY_OTHER'	=> 'Posts al giorno <strong>%.2f</strong>',
	'POSTS_PER_DAY_ZERO'	=> 'Posts al giorno <strong>None</strong>',
	'POSTS_PER_TOPIC_OTHER'	=> 'Posts per topic <strong>%.2f</strong>',
	'POSTS_PER_YEAR_OTHER'	=> 'Posts all\'anno <strong>%d</strong>',
	'POSTS_PER_YEAR_ZERO'	=> 'Posts all\'anno <strong>None</strong>',
	'POSTS_PER_TOPIC_ZERO'	=> 'Posts per topic <strong>None</strong>',
	'POSTS_PER_USER_OTHER'	=> 'Posts per utente <strong>%.2f</strong>',
	'POSTS_PER_USER_ZERO'	=> 'Posts per utente <strong>None</strong>',
	'TOPICS_PER_DAY_OTHER'	=> 'Topics al giorno <strong>%.2f</strong>',
	'TOPICS_PER_DAY_ZERO'	=> 'Topics al giorno <strong>None</strong>',
	'TOPICS_PER_YEAR_OTHER'	=> 'Topics all\'anno <strong>%d</strong>',
	'TOPICS_PER_YEAR_ZERO'	=> 'Topics all\'anno <strong>None</strong>',
	'TOPICS_PER_USER_OTHER'	=> 'Topics per utente <strong>%.2f</strong>',
	'TOPICS_PER_USER_ZERO'	=> 'Topics per utente <strong>None</strong>',
	'USERS_PER_DAY_OTHER'	=> 'Utenti iscritti al giorno <strong>%.2f</strong>',
	'USERS_PER_DAY_ZERO'	=> 'Utenti iscritti al giorno <strong>None</strong>',
	'USERS_PER_YEAR_OTHER'	=> 'Utenti iscritti all\'anno <strong>%d</strong>',
	'USERS_PER_YEAR_ZERO'	=> 'Utenti iscritti all\'anno <strong>None</strong>',
	'TOTAL_FILES_OTHER'		=> 'Totale allegati <strong>%d</strong>',
	'TOTAL_FILES_ZERO'		=> 'Totale allegati <strong>0</strong>',
	'FILES_PER_DAY_OTHER'	=> 'allegati al giorno <strong>%.2f</strong>',
	'FILES_PER_DAY_ZERO'	=> 'allegati al giorno <strong>None</strong>',
	'FILES_PER_YEAR_OTHER'	=> 'allegati all\'anno <strong>%d</strong>',
	'FILES_PER_YEAR_ZERO'	=> 'allegati all\'anno <strong>None</strong>',
	'FILES_PER_USER_OTHER'	=> 'allegati per utente <strong>%.2f</strong>',
	'FILES_PER_USER_ZERO'	=> 'allegati per utente <strong>None</strong>',
));
Apri: styles/prosilver/template/index_body.html

Trova:

Codice: Seleziona tutto

<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
Sovrascrivi tutto:

Codice: Seleziona tutto

	<p>{TOTAL_POSTS} &bull; {POSTS_PER_YEAR} &bull; {POSTS_PER_DAY} &bull; {POSTS_PER_TOPIC} &bull; {POSTS_PER_USER}<br />
    {TOTAL_TOPICS} &bull; {TOPICS_PER_YEAR} &bull; {TOPICS_PER_DAY} &bull; {TOPICS_PER_USER}<br />
	{TOTAL_FILES} &bull; {FILES_PER_YEAR} &bull; {FILES_PER_DAY} &bull; {FILES_PER_USER}<br />
	{TOTAL_USERS} &bull; {USERS_PER_YEAR} &bull; {USERS_PER_DAY} &bull; {NEWEST_USER}<br />
	{L_START_DATE}  <strong>{START_DATE}</strong></p>

Aggiornare il template, svuotare la cache. Fine della mod.
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.
Regolamento Forum
Programmi utili
Le nostre guide
Scambio Banner
Se l'assistenza prestata è stata di tuo gradimento potrai contribuire aiutandoci a sostenere le spese affrontate per tenere in vita questo forum >Cliccando sul seguente Link<

Avatar utente
rikuthebest
Registered User
Registered User
Connesso: No
Messaggi: 3
Iscritto il: 09/03/2013, 11:52
Versione phpBB3: 3.0.11
Stile utilizzato: Derivato dal Subsilver
Versione SEO: NO
Mod / Estensioni installate: Si
Forum:

Re: Statistics on Index

Messaggio da rikuthebest » 09/03/2013, 13:09

non riesco a farla funzionare su questo tema:
http://demo.phpbb3styles.net/Absolution

Avatar utente
rikuthebest
Registered User
Registered User
Connesso: No
Messaggi: 3
Iscritto il: 09/03/2013, 11:52
Versione phpBB3: 3.0.11
Stile utilizzato: Derivato dal Subsilver
Versione SEO: NO
Mod / Estensioni installate: Si
Forum:

Re: Statistics on Index

Messaggio da rikuthebest » 09/03/2013, 14:13

rikuthebest ha scritto:non riesco a farla funzionare su questo tema:
http://demo.phpbb3styles.net/Absolution
risolto reinstallando lo stile

Avatar utente
vilu
Trusted
Trusted
Connesso: No
Messaggi: 51
Iscritto il: 26/03/2013, 12:06
Versione phpBB3: 3.0.11
Stile utilizzato: Prosilver
Versione SEO: NO
Mod / Estensioni installate: Si
Forum:
Contatta:

Re: Statistics on Index

Messaggio da vilu » 28/05/2013, 19:51

alex nel tuo topic tu dici
File da modificare:
index.php,
language/en/common.php,
styles/prosilver/template/index_body.html
manca la modifica a language/en/common.php :ahhh:

Avatar utente
Moloch
Veteran
Veteran
Connesso: No
Messaggi: 1067
Iscritto il: 13/06/2012, 0:35
Versione phpBB3: 3.2.2
Stile utilizzato: Prosilver
Versione SEO: NO
Mod / Estensioni installate: Si
Forum: http://twawi.altervista.org/forum/index.php

Re: Statistics on Index

Messaggio da Moloch » 28/05/2013, 20:28

Apri: language/en/common.php
Trova:

Codice: Seleziona tutto

?>
Aggiungi prima

Codice: Seleziona tutto

// Statistics on index
$lang = array_merge($lang, array(	
	'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>%d</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>%d</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>%d</strong>',
	'USERS_PER_YEAR_ZERO'	=> 'Members per year <strong>None</strong>',
	'TOTAL_FILES_OTHER'		=> 'Total attachments <strong>%d</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>%d</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>',
));

Avatar utente
vilu
Trusted
Trusted
Connesso: No
Messaggi: 51
Iscritto il: 26/03/2013, 12:06
Versione phpBB3: 3.0.11
Stile utilizzato: Prosilver
Versione SEO: NO
Mod / Estensioni installate: Si
Forum:
Contatta:

Re: Statistics on Index

Messaggio da vilu » 28/05/2013, 20:44

moloch non capisco perche mi esce cosi

Codice: Seleziona tutto

Totale messaggi: 49 • Posts per year 1784 • Posts per day 4.90 • Posts per topic 1.00 • Posts per member 24.50
Totale argomenti: 49 • Topics per year 1784 • Topics per day 4.90 • Topics per member 24.50
Total attachments 25 • Attachments per year 910 • Attachments per day 2.50 • Attachments per member 12.50
Totale iscritti: 2 • Members per year 72 • Members per day 0.20 • Ultimo iscritto: Sponsor Bot
We have been online since 18 May 2013, 23:26:29

Avatar utente
Moloch
Veteran
Veteran
Connesso: No
Messaggi: 1067
Iscritto il: 13/06/2012, 0:35
Versione phpBB3: 3.2.2
Stile utilizzato: Prosilver
Versione SEO: NO
Mod / Estensioni installate: Si
Forum: http://twawi.altervista.org/forum/index.php

Re: Statistics on Index

Messaggio da Moloch » 28/05/2013, 20:48

Devi modificare tutti i file
non ti esce perchè non ai modificato index_body.html
ai fatto il refresh al template del prosilver
e svuotato

Avatar utente
vilu
Trusted
Trusted
Connesso: No
Messaggi: 51
Iscritto il: 26/03/2013, 12:06
Versione phpBB3: 3.0.11
Stile utilizzato: Prosilver
Versione SEO: NO
Mod / Estensioni installate: Si
Forum:
Contatta:

Re: Statistics on Index

Messaggio da vilu » 28/05/2013, 20:51

o fatto tutto ti posto il body

Codice: Seleziona tutto

<!-- INCLUDE overall_header.html -->
        <!-- STIMART NOAVATAR -->
        <!-- IF S_USER_LOGGED_IN --><!-- IF NOAVATARTRUE --><center><span style=" background-color: #ffce52; -moz-border-radius: 3px; -webkit-border-radius: 3px; border: 1px solid #666; padding: 2px;" >Non hai caricato l'avatar: <a href="ucp.php?i=profile&mode=avatar" onclick="return GB_showPage('Pannello di Controllo Utente', this.href)"><strong>clicca qui per inserirlo</strong></a></span></center><!-- ENDIF --><!-- ENDIF -->
        <!-- STIMART NOAVATAR -->
<!-- INCLUDE fusionwelcome_body.html -->
<!-- INCLUDE Pubblicita.html -->
<!-- INCLUDE shakira.html -->
<p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p>
<!-- IF U_MCP --><p>{CURRENT_TIME} <br />[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF -->

    <!-- IF S_DISPLAY_SEARCH or (S_USER_LOGGED_IN and not S_IS_BOT) -->
        <div id="tabs" style="margin-bottom: 1px;">
           <ul>   
           <!-- IF not S_IS_BOT and U_MARK_FORUMS --><li class="activetab" style="float:right;padding-right: 5px;"><a href="{U_MARK_FORUMS}" accesskey="m"><span>{L_MARK_FORUMS_READ}</span></a></li><!-- ENDIF -->
           <!-- IF S_DISPLAY_SEARCH -->   
           <li class="activetab"><a href="{U_SEARCH_UNANSWERED}"><span>{L_SEARCH_UNANSWERED}</span></a></li><!-- IF S_USER_LOGGED_IN --><li class="activetab"><a href="{U_SEARCH_UNREAD}"><span>{L_SEARCH_UNREAD}</span></a></li><li class="activetab"><a href="{U_SEARCH_NEW}"><span>{L_SEARCH_NEW}</span></a></li><!-- ENDIF --><li class="activetab"><a href="{U_SEARCH_ACTIVE_TOPICS}"><span>{L_SEARCH_ACTIVE_TOPICS}</span></a></li>
           <!-- ENDIF -->
           </ul>
        </div>
        <!-- ENDIF -->


<!-- INCLUDE forumlist_body.html -->

<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
	<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
	<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
		<fieldset class="quick-login">
			<label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />
			<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
			<!-- IF S_AUTOLOGIN_ENABLED -->
				| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
			<!-- ENDIF -->
			<input type="submit" name="login" value="{L_LOGIN}" class="button2" />
			{S_LOGIN_REDIRECT}
		</fieldset>
	</form>
<!-- ENDIF -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
	<!-- IF U_VIEWONLINE --><h3><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></h3><!-- ELSE --><h3>{L_WHO_IS_ONLINE}</h3><!-- ENDIF -->
	<p>{TOTAL_USERS_ONLINE} ({L_ONLINE_EXPLAIN})<br />{RECORD_USERS}<br /> <br />{LOGGED_IN_USER_LIST}
	<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST -->
	<h3>{L_BIRTHDAYS}</h3>
	<p><!-- IF BIRTHDAY_LIST -->{L_CONGRATULATIONS}: <strong>{BIRTHDAY_LIST}</strong><!-- ELSE -->{L_NO_BIRTHDAYS}<!-- ENDIF --></p>
<!-- ENDIF -->

<!-- IF NEWEST_USER -->
	<h3>{L_STATISTICS}</h3>
	       <p>{TOTAL_POSTS} &bull; {POSTS_PER_YEAR} &bull; {POSTS_PER_DAY} &bull; {POSTS_PER_TOPIC} &bull; {POSTS_PER_USER}<br />
        {TOTAL_TOPICS} &bull; {TOPICS_PER_YEAR} &bull; {TOPICS_PER_DAY} &bull; {TOPICS_PER_USER}<br />
       {TOTAL_FILES} &bull; {FILES_PER_YEAR} &bull; {FILES_PER_DAY} &bull; {FILES_PER_USER}<br />
       {TOTAL_USERS} &bull; {USERS_PER_YEAR} &bull; {USERS_PER_DAY} &bull; {NEWEST_USER}<br />
       {L_START_DATE}  <strong>{START_DATE}</strong></p>


<!-- ENDIF -->
    <!-- Start DM Video -->
    <!-- IF S_VIDEO_EXIST -->
       <h3>{L_DMV_MOST_SEEN_VIDEOS}</h3>
       <p>{NUMBER_VIDEOS}<br/><!-- BEGIN videoline --><!-- IF not videoline.S_FIRST_ROW --> &bull; <!-- ENDIF --> {videoline.TITEL} ({videoline.VIDEO_COUNTER}) <!-- END videoline --></p>
    <!-- ENDIF -->
    <!-- End DM Video -->

<!-- INCLUDE overall_footer.html -->

Avatar utente
Moloch
Veteran
Veteran
Connesso: No
Messaggi: 1067
Iscritto il: 13/06/2012, 0:35
Versione phpBB3: 3.2.2
Stile utilizzato: Prosilver
Versione SEO: NO
Mod / Estensioni installate: Si
Forum: http://twawi.altervista.org/forum/index.php

Re: Statistics on Index

Messaggio da Moloch » 28/05/2013, 20:57

Ricontrolla le modifiche nel file index.php

si trova nel root principale

Rispondi