Autor Tópico: Avatares no quadro e/ou índice de mensagens SMF 2.1  (Lida 65 vezes)

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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5086
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Avatares no quadro e/ou índice de mensagens SMF 2.1
« em: 30 de Novembro de 2025, 00:56 »
BoardIndex.template.php

Pesquisar

Código: [Seleccione]
// Show some basic information about the number of posts, etc.
 echo '
 </div>
 <div class="board_stats">
 <p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '
 ', $board['is_redirect'] ? '' : '<br> ' . comma_format($board['topics']) . ' ' . $txt['board_topics'], '
 </p>
 </div>
 <div class="lastpost ',!empty($board['last_post']['id']) ? 'lpr_border' : 'hidden', '">';

 if (!empty($board['last_post']['id']))
 echo '
 <p>', $board['last_post']['last_post_message'], '</p>';
 echo '
 </div>';

Alterar por

Código: [Seleccione]
// Show some basic information about the number of posts, etc.
 echo '
 </div>
 <div class="board_stats">
 <p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '
 ', $board['is_redirect'] ? '' : '<br> ' . comma_format($board['topics']) . ' ' . $txt['board_topics'], '
 </p>
 </div>
 <div class="lastpost ',!empty($board['last_post']['id']) ? 'lpr_border' : 'hidden', '">';

 if (!empty($board['last_post']['id']))
 echo '
 <p>'.$board['last_post']['member']['avatar']['image'].' ', $board['last_post']['last_post_message'], '</p>';
 echo '
 </div>';

Pesquisar
Código: [Seleccione]
function template_ic_block_recent()
{
 global $context, $scripturl, $settings, $txt;

Alterar por
Código: [Seleccione]
function template_ic_block_recent()
{
 global $context, $scripturl, $settings, $txt;


index.template.php

Pesquisar
Código: [Seleccione]
$settings['avatars_on_boardIndex'] = false;
Alterar por
Código: [Seleccione]
$settings['avatars_on_boardIndex'] = false;
index.css

Adicionar
Código: [Seleccione]
.sonileti .avatar, .lastpost img.avatar {
 float:left;
    width: 40px;
    height: 40px;
 border-radius:50%;
 border: 1px solid #ccc;
    overflow: hidden;
}