Autor Tópico: ranking  (Lida 6372 vezes)

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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5073
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
ranking
« em: 01 de Novembro de 2008, 19:36 »


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