/BoardIndex.template.php
Pesquisar
}
/* Each category in categories is made up of:
Trocar por
}
// display shoutbox
if (function_exists('sbox')) sbox();
/* Each category in categories is made up of:
sources/Subs.php
Adicionar
function sbox() {
global $sourcedir;
include_once("$sourcedir/sbox.php");
sbox_display();
}
sources/ModSettings.php
Pesquisar
'karma' => 'ModifyKarmaSettings',
Adicionar
'sbox' => 'ModifySboxSettings',
Pesquisar
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
Adicionar
'sbox' => array(
'title' => $txt['sbox_ModTitle'],
'href' => $scripturl . '?action=featuresettings;sa=sbox;sesc=' . $context['session_id'],
),
Adicionar
loadLanguage('sbox');
function ModifySboxSettings() {
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Generic stuff
array('check', 'sbox_Visible'),
array('check', 'sbox_ModsRule'),
array('check', 'sbox_DoHistory'),
'',
// Guest stuff
array('check', 'sbox_GuestVisible'),
array('check', 'sbox_GuestAllowed'),
array('check', 'sbox_GuestBBC'),
'',
// Visual
array('check', 'sbox_SmiliesVisible'),
array('check', 'sbox_UserLinksVisible'),
array('check', 'sbox_AllowBBC'),
array('check', 'sbox_NewShoutsBar'),
array('int', 'sbox_MaxLines'),
array('int', 'sbox_Height'),
'',
// Miscellaneous
array('int', 'sbox_RefreshTime'),
array('check', 'sbox_BlockRefresh'),
array('check', 'sbox_EnableSounds'),
'',
// Font stuff
array('select', 'sbox_FontFamily', array(
'Garamond, serif' => 'Garamond, serif',
'Times, serif' => 'Times, serif',
'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif',
'Tahoma, Helvetica, sans-sarif' => 'Tahoma, Helvetica, sans-sarif',
'Verdana, sans-serif' => 'Verdana, sans-serif',
'cursive' => 'cursive',
'Palatino, fantasy' => 'Palatino, fantasy',
'Courier, monospace' => 'Courier, monospace'
),
),
array('select', 'sbox_TextSize', array(
'6pt' => '6pt',
'7pt' => '7pt',
'8pt' => '8pt',
'9pt' => '9pt',
'10pt' => '10pt',
'11pt' => '11pt',
'12pt' => '12pt',
'13pt' => '13pt',
'14pt' => '14pt',
'15pt' => '15pt',
'16pt' => '16pt',
'xx-small' => 'xx-small',
'x-small' => 'x-small',
'small' => 'small',
'medium' => 'medium',
'large' => 'large',
'x-large' => 'x-large',
'xx-large' => 'xx-large'
),
),
array('text', 'sbox_TextColor1'),
array('text', 'sbox_DarkThemes'),
array('text', 'sbox_TextColor2'),
);
// Saving?
if (isset($_GET['save'])) {
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=sbox');
}
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=sbox';
$context['settings_title'] = $txt['sbox_ModTitle'];
prepareDBSettingContext($config_vars);
}
Não se esqueça destes ficheiros
chat-inbound_GSM.wav ===> Raiz do fórum
sbox.english.php ===> tema/languages
sbox.php,sboxDB.php ===> sources
sbox.template.php ===> tema
sbox_refresh.gif ===> tema/images
sbox_remove.php,sbox_setup.php,sbox_upgrade.php ===> Raiz do fórum