Autor Tópico: Estatísticas Regular  (Lida 8157 vezes)

0 Membros e 2 Visitantes estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5073
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Estatísticas Regular
« em: 09 de Janeiro de 2011, 15:16 »
Link Original: http://custom.simplemachines.org/mods/index.php?mod=1760
Modo Nome: Stats Regular
Created By: hhy89
Última versão: 1.1
Versão compatível: 1.1.8, 1.1.9, 1.1.10, 2.0 RC1, 2.0 RC1-1, 2.0 RC1.2
Instalação Manual : Sim / Por Candidosa2


./Themes/default/Stats.template.php

Código: [Seleccione]
      <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
         <tr class="titlebg">
            <td align="center" colspan="4">', $context['page_title'], '</td>
         </tr>
         <tr>
            <td class="catbg" colspan="4"><b>', $txt['general_stats'], '</b></td>
         </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_info.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">
                  <tr>
                     <td nowrap="nowrap">', $txt['total_members'], ':</td>
                     <td align="right">', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $context['num_members'] . '</a>' : $context['num_members'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['total_posts'], ':</td>
                     <td align="right">', $context['num_posts'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['total_topics'], ':</td>
                     <td align="right">', $context['num_topics'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['total_cats'], ':</td>
                     <td align="right">', $context['num_categories'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['users_online'], ':</td>
                     <td align="right">', $context['users_online'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap" valign="top">', $txt['most_online'], ':</td>
                     <td align="right">', $context['most_members_online']['number'], ' - ', $context['most_members_online']['date'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['users_online_today'], ':</td>
                     <td align="right">', $context['online_today'], '</td>';
   if (!empty($modSettings['hitStats']))
      echo '
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['num_hits'], ':</td>
                     <td align="right">', $context['num_hits'], '</td>';
   echo '
                  </tr>
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_info.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">
                  <tr>
                     <td nowrap="nowrap">', $txt['average_members'], ':</td>
                     <td align="right">', $context['average_members'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['average_posts'], ':</td>
                     <td align="right">', $context['average_posts'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['average_topics'], ':</td>
                     <td align="right">', $context['average_topics'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['total_boards'], ':</td>
                     <td align="right">', $context['num_boards'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['latest_member'], ':</td>
                     <td align="right">', $context['common_stats']['latest_member']['link'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['average_online'], ':</td>
                     <td align="right">', $context['average_online'], '</td>
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['gender_ratio'], ':</td>
                     <td align="right">', $context['gender']['ratio'], '</td>';
   if (!empty($modSettings['hitStats']))
      echo '
                  </tr><tr>
                     <td nowrap="nowrap">', $txt['average_hits'], ':</td>
                     <td align="right">', $context['average_hits'], '</td>';
   echo '
                  </tr>
               </table>
            </td>
         </tr><tr>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_posters'], '</b></td>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_boards'], '</b></td>
         </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_posters'] as $poster)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $poster['link'], '</td>
                     <td width="20%" align="left" valign="top">', $poster['num_posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top">', $poster['num_posts'], '</td>
                  </tr>';
   echo '
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_board.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_boards'] as $board)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $board['link'], '</td>
                     <td width="20%" align="left" valign="top">', $board['num_posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $board['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top">', $board['num_posts'], '</td>
                  </tr>';
   echo '
               </table>
            </td>
         </tr><tr>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_topics_replies'], '</b></td>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_topics_views'], '</b></td>
         </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_replies.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_topics_replies'] as $topic)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $topic['link'], '</td>
                     <td width="20%" align="left" valign="top">', $topic['num_replies'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $topic['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top">', $topic['num_replies'], '</td>
                  </tr>';
   echo '
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_views.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_topics_views'] as $topic)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $topic['link'], '</td>
                     <td width="20%" align="left" valign="top">', $topic['num_views'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $topic['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top">', $topic['num_views'], '</td>
                  </tr>';
   echo '
               </table>
            </td>
         </tr><tr>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_starters'], '</b></td>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['most_time_online'], '</b></td>
         </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_replies.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_starters'] as $poster)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $poster['link'], '</td>
                     <td width="20%" align="left" valign="top">', $poster['num_topics'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['post_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top">', $poster['num_topics'], '</td>
                  </tr>';
   echo '
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center" nowrap="nowrap"><img src="', $settings['images_url'], '/stats_views.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_time_online'] as $poster)
      echo '
                  <tr>
                     <td width="60%" valign="top">', $poster['link'], '</td>
                     <td width="20%" align="left" valign="top">', $poster['time_online'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $poster['time_percent'] . '" height="15" alt="" />' : '&nbsp;', '</td>
                     <td width="20%" align="right" valign="top" nowrap="nowrap">', $poster['time_online'], '</td>
                  </tr>';
   echo '
               </table>

Código: [Seleccione]
      <table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
         <tr class="titlebg">
            <td align="center" colspan="4">', $context['page_title'], '</td>
         </tr>
         <tr>
            <td class="catbg" colspan="4"><b>', $txt['general_stats'], '</b></td>
         </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_info.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">
                  <tr>
                     <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats1'], ':</span></td>
                     <td align="right">', $context['show_member_list'] ? '<a href="' . $scripturl . '?action=mlist">' . $context['num_members'] . '</a>' : $context['num_members'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats2'], ':</span></td>
                     <td align="right">', $context['num_posts'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats22'], ':</span></td>
                     <td align="right">', $context['num_topics'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats3'], ':</span></td>
                     <td align="right">', $context['num_categories'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats4'], ':</span></td>
                     <td align="right">', $context['users_online'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats5'], ':</span></td>
                     <td align="right">', $context['most_members_online']['number'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats21'], ':</span></td>
                     <td align="right">', $context['online_today'], '</td>';
   if (!empty($modSettings['hitStats']))
      echo '
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats7'], ':</span></td>
                     <td align="right">', $context['num_hits'], '</td>';
   echo '
                  </tr>
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_info.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">
                  <tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats8'], ':</span></td>
                     <td align="right">', $context['average_members'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats9'], ':</span></td>
                     <td align="right">', $context['average_posts'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats10'], ':</span></td>
                     <td align="right">', $context['average_topics'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats11'], ':</span></td>
                     <td align="right">', $context['num_boards'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats12'], ':</span></td>
                     <td align="right">', $context['common_stats']['latest_member']['link'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats13'], ':</span></td>
                     <td align="right">', $context['average_online'], '</td>
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats14'], ':</span></td>
                     <td align="right">', $context['gender']['ratio'], '</td>';
   if (!empty($modSettings['hitStats']))
      echo '
                  </tr><tr>
           <td nowrap="nowrap" valign="top" width="80%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull6.gif" alt="" /> ', $txt['egstats15'], ':</span></td>
                     <td align="right">', $context['average_hits'], '</td>';
   echo '
                  </tr>
               </table>
            </td>
         </tr><tr>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_posters'], '</b></td>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_boards'], '</b></td>
         </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_posters.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_posters'] as $poster)
      echo '
                  <tr>
           <td nowrap="nowrap" align="left" valign="top" width="75%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull7.gif" alt="" /><b> ', $txt['egstats16'], ': </b>', $poster['link'], '</span></td>
           <td nowrap="nowrap" align="right" valign="top" width="25%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull5.gif" alt="" /><b> ', $txt['egstats17'], ': </b>', $poster['num_posts'], '</span></td>
                  </tr>';
   echo '
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_board.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_boards'] as $board)
      echo '
                  <tr>
           <td nowrap="nowrap" align="left" valign="top" width="75%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull7.gif" alt="" /><b> ', $txt['egstats18'], ': </b>', $board['link'], '</span></td>
           <td nowrap="nowrap" align="right" valign="top" width="25%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull5.gif" alt="" /><b> ', $txt['egstats17'], ': </b>', $board['num_posts'], '</span></td>
                  </tr>';
   echo '
               </table>
            </td>
         </tr><tr>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_topics_replies'], '</b></td>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_topics_views'], '</b></td>
         </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_replies.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_topics_replies'] as $topic)
      echo '
                  <tr>
           <td nowrap="nowrap" align="left" valign="top" width="75%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull7.gif" alt="" /><b> ', $txt['egstats19'], ': </b>', $topic['link'], '</span></td>
           <td nowrap="nowrap" align="right" valign="top" width="25%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull5.gif" alt="" /><b> ', $txt['egstats17'], ': </b>', $topic['num_replies'], '</span></td>
                  </tr>';
   echo '
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_views.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_topics_views'] as $topic)
      echo '
                  <tr>
           <td nowrap="nowrap" align="left" valign="top" width="75%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull7.gif" alt="" /><b> ', $txt['egstats19'], ': </b>', $topic['link'], '</span></td>
           <td nowrap="nowrap" align="right" valign="top" width="25%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull5.gif" alt="" /><b> ', $txt['egstats20'], ': </b>', $topic['num_views'], '</span></td>
                  </tr>';
   echo '
               </table>
            </td>
         </tr><tr>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['top_starters'], '</b></td>
            <td class="catbg" colspan="2" width="50%"><b>', $txt['most_time_online'], '</b></td>
         </tr><tr>
            <td class="windowbg" width="20" valign="middle" align="center"><img src="', $settings['images_url'], '/stats_replies.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_starters'] as $poster)
      echo '
                  <tr>
           <td nowrap="nowrap" align="left" valign="top" width="75%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull7.gif" alt="" /><b> ', $txt['egstats16'], ': </b>', $poster['link'], '</span></td>
           <td nowrap="nowrap" align="right" valign="top" width="25%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull5.gif" alt="" /><b> ', $txt['egstats19'], ':  </b>', $poster['num_topics'], '</span></td>
                  </tr>';
   echo '
               </table>
            </td>
            <td class="windowbg" width="20" valign="middle" align="center" nowrap="nowrap"><img src="', $settings['images_url'], '/stats_views.gif" width="20" height="20" alt="" /></td>
            <td class="windowbg2" width="50%" valign="top">
               <table border="0" cellpadding="1" cellspacing="0" width="100%">';
   foreach ($context['top_time_online'] as $poster)
      echo '
                  <tr>
           <td nowrap="nowrap" align="left" valign="top" width="75%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull7.gif" alt="" /><b> ', $txt['egstats16'], ': </b>', $poster['link'], '</span></td>
           <td nowrap="nowrap" align="right" valign="top" width="25%"><span class="smalltext"><img src="', $settings['images_url'], '/cartelfull5.gif" alt="" /><b> ', $txt['egstats23'], ': </b>', $poster['time_online'], '</span></td>
                  </tr>';
   echo '
               </table>



