Como mostrar os avatares na lista de quem está online

Iniciado por M. Kazka, 24 de Março de 2009, 04:50

Tópico anterior - Tópico seguinte

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

M. Kazka

Como mostrar os avatares na lista de quem está online
Esta é uma simples dica que irá mostrar os avatares na lista de quem está on-line

Vamos começar abrindo o Who.template.php.

Encontre:
Código:

         <td nowrap="nowrap">', $member['time'], '</td>


Substitua por:
Código:

         <td nowrap="nowrap">', $member['avatar']['image'], '</td>
         <td nowrap="nowrap">', $member['time'], '</td>



Encontre:
Código:

         <td colspan="3"><b>', $txt[139], ':</b> ', $context['page_index'], '</td>


Substitua por:
Código:

         <td colspan="4"><b>', $txt[139], ':</b> ', $context['page_index'], '</td>


Encontre:
Código:

   <table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">


Substitua por:
Código:

   <table cellpadding="4" cellspacing="0" border="0" width="100%" class="tborder">


Encontre:
Código:

         <td style="width: 14ex;"><a href="' . $scripturl . '?action=who;start=', $context['start'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
         <td>', $txt['who_action'], '</td>



Substitua por:
Código:



         <td>', $txt['avatar'], '</td>
         <td style="width: 14ex;"><a href="' . $scripturl . '?action=who;start=', $context['start'], ';sort=time', $context['sort_direction'] == 'down' && $context['sort_by'] == 'time' ? ';asc' : '', '">', $txt['who_time'], ' ', $context['sort_by'] == 'time' ? '<img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></td>
         <td>', $txt['who_action'], '</td>



Finalizadas as edições na template, vamos fazer uma pequena modificação no Modification.brazilian.php

Adicione no final do arquivo
Código:

$txt['avatar'] = 'Avatar';


E está feito!

Farebem


AUTOR: Costa do site: http://costa.net76.net

Archa


M. Kazka


Costa


Joomlamz

Apllic   Alojamentos Profissionais de Moçambique!

Costa