Autor Tópico: Estatísticas do Fórum 2.x.x  (Lida 8112 vezes)

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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5073
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Estatísticas do Fórum 2.x.x
« em: 21 de Agosto de 2013, 17:48 »






Boardindex.template.php Abrir o ficheiro


Pesquisar e remover


Código: [Seleccione]
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
<span>', $txt['recent_posts'], '</span>
</h4>
<div class="hslice" id="recent_posts_content">
<div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '<>
<div class="entry-content" style="display: none;">
<a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
<>';


// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<dl id="ic_recentposts" class="middletext">';


/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd>';
echo '
</dl>';
}
echo '
<>';
}


Pesquisar tambem essa linhas a baixo e apagar



      
Código: [Seleccione]

// Show statistical style information...
if ($settings['show_stats_index'])
{
echo '
<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=stats"><img class="icon" src="', $settings['images_url'], '/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>
<span>', $txt['forum_stats'], '</span>
</h4>
<p>
', $context['common_stats']['total_posts'], ' ', $txt['posts_made'], ' ', $txt['in'], ' ', $context['common_stats']['total_topics'], ' ', $txt['topics'], ' ', $txt['by'], ' ', $context['common_stats']['total_members'], ' ', $txt['members'], '. ', !empty($settings['show_latest_member']) ? $txt['latest_member'] . ': <strong> ' . $context['common_stats']['latest_member']['link'] . '</strong>' : '', '<br />
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <strong>&quot;' . $context['latest_post']['link'] . '&quot;</strong>  ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
</p>';
}


[size=78%]




Pesquisar tambem esta linha



[/size]
Código: [Seleccione]

// Here's where the "Info Center" starts...
echo '
<span class="clear upperframe"><span></span></span>
<div class="roundframe"><div class="innerframe">
<h3 class="catbg"><span class="left"></span>
<img class="icon" id="upshrink_ic" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />
', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '
</h3>
<div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>';
[size=78%]


Colocar por baixo este codigo



      [/size]
[/size]
Código: [Seleccione]
// Son 10 mesaj D'ssConnecTed Translate By Candidosa2
echo '
<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
<span>', $txt['recent_posts'], '</span>
</h4>
<table cellspacing="1" width="100%" cellpadding="0"  border="0">';
$ino=1;foreach ($context['latest_posts'] as $sonm){
echo '<tr>
<td class="windowbg2" valign="top" width="32%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['board']['link'],  '</span></td>
<td class="windowbg2" valign="top" width="28%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><a href="',$sonm['href'],'"><span class="smalltext"> ', $sonm['short_subject'], '</span></a></td>
<td class="windowbg2" valign="top" width="15%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['poster']['link'],'</span></td>
<td class="windowbg2" valign="top" width="18%"><img src="', $settings['images_url'], '/top'.$ino.'.gif" alt="" /><span class="smalltext"> ', $sonm['time'], '</span></td>
</tr>';$ino++;}
echo '</table><br />';
// Son 10 mesaj D'ssConnecTed


// günlük üye konu mesaj sayıları D'ssConnecTed
global $db_prefix, $db_connection;
$sorgu = "SELECT * FROM {$db_prefix}log_activity  ORDER BY date DESC Limit 1";
$bugunuye = mysql_query($sorgu, $db_connection) or die(mysql_error());
$contex['sonuyesayisi'] = mysql_fetch_array($bugunuye);


// İstatistikler D'issConnecTed
    echo'<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=stats"><img class="icon" src="', $settings['images_url'], '/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>
<span><a href="' . $scripturl . '?action=stats" title="Ver mais estatísticas">', $txt['forum_stats'], ' </a></span>

</h4>
<table width="100%">
            <tr>
                <td width="25%">últimos membros: <strong>' ,$context['common_stats']['latest_member']['link'], ' </strong><br /> Bem-vindo se juntar a nós.<br />
    Marcou a última mensagem: ' ,$context['latest_post']['link'], '
</td>
<td width="28%">temos um total <strong>', $context['common_stats']['total_topics'], '</strong> Tópico aberto.<br />
    Estes tópicos total <strong>', $context['common_stats']['total_posts'], '</strong> tradução. <br />
oi lá, hoje <strong>', $contex['sonuyesayisi']['topics'], '</strong> assunto e <strong>', $contex['sonuyesayisi']['posts'], '</strong> tem mensagens..
</td>
<td width="25%">hoje : <strong>' , $contex['sonuyesayisi']['registers'] , '</strong> pessoas se juntaram a nós.<br />
     <br />
Total : <strong>', $context['common_stats']['total_members'], '</strong> uma família de.</td>
<td width="22%">temos actualmente <strong>', $context['num_guests'],'</strong> convidado <br />
                e on-line agora <strong>', $context['num_users_online'],'</strong> Peça aos.<br />
<span style="text-align:right;"><a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a></span>
</td>
</tr>
        </table><br />';
// İstatistikler D'issConnecTed Support SMFPT.NET
[size=78%]


As imagens estao no anexo tem que colocar na pasta do themes e imagens[/size]