Autor Tópico: Mini -Estatiticas  (Lida 6060 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Mini -Estatiticas
« em: 06 de Novembro de 2008, 07:09 »

Baordindex.template.php[/color]

Pesquisar por
Código: [Seleccione]
// Show YaBB SP1 style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">
', $context['common_stats']['total_posts'], ' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], ' ', $context['common_stats']['total_members'], ' ', $txt[19], '. ', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b>
<br /> ' . $txt[659] . ': <b>&quot;' . $context['latest_post']['link'] . '&quot;</b>  ( ' . $context['latest_post']['time'] . ' )<br />
<a href="', $scripturl, '?action=recent">', $txt[234], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['smf223'] . '</a>' : '', '
</span>
</td>
</tr>';
}

Adicionar isso e trocar por
Código: [Seleccione]
// Show style information...
if ($settings['show_sp1_info'])
{
echo '
<tr>
<td class="titlebg" colspan="2">', $txt[645], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt[645], '" /></a>
</td>
<td class="windowbg2" width="100%">
<span class="middletext">';

// Forum istatistikleri
                global $db_prefix,$modSettings;
                $istatistik1 = '<img align="absmiddle" src="'. $settings['images_url']. '/istatistik1.gif" alt="" border="0" style="margin:0 2px 0 0;" />';
                $today = strtotime("24 hours ago");
                date('j') == 1 ? $thismonth = $today : $thismonth = strtotime(date('F') . ' 1');
                date('l') == 'Sunday' ? $thisweek = $today : $thisweek = strtotime('last Sunday');
                date('M') == 'January' ? $thisyear = $thismonth : $thisyear = strtotime('January 1');
                $query = db_query("SELECT
                COUNT(dateRegistered > $thisyear OR NULL) as year,
                COUNT(dateRegistered > $thismonth OR NULL) as month,
                COUNT(dateRegistered > $thisweek OR NULL) as week,
                COUNT(dateRegistered > $today OR NULL) as today
                FROM {$db_prefix}members
                WHERE is_activated = 1", __FILE__, __LINE__);
                $row = mysql_fetch_assoc($query);
                settype($row['today'], "integer");
                settype($row['week'], "integer");
                settype($row['month'], "integer");
                echo '

<table width="100%" border="1" cellspacing="0" cellpadding="1">
  <tr>
    <td width="25%">
' , $istatistik1 , '<font style="font-size: 8pt">', $txt[656], ': <b> ', $context['common_stats']['latest_member']['link'], '</b></td><td width="16%">
' , $istatistik1 , '<font style="font-size: 8pt">Total Membros:', $context['common_stats']['total_members'], '</font>
</td><td width="12%">
' , $istatistik1 , '<font style="font-size: 8pt">Este mes: ' , $row['month'] , '</font></td><td width="12%">
' , $istatistik1 , '<font style="font-size: 8pt">Esta semana: ' , $row['week'], '</font></td><td width="12%">' , $istatistik1 , '<font style="font-size: 8pt">Hoje:' , $row['today'] , '</font>
';

echo'
</td><td>' , $istatistik1 , '<a href="' . $scripturl . '?action=stats"><font style="font-size: 8pt">' . $txt['smf223'] . '</font></a>
</td>
  </tr>
</table>
<table width="100%" border="1" cellspacing="0" cellpadding="1">
  <tr>
    <td width="41%">
        
' , $istatistik1 , '<font style="font-size: 8pt">' . $txt[659] . ': <b>&quot;' . $context['latest_post']['link'] . '</font></td><td width="18%">
' , $istatistik1 , '<font style="font-size: 8pt">Total Tópico:', $context['common_stats']['total_topics'], '</font></td><td width="18%">
' , $istatistik1 , '<font style="font-size: 8pt">Total Poste:', $context['common_stats']['total_posts'], '</font></td><td>
' , $istatistik1 , '<a href="', $scripturl, '?action=recent"><font style="font-size: 8pt">[Mensagens recentes]</font></a>
  </td>
  </tr>
</table>    
</span>
</td>
</tr>';
}

« Última modificação: 31 de Julho de 2009, 06:50 por M. Kazka »

Offline belvio

  • Iniciar SmfPt
  • *
  • Mensagens: 45
  • Rank: 0
  • Sexo: Masculino
    • Valasoft
Re:Mini -Estatiticas
« Responder #1 em: 06 de Julho de 2009, 02:08 »
 wink nota 10  notworthy

sou eu...............o mesmo de sempre

Offline M. Kazka

  • Suporte
  • *
  • Mensagens: 299
  • Rank: 1
  • Sexo: Masculino
Re:Mini -Estatiticas
« Responder #2 em: 31 de Julho de 2009, 06:53 »
[informacao]Atualizado o primeiro post, com a imagem para por antes dos títulos das estatísticas como no joomlamz[/informacao]


Ponha a imagem na pasta images do seu thema: Thema/seuthema/images/



Até.