Statistics on Index

Modifications for phpBB3. Try the Mods here and share Your own Mods
There is no support here! Only Read Access!
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
Kynetic
BBCoder II
BBCoder II
Posts: 23
Joined: 27 Apr 2010, 22:13
Contact:

Re: Statistics on Index

Post by Kynetic »

Translation in French :

Open language/fr/common.php

Find :

Code: Select all

?>
Before add :

Code: Select all

// BEGIN MOD more stats on index
$lang = array_merge($lang, array(
   'START_DATE'            => 'Nous sommes en ligne depuis le',
   'POSTS_PER_DAY_OTHER'   => 'Messages par jour <strong>%.2f</strong>',
   'POSTS_PER_DAY_ZERO'   => 'Messages par jour <strong>Aucun</strong>',
   'POSTS_PER_TOPIC_OTHER'   => 'Messages par sujet <strong>%.2f</strong>',
   'POSTS_PER_YEAR_OTHER'   => 'Messages par an <strong>%s</strong>',
   'POSTS_PER_YEAR_ZERO'   => 'Messages par an <strong>Aucun</strong>',
   'POSTS_PER_TOPIC_ZERO'   => 'Messages par sujet <strong>Aucun</strong>',
   'POSTS_PER_USER_OTHER'   => 'Messages par membre <strong>%.2f</strong>',
   'POSTS_PER_USER_ZERO'   => 'Messages par membre <strong>Aucun</strong>',
   'TOPICS_PER_DAY_OTHER'   => 'Sujets par jour <strong>%.2f</strong>',
   'TOPICS_PER_DAY_ZERO'   => 'Sujets par jour <strong>Aucun</strong>',
   'TOPICS_PER_YEAR_OTHER'   => 'Sujets par an <strong>%s</strong>',
   'TOPICS_PER_YEAR_ZERO'   => 'Sujets par an <strong>Aucun</strong>',
   'TOPICS_PER_USER_OTHER'   => 'Sujets par membre <strong>%.2f</strong>',
   'TOPICS_PER_USER_ZERO'   => 'Sujets par membre <strong>Aucun</strong>',
   'USERS_PER_DAY_OTHER'   => 'Membres par jour <strong>%.2f</strong>',
   'USERS_PER_DAY_ZERO'   => 'Membres par jour <strong>Aucun</strong>',
   'USERS_PER_YEAR_OTHER'   => 'Membres par an <strong>%s</strong>',
   'USERS_PER_YEAR_ZERO'   => 'Membres par an <strong>Aucun</strong>',
   'TOTAL_POSTS_OTHER'   => 'Total des messages <strong>%s</strong>',
   'TOTAL_POSTS_ZERO'   => 'Total des messages <strong>0</strong>',
   'TOTAL_TOPICS_OTHER'=> 'Total des sujets <strong>%s</strong>',
   'TOTAL_TOPICS_ZERO'   => 'Total des sujets <strong>0</strong>',
   'TOTAL_USERS_OTHER'   => 'Total des membres <strong>%s</strong>',
   'TOTAL_USERS_ZERO'   => 'Total des membres <strong>0</strong>',
   'TOTAL_FILES_OTHER'   => 'Total des fichiers joints <strong>%s</strong>',
   'TOTAL_FILES_ZERO'   => 'Total des fichiers joints <strong>0</strong>',
   'FILES_PER_DAY_OTHER'   => 'Fichiers joints par jour <strong>%.2f</strong>',
   'FILES_PER_DAY_ZERO'   => 'Fichiers joints par jour <strong>Aucun</strong>',
   'FILES_PER_YEAR_OTHER'   => 'Fichiers joints par an <strong>%s</strong>',
   'FILES_PER_YEAR_ZERO'   => 'Fichiers joints par an <strong>Aucun</strong>',
   'FILES_PER_USER_OTHER'   => 'Fichiers joints par membre <strong>%.2f</strong>',
   'FILES_PER_USER_ZERO'   => 'Fichiers joints par membre <strong>Aucun</strong>',
));
Last edited by Kynetic on 28 Apr 2010, 17:34, edited 1 time in total.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Statistics on Index

