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 => Categoria => Tópico iniciado por: candidosa2 em 29 de Março de 2009, 06:58
-
EN
link : http://custom.simplemachines.org/mods/index.php?mod=556
PT
link : http://comunidade.smfpt.net/index.php/topic,4610.0.html
Manualmente
Sources/ModSetting.php
Pesquisar
);
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];
Adicionar
'emptyboards' => 'ModifyEmptyBoards',
);
// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
'emptyboards' => 'ModifyEmptyBoards',
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),
'emptyboards' => array(
'title' => $txt['EmptyBoards'],
'href' => $scripturl . '?action=featuresettings;sa=emptyboards;sesc=' . $context['session_id'],
),
?>
// Empty Boards Notifications v1.0 - Created by Sindorf
function ModifyEmptyBoards()
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
array('check', 'EnableEmptyBoards'),
array('check', 'EnableLinkMode'),
array('check', 'EnableMessageIndex'),
);
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=emptyboards');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=emptyboards';
$context['settings_title'] = $txt['EmptyBoards'];
prepareDBSettingContext($config_vars);
}
Themes/BoardIndex.template.php
Pesquisar
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
Adicionar
//Empty Boards Notifications v1.0 - Created by Sindorf - START
elseif ($modSettings['EnableEmptyBoards'] == 1 && $modSettings['EnableLinkMode'] == 0)
echo '<b>', $txt['boardindex_empty_message'], '</b>';
elseif ($modSettings['EnableEmptyBoards'] == 1 && $modSettings['EnableLinkMode'] == 1)
echo '<a href="', $scripturl, '?action=post;board=', $board['id'], '.0"><b>', $txt['boardindex_empty_message'], '</b></a>';
//Empty Boards Notifications v1.0 - Created by Sindorf - END
Themes/MessageIndex.template.php
Pesquisar
if (!empty($board['last_post']['id']))
echo '
<b>', $txt[22], '</b> ', $txt[525], ' ', $board['last_post']['member']['link'] , '<br />
', $txt['smf88'], ' ', $board['last_post']['link'], '<br />
', $txt[30], ' ', $board['last_post']['time'];
Adicionar
//Empty Boards Notifications v1.0 - Created by Sindorf - START
elseif ($modSettings['EnableEmptyBoards'] == 1 && $modSettings['EnableLinkMode'] == 0)
echo '<b>', $txt['boardindex_empty_message'], '</b>';
elseif ($modSettings['EnableEmptyBoards'] == 1 && $modSettings['EnableLinkMode'] == 1)
echo '<a href="', $scripturl, '?action=post;board=', $board['id'], '.0"><b>', $txt['boardindex_empty_message'], '</b></a>';
//Empty Boards Notifications v1.0 - Created by Sindorf - END
// No topics.... just say, "sorry bub".
else
echo '
<td class="catbg3" width="100%" colspan="7"><b>', $txt[151], '</b></td>';
//Empty Boards Notifications v1.0 - Created by Sindorf - START
elseif ($modSettings['EnableEmptyBoards'] == 1 && $modSettings['EnableMessageIndex'] == 1)
echo '
<td class="catbg3" width="100%" colspan="7"><b>', $txt[151], '</b></td></tr><tr>
<td class="windowbg" width="100%" height="60" valign="middle" align="center"><b>',$txt['messageindex_empty_message'], '</b></td>';
//Empty Boards Notifications v1.0 - Created by Sindorf - END
languages/Modifications.portuguese_pt.php ou languages/Modifications.portuguese_brazilian.php
Pesquisar
?>
[logged]//Empty Boards Notifications v1.0 - Created by Sindorf translate by candidosa2 Update smfpt.net
//Admin - Text Strings
$txt['EmptyBoards'] = 'Quadro vazio de Notificações';
$txt['EnableLinkMode'] = 'Activar Link Modo do quadro Index';
$txt['EnableEmptyBoards'] = 'Quadro vazio de Notificaçõess';
$txt['EnableMessageIndex'] = 'Activar quadro Vazio de Notificação nas Mensagem Index';
//Forum - Text Strings can be found in index.portuguese_pt.php
[/logged]
[logged]
//Empty Boards Notifications v1.0 - Created by Sindorf translate by candidosa2 Update smfpt.net
//Admin - Text Strings
$txt['EmptyBoards'] = 'Quadro vazio de Notificações';
$txt['EnableLinkMode'] = 'Activar Link Modo do quadro Index';
$txt['EnableEmptyBoards'] = 'Quadro vazio de Notificaçõess';
$txt['EnableMessageIndex'] = 'Activar quadro Vazio de Notificação nas Mensagem Index';
//Forum - Text Strings can be found in index.portuguese_brazilian.php
[/logged]
-
Gostaria de saber para que Server esta Opçao Acima...
-
Para notificar quando o quadro estiver Vazio