';
+ if ($modSettings['sbox_DoHistory'] == '1') {
+ if (file_exists($sbox_HistoryFile)) {
+ echo '[
' . $txt['sbox_History'] . ']';
+ echo ' [
' . $txt['sbox_HistoryClear'] . ']';
+ } else {
+ echo '[' . $txt['sbox_HistoryNotFound'] . ']';
+ }
+ }
// debug output for separator-bar
-// echo "\n" . '
( CurTime: ' . forum_time(true) . ' / LastTime: ' . $_REQUEST['ts'] . ' )
';
+// echo ' ( CurTime: ' . forum_time(true) . ' / LastTime: ' . $_REQUEST['ts'] . ' )';
+ echo '
';
}
/*
@@ -175,7 +277,7 @@ if(mysql_num_rows($result)) {
echo "\n" . '';
if ($context['user']['is_admin']) {
- echo '
[X]';
+ echo '[
X]';
}
$wd = $txt['days_short'][date('w', $date)];
diff --git a/sbox_v1.10.mod b/sbox_11rc2.mod
similarity index 94%
rename from sbox_v1.10.mod
rename to sbox_11rc2.mod
index e3cf8a6..7604858 100644
--- a/sbox_v1.10.mod
+++ b/sbox_11rc2.mod
@@ -93,8 +93,8 @@ $txt['sbox_ModTitle'] = 'SMF Shoutbox';
$txt['sbox_Visible'] = 'Shoutbox is visible';
$txt['sbox_GuestAllowed'] = 'Guests are allowed to shout';
$txt['sbox_GuestVisible'] = 'Make Shoutbox visible to Guests';
-$txt['sbox_MaxLines'] = 'Maximum number of displayed lines';
-$txt['sbox_Height'] = 'Shoutbox height';
+$txt['sbox_MaxLines'] = 'Maximum number of displayed shouts';
+$txt['sbox_Height'] = 'Shoutbox height (px)';
$txt['sbox_SmiliesVisible'] = 'Smiley row is visible';
$txt['sbox_KillShout'] = 'Dou you want to kill this shout?';
$txt['sbox_TextSize1'] = '1. Font size';
@@ -108,6 +108,9 @@ $txt['sbox_FontFamily2'] = '2. Font family';
$txt['sbox_DoHistory'] = 'Create history of shouts';
$txt['sbox_AllowBBC'] = 'Allow BBCode';
$txt['sbox_Refresh'] = 'Refresh';
+$txt['sbox_History'] = 'History';
+$txt['sbox_HistoryClear'] = 'Clear history';
+$txt['sbox_HistoryNotFound'] = 'No history found.';
@@ -172,8 +175,8 @@ function ModifySboxSettings()
$config_vars = array
(
array('check', 'sbox_Visible'),
- array('check', 'sbox_GuestAllowed'),
array('check', 'sbox_GuestVisible'),
+ array('check', 'sbox_GuestAllowed'),
array('check', 'sbox_SmiliesVisible'),
array('check', 'sbox_AllowBBC'),
array('check', 'sbox_DoHistory'),
diff --git a/sbox_setup.php b/sbox_setup.php
index 6d7204a..49d37b2 100644
--- a/sbox_setup.php
+++ b/sbox_setup.php
@@ -21,10 +21,10 @@ $overwrite_old_settings = false;
$mod_settings = array(
'sbox_Visible' => '1',
'sbox_GuestAllowed' => '0',
- 'sbox_GuestVisible' => '1',
+ 'sbox_GuestVisible' => '0',
'sbox_SmiliesVisible' => '1',
'sbox_AllowBBC' => '1',
- 'sbox_DoHistory' => '0',
+ 'sbox_DoHistory' => '1',
'sbox_MaxLines' => '50',
'sbox_Height' => '180',
'sbox_RefreshTime' => '20',