./Themes/default/languages/stats.teuidioma.php

Código: [Seleccione]
?>

Código: [Seleccione]
// Regular Stats-Tattoocu_CarteL-Www.SmfMod.coM translate candidosa2
$txt['egstats1'] = 'Número Total de Membros';
$txt['egstats2'] = 'Número Total de postes';
$txt['egstats3'] = 'Número Total de Categorias';
$txt['egstats4'] = 'Número de utilizadores no site Agora';
$txt['egstats5'] = 'A mais Online';
$txt['egstats7'] = 'Número total de visualizações na página';
$txt['egstats8'] = 'Média de registos diários';
$txt['egstats9'] = 'Média diária de postes';
$txt['egstats10'] = 'Média de tópicos por dia';
$txt['egstats11'] = 'Número Total de Quadros';
$txt['egstats12'] = 'O último membro';
$txt['egstats13'] = 'Média de utilizadores online por dia';
$txt['egstats14'] = 'Masculino para Feminino Ratio';
$txt['egstats15'] = 'Média de  página vistas por dia';
$txt['egstats16'] = 'Nick';
$txt['egstats17'] = 'Poste';
$txt['egstats18'] = 'Quadro';
$txt['egstats19'] = 'Tópico';
$txt['egstats20'] = 'Mostrar';
$txt['egstats23'] = 'Tempo Online';
$txt['egstats21'] = 'Hoje Online';
$txt['egstats22'] = 'Número Total de Tópicos';
// Regular Stats-Tattoocu_CarteL-Www.SmfMod.coM Support smfpt

Demo

« Última modificação: 09 de Janeiro de 2011, 15:22 por candidosa2 »