Post by Stoker »

Thanks for the translation.
Board rules! No PM support
User avatar
Georgio
BBCoder II
BBCoder II
Posts: 53
Joined: 06 Mar 2010, 19:10
Location: Cabanes, Spain
Contact:

Re: Statistics on Index

Post by Georgio »

The MOD is really awesome but i don't now how to integrate it into my index_body.html
I already have the Topic Stats Page & Post Stats Page and i don't now how to make the final edit without losing the mods above.

In index_body i have to search:

Code: Select all

	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
and i have:

Code: Select all

	<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} - <a href="{U_TOPICSTATSPAGE}">{L_TOPICSTATSPAGE}</a> &bull; - <a href="{U_POSTSTATSPAGE}">{L_POSTSTATSPAGE}</a> &bull; - {TOTAL_USERS} &bull; {NEWEST_USER}</p>
how can i remplace the code with:

Code: Select all

<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>
:evil: :mrgreen:
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Statistics on Index

Post by cisco007 »

just i question, why did you add the topic stats and the post stats links there? those are links, you should have added those to the overall_footer.html navbar rather than there!
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Statistics on Index

Post by Stoker »

cisco007 » 04 May 2010, 21:44 wrote:just i question, why did you add the topic stats and the post stats links there? those are links, you should have added those to the overall_footer.html navbar rather than there!
I think that is where the mod instructions tells to add the link :D
But people are off course free to place them where they want.
Board rules! No PM support
User avatar
Georgio
BBCoder II
BBCoder II
Posts: 53
Joined: 06 Mar 2010, 19:10
Location: Cabanes, Spain
Contact:

Re: Statistics on Index

Post by Georgio »

cisco007 » 04 May 2010, 21:44 wrote:just i question, why did you add the topic stats and the post stats links there? those are links, you should have added those to the overall_footer.html navbar rather than there!
Topic Stats and Post Stats Page mod there no have any edits for overall_footer.
i follow the instructions and the edits are in index_body. :?
cisco007
BBCoder VI
BBCoder VI
Posts: 1015
Joined: 16 Mar 2010, 18:14
Location: Don't really know!

Re: Statistics on Index

Post by cisco007 »

yes, that is correct Gergio, you are right, Stoker just corrected me, i just never felt like putting it there!
about you question! the easiest thing to do is remove the topic and post stats links, and do these edits, then re-add the topic and post stats links! I think that would be the easiest, instead of having to modify what is already there and adding these codes!
User avatar
Georgio
BBCoder II
BBCoder II
Posts: 53
Joined: 06 Mar 2010, 19:10
Location: Cabanes, Spain
Contact:

Re: Statistics on Index

Post by Georgio »

cisco007 » 04 May 2010, 22:15 wrote:yes, that is correct Gergio, you are right, Stoker just corrected me, i just never felt like putting it there!
about you question! the easiest thing to do is remove the topic and post stats links, and do these edits, then re-add the topic and post stats links! I think that would be the easiest, instead of having to modify what is already there and adding these codes!
yes you're right. i remove the code from the stats and i put it into the overall_footer; looks nice now!
stats_on_index.jpg
[hrc=red]2[/hrc]

and finally my translation:
language/es/common.php
Search:

Code: Select all

?>
Befoe Add:

Code: Select all

