Nome do Mod : Nome de Membro Especial - Special Member Name
Criado por: Fovist
Translate : Candidosa2
Última versão: 1.0
Compatível com: 1.1.8, 1.1.x
Mod Link:
http://custom.simplemachines.org/mods/index.php?mod=1689./Sources/
ModSettings.phpPesquisar
// Who's online.
array('check', 'who_enabled'),
Substituir por
// Who's online.
array('check', 'who_enabled'),
'',
// Special Member Name. by www.gorselsanatlar.org
array('check', 'special_member_name_enable'),
array('text', 'memberid'),
array('text', 'member_name_background'),
array('text', 'member_name_font_size'),
./Sources/
BoardIndex.phpPesquisar
// Some basic color coding...
if (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
Substituir por
// Special Member Name by www.gorselsanatlar.org
if (!empty($modSettings['special_member_name_enable']) && (in_array($row['ID_MEMBER'], explode(",",$modSettings['memberid']))))
{ $modSettings['member_name_font_size'] = empty($modSettings['member_name_font_size']) ? 10 : $modSettings['member_name_font_size'];
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . '; font-size: ' .$modSettings['member_name_font_size']. 'px; background-color: #' .$modSettings['member_name_background']. ';">' . $row['realName'] . '</a>';
}
elseif (!empty($row['onlineColor']))
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '" style="color: ' . $row['onlineColor'] . ';">' . $row['realName'] . '</a>';
else
$link = '<a href="' . $scripturl . '?action=profile;u=' . $row['ID_MEMBER'] . '">' . $row['realName'] . '</a>';
$languagedir/
Modifications.portuguese_pt.php ( pode ser consoante teu idioma )
Pesquisar
?>
Adicionar
//Special Member Name by www.gorselsanatlar.org translate by smfpt.net
$txt['special_member_name_enable'] = 'Activar nome do membro especial?';
$txt['memberid'] = 'Membro Id:<br /><span class="smalltext">Exemplo: <b>1,2,14,153</b> (Vocé pode inserir mais de um id do membro.)</span>';
$txt['member_name_background'] = 'Nome do Membro no Backround:<br /><span class="smalltext">Exemplo: <b>FFG</b> or <b>FFFGGF</b> (Basta digitar a 3 ou 6 dígitos.)</span>';
$txt['member_name_font_size'] = 'Tamanho do nome do texto no Membro(px):<br /><span class="smalltext">Sample: <b>15</b> (Fórum padrão 10(px). É recomendável que vocé não digitar os valores exagerados.)</span>';