O MOD pode encontrar nas traduções para instalar...Automático
1. Source/BoardIndex.php
Pesquisar por este codigo
$context['page_title'] = $txt[18];
Colocar este
//*********************************** Most popular topic today.***************************//
$request = db_query("
SELECT ID_GROUP
FROM {$db_prefix}members
WHERE ID_MEMBER = '$ID_MEMBER'
",__FILE__, __LINE__);
list ($id_group) = mysql_fetch_row($request);
mysql_free_result($request);
if ($user_info['is_guest']) ($id_group='-1');
$result = db_query("
SELECT COUNT(mes.ID_TOPIC) as t, mes.ID_TOPIC, mes.subject, boa.memberGroups
FROM {$db_prefix}messages AS mes
LEFT JOIN {$db_prefix}boards as boa ON (mes.ID_BOARD=boa.ID_BOARD)
WHERE ". 'posterTime <='. time() ."
AND ". 'posterTime >= '. (time()-86400) ."
GROUP BY ID_TOPIC
ORDER BY t DESC
LIMIT 1
", __FILE__, __LINE__);
$context['most_popular_topic_today'] = array();
while ($row = mysql_fetch_assoc($result))
{
$context['most_popular_topic_today'] = array(
'coll' => $row['t'],
'id_topic' => $row['ID_TOPIC'],
'subject' => $row['subject'],
'memberGroups' => $row['memberGroups']);
}
mysql_free_result($result);
if (isset($context['most_popular_topic_today']['memberGroups']))
if ( strpos($context['most_popular_topic_today']['memberGroups'],$id_group)===false)
{
$context['topic_mod']='0';
}
else
{
$context['topic_mod']='1';
}
if (isset($context['most_popular_topic_today']['coll'])=='')
{
$context['topic_mod']='2';
}
if ($id_group == '1') ($context['topic_mod']=1);
//******************************************************************************************//
no teu tema/BoardIndex.template.php
Pesquisar por // This is the "Recent Posts" bar.
depois colocar o codigo a baixo...
//**********************************Most Resent Topic per Day***************************************//
echo'
<tr>
<td class="titlebg" colspan="2">', $txt['most_popular_topic_today'], '</td>
</tr>
<tr>
<td class="windowbg" width="20" valign="middle" align="center">
<a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt[214], '" /></a>
</td>
<td class="windowbg2">';
if ($context['topic_mod']=='0')
echo $txt['cant_read_mpt'];
elseif (!isset($context['most_popular_topic_today']['coll']) || ($context['topic_mod'])=='2')
echo $txt['most_pop_top_abs'];
else
echo '
<b><a href="', $scripturl, '?topic=', $context['most_popular_topic_today']['id_topic'],'">', $context['most_popular_topic_today']['subject'], '</a></b>
<div class="smalltext">
', $txt['most_pop_top'], ' "', $context['most_popular_topic_today']['coll'], '" <br />
</div>';
//**************************************************************************************************//
3. Themes/default/languages/index.portugues.php
Antes deste codigo ?>
// Portuguese translation by Candidosa2
$txt['most_popular_topic_today'] = 'Tópico mais Popular em 24 horas passadas ';
$txt['most_pop_top'] = 'Número de respostas por dia :';
$txt['most_pop_top_abs'] = 'Desculpa, ninguém respospodeu neste dia ';
$txt['cant_read_mpt'] = 'Desculpa, este quadro esta trancado, nao pode ler este topico';
se tiver algum problema na colocação deste código manual ponha a questão aqui..