// BEGIN MOD more stats on index
$lang = array_merge($lang, array(
   'START_DATE'            => 'Estamos en linea desde',
   'POSTS_PER_DAY_OTHER'   => 'Mensajes por dia <strong>%.2f</strong>',
   'POSTS_PER_DAY_ZERO'   => 'Mensajes por dia <strong>Ninguno</strong>',
   'POSTS_PER_TOPIC_OTHER'   => 'Mensajes por tema <strong>%.2f</strong>',
   'POSTS_PER_YEAR_OTHER'   => 'Mensajes por año <strong>%s</strong>',
   'POSTS_PER_YEAR_ZERO'   => 'Mensajes por año <strong>Ninguno</strong>',
   'POSTS_PER_TOPIC_ZERO'   => 'Mensajes por tema <strong>Nunguno</strong>',
   'POSTS_PER_USER_OTHER'   => 'Mensajes por miembro <strong>%.2f</strong>',
   'POSTS_PER_USER_ZERO'   => 'Mensajes por miembro <strong>Ninguno</strong>',
   'TOPICS_PER_DAY_OTHER'   => 'Temas por dia <strong>%.2f</strong>',
   'TOPICS_PER_DAY_ZERO'   => 'Temas por dia <strong>Ninguno</strong>',
   'TOPICS_PER_YEAR_OTHER'   => 'Temas por año <strong>%s</strong>',
   'TOPICS_PER_YEAR_ZERO'   => 'Temas por año <strong>Ninguno</strong>',
   'TOPICS_PER_USER_OTHER'   => 'Temas por miembro <strong>%.2f</strong>',
   'TOPICS_PER_USER_ZERO'   => 'Temas por miembro <strong>Ninguno</strong>',
   'USERS_PER_DAY_OTHER'   => 'Miembros por dia <strong>%.2f</strong>',
   'USERS_PER_DAY_ZERO'   => 'Miembros por dia <strong>Ninguno</strong>',
   'USERS_PER_YEAR_OTHER'   => 'Miembros por año <strong>%s</strong>',
   'USERS_PER_YEAR_ZERO'   => 'Miembros por año <strong>Ninguno</strong>',
   'TOTAL_POSTS_OTHER'   => 'Mensajes totales <strong>%s</strong>',
   'TOTAL_POSTS_ZERO'   => 'Mensajes totales <strong>0</strong>',
   'TOTAL_TOPICS_OTHER'=> 'Temas totales <strong>%s</strong>',
   'TOTAL_TOPICS_ZERO'   => 'Temas totales <strong>0</strong>',
   'TOTAL_USERS_OTHER'   => 'Miembros totales <strong>%s</strong>',
   'TOTAL_USERS_ZERO'   => 'Miembros totales <strong>0</strong>',
   'TOTAL_FILES_OTHER'   => 'Adjuntos totales <strong>%s</strong>',
   'TOTAL_FILES_ZERO'   => 'Adjuntos totales <strong>0</strong>',
   'FILES_PER_DAY_OTHER'   => 'Adjuntos por dia <strong>%.2f</strong>',
   'FILES_PER_DAY_ZERO'   => 'Adjuntos por dia <strong>Ninguno</strong>',
   'FILES_PER_YEAR_OTHER'   => 'Adjuntos por año <strong>%s</strong>',
   'FILES_PER_YEAR_ZERO'   => 'Adjuntos por año <strong>Ninguno</strong>',
   'FILES_PER_USER_OTHER'   => 'Adjuntos por mimebros <strong>%.2f</strong>',
   'FILES_PER_USER_ZERO'   => 'Adjuntos por miembros <strong>Ninguno</strong>',
));
:thumb:
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Statistics on Index

Post by Stoker »

Thanks for the translation :)
Board rules! No PM support
User avatar
Chalong
BBCoder II
BBCoder II
Posts: 59
Joined: 06 Mar 2010, 14:03
Location: Pforzheim / Germany
Contact:

Re: Statistics on Index

Post by Chalong »

German translation

See also
@ http://www.chalong.de/viewtopic.php?f=6&t=384
and
@ http://www.metzimods.de/viewtopic.php?f=43&t=230

Öffne: language/de/common.php

Finde:

Code: Select all

?>
Füge DAVOR ein:

Code: Select all

