SMFPT - Suporte e Manutenção de Fórum em Português
SMF 1.1.x (Móbulos Manual) => SMF 1.1.x Módulos Manual => Tópico iniciado por: candidosa2 em 09 de Fevereiro de 2008, 06:49
-
http://custom.simplemachines.org/mods/index.php?mod=1003
NOTA: Não se esqueça de fazer backup de seus arquivos
Open Sources/Admin.php
Pesquisar por
WHERE t.ID_BOARD = b.ID_BOARD
AND b.countPosts = 0
Alterar por este
WHERE t.ID_BOARD = b.ID_BOARD
AND b.countPosts = 0" . (!empty($modSettings['recycle_enable']) && $modSettings['recycle_board'] > 0 ? "
AND t.ID_BOARD != " . (int) $modSettings['recycle_board'] : '') . "
Open Sources/Profile.php
Pesquisar por
// Change the number of posts.
if (isset($_POST['posts']) && allowedTo('moderate_forum'))
$profile_vars['posts'] = $_POST['posts'] != '' ? (int) strtr($_POST['posts'], array(',' => '', '.' => '', ' ' => '')) : '\'\'';
Alterar por
// Change the number of posts.
if (isset($_POST['posts']) && allowedTo('moderate_forum'))
$profile_vars['posts'] = $_POST['posts'] != '' ? (int) strtr($_POST['posts'], array(',' => '', '.' => '', ' ' => '')) : '\'\'';
// Change the number of topics.
if (isset($_POST['topics']) && allowedTo('moderate_forum'))
$profile_vars['topics'] = $_POST['topics'] != '' ? (int) strtr($_POST['topics'], array(',' => '', '.' => '', ' ' => '')) : '\'\'';
Themes/default/Profile.template.php
Pesquisar por
<tr>
<td><b>', $txt[86], ': </b></td>
<td><input type="text" name="posts" size="4" value="', $context['member']['posts'], '" /></td>
</tr>';
Alterar e colocar
<tr>
<td><b>', $txt[86], ': </b></td>
<td><input type="text" name="posts" size="4" value="', $context['member']['posts'], '" /></td>
</tr>
<tr>
<td><b>', $txt['topiccount'], ': </b></td>
<td><input type="text" name="topics" size="4" value="', $context['member']['topics'], '" /></td>
</tr>';
Pesquisar por
<tr>
<td><b>', $txt[86], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>
</tr><tr>
Alterar por
<tr>
<td><b>', $txt[86], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>
</tr><tr>
<td><b>', $txt['topiccount'], ': </b></td>
<td>', $context['member']['topics'], '</td>
</tr><tr>
Aguardo...duvidas etc