SMFPT - Suporte e Manutenção de Fórum em Português

SMF 1.1.x (Móbulos Manual) => SMF 1.1.x Módulos Manual => Tópico iniciado por: candidosa2 em 01 de Novembro de 2008, 19:36

Título: ranking
Enviado por: candidosa2 em 01 de Novembro de 2008, 19:36
(http://i276.photobucket.com/albums/kk39/apllic/sshot-3-12.png)


Pesquisar
Código: [Seleccione]
// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

echo '
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small>
</td>

Subsituir por
Código: [Seleccione]
// Is this topic new? (assuming they are logged in!)
if ($topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $topic['new_href'], '" id="newicon' . $topic['first_post']['id'] . '">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" /></a>';

// Konu reyting by rallyproco
if ($topic['replies'] <= 100)
{
echo '
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />';
}
elseif($topic['replies'] <= 200)
{
echo '
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />';
}
elseif($topic['replies'] <= 300)
{
echo '
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />';
}
elseif($topic['replies'] <= 400)
{
echo '
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />';
}
elseif($topic['replies'] <= 500)
{
echo '
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />';
}
elseif($topic['replies'])
{
echo '
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />
<img align="right" src="' . $settings['images_url'] . '/gold.gif" border="0" />';
}
echo '
<small id="pages' . $topic['first_post']['id'] . '">', $topic['pages'], '</small></td>


as estrelas estao no Anexo