// BEGIN MOD more stats on index
$lang = array_merge($lang, array(
   'START_DATE'            => 'Wir sind online seit',
   'POSTS_PER_DAY_OTHER'   => 'Beiträge pro Tag <strong>%.2f</strong>',
   'POSTS_PER_DAY_ZERO'   => 'Beiträge pro Tag <strong>None</strong>',
   'POSTS_PER_TOPIC_OTHER'   => 'Beiträge pro Thema <strong>%.2f</strong>',
   'POSTS_PER_YEAR_OTHER'   => 'Beiträge pro Jahr <strong>%s</strong>',
   'POSTS_PER_YEAR_ZERO'   => 'Beiträge pro Jahr <strong>None</strong>',
   'POSTS_PER_TOPIC_ZERO'   => 'Beiträge pro Thema <strong>None</strong>',
   'POSTS_PER_USER_OTHER'   => 'Beiträge pro Mitglied <strong>%.2f</strong>',
   'POSTS_PER_USER_ZERO'   => 'Beiträge pro Mitglied <strong>None</strong>',
   'TOPICS_PER_DAY_OTHER'   => 'Themen pro Tag <strong>%.2f</strong>',
   'TOPICS_PER_DAY_ZERO'   => 'Themen pro Tag <strong>None</strong>',
   'TOPICS_PER_YEAR_OTHER'   => 'Themen pro Jahr <strong>%s</strong>',
   'TOPICS_PER_YEAR_ZERO'   => 'Themen pro Jahr <strong>None</strong>',
   'TOPICS_PER_USER_OTHER'   => 'Themen pro Mitglied <strong>%.2f</strong>',
   'TOPICS_PER_USER_ZERO'   => 'Themen pro Mitglied <strong>None</strong>',
   'USERS_PER_DAY_OTHER'   => 'Mitglieder pro Tag <strong>%.2f</strong>',
   'USERS_PER_DAY_ZERO'   => 'Mitglieder pro Tag <strong>None</strong>',
   'USERS_PER_YEAR_OTHER'   => 'Mitglieder pro Jahr <strong>%s</strong>',
   'USERS_PER_YEAR_ZERO'   => 'Mitglieder pro Jahr <strong>None</strong>',
   'TOTAL_POSTS_OTHER'   => 'Beiträge insgesamt <strong>%s</strong>',
   'TOTAL_POSTS_ZERO'   => 'Beiträge insgesamt <strong>0</strong>',
   'TOTAL_TOPICS_OTHER'=> 'Themen insgesamt <strong>%s</strong>',
   'TOTAL_TOPICS_ZERO'   => 'Themen insgesamt <strong>0</strong>',
   'TOTAL_USERS_OTHER'   => 'Mitglieder <strong>%s</strong>',
   'TOTAL_USERS_ZERO'   => 'Mitglieder <strong>0</strong>',
   'TOTAL_FILES_OTHER'   => 'Total attachments <strong>%s</strong>',
   'TOTAL_FILES_ZERO'   => 'Dateianhänge insgesamt <strong>0</strong>',
   'FILES_PER_DAY_OTHER'   => 'Dateianhänge pro Tag <strong>%.2f</strong>',
   'FILES_PER_DAY_ZERO'   => 'Dateianhänge pro Tag <strong>None</strong>',
   'FILES_PER_YEAR_OTHER'   => 'Dateianhänge pro Jahr <strong>%s</strong>',
   'FILES_PER_YEAR_ZERO'   => 'Dateianhänge pro Jahr <strong>None</strong>',
   'FILES_PER_USER_OTHER'   => 'Dateianhänge pro Mitglied <strong>%.2f</strong>',
   'FILES_PER_USER_ZERO'   => 'Dateianhänge pro Mitglied <strong>None</strong>',
));  
Last edited by Chalong on 05 May 2010, 10:28, edited 1 time in total.
Regards Chalong

www.chalong.de
Locked