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

SMF 2.1.x (Módulos Manual) => SMF 2.1.x Módulos Manual => Categoria => Tópico iniciado por: candidosa2 em 30 de Novembro de 2025, 00:56

Título: Avatares no quadro e/ou índice de mensagens SMF 2.1
Enviado por: candidosa2 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;
}