Autor Tópico: Perfil colocar 2 avatar  (Lida 2461 vezes)

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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5061
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Perfil colocar 2 avatar
« em: 06 de Janeiro de 2008, 08:48 »

Profile.template.php

Pesquisar por
Código: [Seleccione]
<td><a href="', $context['member']['website']['url'], '" target="_blank">', $context['member']['website']['title'], '</a></td>
e alterar colocar este codigo

Código: [Seleccione]
', !empty($context['member']['options']['evcil_tab']) ? '</tr><tr>
<td><b>Animais: </b></td>
<td>' . $context['member']['options']['evcil_tab'] . '</td>' : '', '

Pesquisar por

Código: [Seleccione]
<td><input type="text" name="websiteUrl" size="50" value="', $context['member']['website']['url'], '" /></td>
Alterar colocar este código

Código: [Seleccione]
<tr>  </tr>
<td><b>Animal: </b></td>
<td><select name="default_options[evcil_tab]">
<option', @$context['member']['options']['evcil_tab'] == 'dragao' ? ' selected="selected"' : '', '>dragao</option>
<option', @$context['member']['options']['evcil_tab'] == 'tataruga' ? ' selected="selected"' : '', '>tataruga</option>
<option', @$context['member']['options']['evcil_tab'] == 'impala' ? ' selected="selected"' : '', '>impala</option>
<option', @$context['member']['options']['evcil_tab'] == 'tavsan' ? ' selected="selected"' : '', '>tavsan</option>
<option', @$context['member']['options']['evcil_tab'] == 'caraguejo' ? ' selected="selected"' : '', '>caraguejo</option>
<option', @$context['member']['options']['evcil_tab'] == 'leao' ? ' selected="selected"' : '', '>leao</option>
<option', @$context['member']['options']['evcil_tab'] == 'leoa' ? ' selected="selected"' : '', '>leoa</option>
<option', @$context['member']['options']['evcil_tab'] == 'aguia' ? ' selected="selected"' : '', '>aguia</option>
<option', @$context['member']['options']['evcil_tab'] == 'cao' ? ' selected="selected"' : '', '>cao</option>
<option', @$context['member']['options']['evcil_tab'] == 'gato' ? ' selected="selected"' : '', '>gato</option>
<option', @$context['member']['options']['evcil_tab'] == 'sapo' ? ' selected="selected"' : '', '>Sapo</option>
<option', @$context['member']['options']['evcil_tab'] == 'borboleta' ? ' selected="selected"' : '', '>borboleta</option>
<option', @$context['member']['options']['evcil_tab'] == 'aquario' ? ' selected="selected"' : '', '>aquario</option>
<option', @$context['member']['options']['evcil_tab'] == 'rato' ? ' selected="selected"' : '', '>rato</option>
<option', @$context['member']['options']['evcil_tab'] == 'burro' ? ' selected="selected"' : '', '>Burro</option>
<option', @$context['member']['options']['evcil_tab'] == 'esquilo' ? ' selected="selected"' : '', '>esquilo</option>
<option', @$context['member']['options']['evcil_tab'] == 'girafa' ? ' selected="selected"' : '', '>girafa</option>
<option', @$context['member']['options']['evcil_tab'] == 'gata' ? ' selected="selected"' : '', '>gata</option>
<option', @$context['member']['options']['evcil_tab'] == 'passaro' ? ' selected="selected"' : '', '>pasaro</option>
<option', @$context['member']['options']['evcil_tab'] == 'fil' ? ' selected="selected"' : '', '>fil</option>
<option', @$context['member']['options']['evcil_tab'] == 'cobra' ? ' selected="selected"' : '', '>cobra</option>
<option', @$context['member']['options']['evcil_tab'] == 'formiga' ? ' selected="selected"' : '', '>formiga</option>
<option', @$context['member']['options']['evcil_tab'] == 'macaco' ? ' selected="selected"' : '', '>macaco</option>
<option', @$context['member']['options']['evcil_tab'] == 'boi' ? ' selected="selected"' : '', '>boi</option>
<option', @$context['member']['options']['evcil_tab'] == 'canavar' ? ' selected="selected"' : '', '>canavar</option>
<option', @$context['member']['options']['evcil_tab'] == 'zombi' ? ' selected="selected"' : '', '>zombi</option>
<option', @$context['member']['options']['evcil_tab'] == 'pinto' ? ' selected="selected"' : '', '>Pinto</option>
</select></td>
</tr>';

Display.template.php


Pesquisar por
 
// Show avatars, images, etc.?

e colocar o código acima dessa linha

Código: [Seleccione]
if (empty($message['member']['options']['evcil_tab'])) {
    $message['member']['options']['evcil_tab']='angelic';
}

if (empty($message['member']['options']['evcil_tab'])) {
    $message['member']['options']['evcil_tab']='default';
}
echo '
   <br><b>Animal</b> <br><img src="', $settings['default_images_url'], '/', $message['member']['options']['evcil_tab'], '.gif" /> <br />';


Por fim ir para Themes/default/images colocar la as imagens que estao no attach