Accueil phpBB News phpBB Forum phpBB & support Mods Module Modification phpBB-Power Tutoriaux Tutoriel phpBB-Power Conseil personalisation phpBB-Power Conseil optimisation phpBB-Power Partenaires phpBB-Power




PhpBB
Installation
Télécharger phpBB
Installation
Installer phpBB
Mise à jour
Version 2.0.x vers 2.0.y
Base de Données
Derniers Mods
Profil & options persos
PDC - Personal Download Card 1.5
BB Code et Messages
QuickTime BBcode Player 1.0.1
BB Code et Messages
BBCode Off-Topic 1.2.2
Profil & options persos
phpBBlog 1.0.1
Derniers Tutoriaux
[Doc] Réaliser une prémode
Sauvegarder sa BDD
Personnaliser les membres connectés sur l'index
Documentations - Mods
Installation
Comment installer un mod?
Installation
Traduction des actions en français
Erreurs
Débugger son forum
Personalisations

Message par jour/heure/minute dans l'ACP
Petit outil de stat pour admin et gros forums

Les outils de stats étant assez utilisés par les webmasters, voici un petit "mod" qui vous permettra d'avoir plus de précisions sur le nombre de message postés sur votre forum par jour, heure et même par minute !

Screen

Code:
#
#-----[ OPEN ]----------------------------------------------
#

admin/index.php

#
#-----[ FIND ]----------------------------------------------
#

      "L_POSTS_PER_DAY" => $lang['Posts_per_day'],

#
#-----[ AFTER, ADD ]----------------------------------------
#

      "L_POSTS_PER_HOUR" => $lang['Posts_per_hour'],
      "L_POSTS_PER_MINUTE" => $lang['Posts_per_minute'],

#
#-----[ FIND ]----------------------------------------------
#

   $boarddays = ( time() - $board_config['board_startdate'] ) / 86400;

#
#-----[ AFTER, ADD ]----------------------------------------
#

   $boardhours = ( time() - $board_config['board_startdate'] ) / 3600;
   $boardminutes = ( time() - $board_config['board_startdate'] ) / 60;

#
#-----[ FIND ]----------------------------------------------
#

   $posts_per_day = sprintf("%.2f", $total_posts / $boarddays);

#
#-----[ AFTER, ADD ]----------------------------------------
#

   $posts_per_hour = sprintf("%.2f", $total_posts / $boardhours);
   $posts_per_minute = sprintf("%.2f", $total_posts / $boardminutes);

#
#-----[ FIND ]----------------------------------------------
#

      "POSTS_PER_DAY" => $posts_per_day,

#
#-----[ AFTER, ADD ]----------------------------------------
#

      "POSTS_PER_HOUR" => $posts_per_hour,
      "POSTS_PER_MINUTE" => $posts_per_minute,

#
#-----[ OPEN ]----------------------------------------------
#

language/lang_french/lang_admin.php

#
#-----[ FIND ]----------------------------------------------
#

$lang['Posts_per_day'] = 'Messages par jour';

#
#-----[ AFTER, ADD ]---------------------------------------
#

$lang['Posts_per_hour'] = 'Messages par heure';
$lang['Posts_per_minute'] = 'Messages par minute';


#
#-----[ OPEN ]----------------------------------------------
#

templates/***/admin/index_body.tpl

#
#-----[ FIND ]----------------------------------------------
#

  <tr>
   <td class="row1" nowrap="nowrap">{L_NUMBER_POSTS}:</td>
   <td class="row2"><b>{NUMBER_OF_POSTS}</b></td>
   <td class="row1" nowrap="nowrap">{L_POSTS_PER_DAY}:</td>
   <td class="row2"><b>{POSTS_PER_DAY}</b></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap">{L_NUMBER_TOPICS}:</td>
   <td class="row2"><b>{NUMBER_OF_TOPICS}</b></td>
   <td class="row1" nowrap="nowrap">{L_TOPICS_PER_DAY}:</td>
   <td class="row2"><b>{TOPICS_PER_DAY}</b></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap">{L_NUMBER_USERS}:</td>
   <td class="row2"><b>{NUMBER_OF_USERS}</b></td>
   <td class="row1" nowrap="nowrap">{L_USERS_PER_DAY}:</td>
   <td class="row2"><b>{USERS_PER_DAY}</b></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap">{L_BOARD_STARTED}:</td>
   <td class="row2"><b>{START_DATE}</b></td>
   <td class="row1" nowrap="nowrap">{L_AVATAR_DIR_SIZE}:</td>
   <td class="row2"><b>{AVATAR_DIR_SIZE}</b></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap">{L_DB_SIZE}:</td>
   <td class="row2"><b>{DB_SIZE}</b></td>
   <td class="row1" nowrap="nowrap">{L_GZIP_COMPRESSION}:</td>
   <td class="row2"><b>{GZIP_COMPRESSION}</b></td>
  </tr>

#
#-----[ REPLACE WITH ]----------------------------------------
#

  <tr>
   <td class="row1" nowrap="nowrap">{L_NUMBER_POSTS}:</td>
   <td class="row2"><b>{NUMBER_OF_POSTS}</b></td>
   <td class="row1" nowrap="nowrap">{L_POSTS_PER_DAY}:</td>
   <td class="row2"><b>{POSTS_PER_DAY}</b></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap">{L_NUMBER_TOPICS}:</td>
   <td class="row2"><b>{NUMBER_OF_TOPICS}</b></td>
   <td class="row1" nowrap="nowrap">{L_POSTS_PER_HOUR}:</td>
   <td class="row2"><b>{POSTS_PER_HOUR}</b></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap">{L_NUMBER_USERS}:</td>
   <td class="row2"><b>{NUMBER_OF_USERS}</b></td>
   <td class="row1" nowrap="nowrap">{L_POSTS_PER_MINUTE}:</td>
   <td class="row2"><b>{POSTS_PER_MINUTE}</b></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap">{L_BOARD_STARTED}:</td>
   <td class="row2"><b>{START_DATE}</b></td>
   <td class="row1" nowrap="nowrap">{L_USERS_PER_DAY}:</td>
   <td class="row2"><b>{USERS_PER_DAY}</b></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap">{L_DB_SIZE}:</td>
   <td class="row2"><b>{DB_SIZE}</b></td>
   <td class="row1" nowrap="nowrap">{L_TOPICS_PER_DAY}:</td>
   <td class="row2"><b>{TOPICS_PER_DAY}</b></td>
  </tr>
  <tr>
   <td class="row1" nowrap="nowrap">{L_GZIP_COMPRESSION}:</td>
   <td class="row2"><b>{GZIP_COMPRESSION}</b></td>
   <td class="row1" nowrap="nowrap">{L_AVATAR_DIR_SIZE}:</td>
   <td class="row2"><b>{AVATAR_DIR_SIZE}</b></td>
  </tr>

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------
# EoM
posté le 21 Nov 2004 par c@rtm@n Voir et répondre à l'astuce sur le forum




Powered by phpBB v2 © 2001, 2005 phpBB Group ¦ Theme: subSilver++
Traduction par : phpBB-fr.com