x JavaScript clear() was reserved, renamed to clearHist()
x active refresh on new shout * raised version number to 1.11 + included language pack into main setup package so that distribution should be easier
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
|
||||
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
|
||||
<name>SMF Shoutbox LanguagePack German</name>
|
||||
<id>Deep:SMF_Shoutbox</id>
|
||||
<id>Deep:SMF_Shoutbox:LangPack_German</id>
|
||||
<type>modification</type>
|
||||
<version>1.10</version>
|
||||
<version>1.11</version>
|
||||
<install for="1.1 RC2">
|
||||
<readme type="inline">
|
||||
<![CDATA[
|
||||
|
||||
@@ -3,7 +3,7 @@ SMF Shoutbox , German Language Pack
|
||||
</id>
|
||||
|
||||
<version>
|
||||
1.10
|
||||
1.11
|
||||
</version>
|
||||
|
||||
<mod info>
|
||||
@@ -56,7 +56,7 @@ $txt['sbox_TextColor1'] = '1. Schriftfarbe';
|
||||
$txt['sbox_TextSize2'] = '2. Schriftgröße';
|
||||
$txt['sbox_TextColor2'] = '2. Schriftfarbe';
|
||||
$txt['sbox_RefreshTime'] = 'Aktualisierungsintervall';
|
||||
$txt['sbox_BlockRefresh'] = 'Aktualisierung nach Inaktivität stoppen';
|
||||
$txt['sbox_BlockRefresh'] = 'Aktualisierung nach Inaktivität stoppen (' . $modSettings['lastActive'] . ' min)';
|
||||
$txt['sbox_BackgroundColor'] = 'Hintergrundfarbe';
|
||||
$txt['sbox_FontFamily1'] = '1. Schriftart';
|
||||
$txt['sbox_FontFamily2'] = '2. Schriftart';
|
||||
@@ -90,7 +90,7 @@ $helptxt['sbox_Height'] = 'Bestimmen Sie hier die Höhe der Shoutbox (Anzahl
|
||||
$helptxt['sbox_SmiliesVisible'] = 'Hier können Sie einstellen, ob die Smilies sichtbar sind oder nicht. Diese Einstellung gilt für ALLE Benutzer.';
|
||||
$helptxt['sbox_UserLinksVisible'] = 'Legt fest, ob die Namen der Shouter mit deren Profilseite verlinkt werden sollen oder nicht.';
|
||||
$helptxt['sbox_RefreshTime'] = 'Hier können Sie das Aktualisierungsintervall einstellen, also die Anzahl der Sekunden, die vergehen müssen, bevor sich die Shoutbox automatisch aktualisiert.';
|
||||
$helptxt['sbox_BlockRefresh'] = 'Legt fest, ob die automatische Aktualisierung nach eine Weile Inaktivität automatisch gestoppt werden soll. Benutzer können die Shoutbox weiterhin manuell aktualisieren. Die Zeitspanne wird unter <i>Zeit der Benutzeranzeige</i> in den <i>Standard-Funktionen</i> festgelegt.';
|
||||
$helptxt['sbox_BlockRefresh'] = 'Legt fest, ob die automatische Aktualisierung nach eine Weile Inaktivität automatisch gestoppt werden soll. Benutzer können die Shoutbox weiterhin manuell aktualisieren. Die Zeitspanne wird unter <i>Zeit der Benutzeranzeige</i> in den <i>Standard-Funktionen</i> festgelegt. (Momentan ' . $modSettings['lastActive'] . ' Minuten)';
|
||||
$helptxt['sbox_DoHistory'] = 'Legt fest, ob alle Shouts auch in eine Verlaufsdatei geschrieben werden sollen, so dass ein Administrator angebliche Vorfälle nachprüfen kann.';
|
||||
$helptxt['sbox_AllowBBC'] = 'Legt fest, ob Benutzer BBCode in Shouts benutzen können. Wenn dies deaktiviert ist, wird nur Klartext angezeigt - ohne Smileys oder Formatierungen.';
|
||||
$helptxt['sbox_EnableSounds'] = 'Aktiviert einen Ton, der gespielt wird, wenn der eigene Nickname in einem neuen Shout auftaucht.';
|
||||
|
||||
+37
-35
@@ -1,40 +1,42 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">
|
||||
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
|
||||
<name>SMF Shoutbox</name>
|
||||
<id>Deep:SMF_Shoutbox</id>
|
||||
<type>modification</type>
|
||||
<version>1.10</version>
|
||||
<install for="1.1 RC2">
|
||||
<require-file name="sbox.php" destination="$sourcedir" />
|
||||
<require-file name="sboxDB.php" destination="$sourcedir" />
|
||||
<require-file name="sbox.template.php" destination="$themedir" />
|
||||
<require-file name="sbox_refresh.gif" destination="$themedir/images" />
|
||||
<require-file name="chat-inbound_GSM.wav" destination="$boarddir" />
|
||||
<code type="file">sbox_setup.php</code>
|
||||
<readme type="inline">
|
||||
<![CDATA[
|
||||
This allows you to put a shoutbox on your SMF forum above the board index of the default theme.
|
||||
<name>SMF Shoutbox</name>
|
||||
<id>Deep:SMF_Shoutbox</id>
|
||||
<type>modification</type>
|
||||
<version>1.11</version>
|
||||
<install for="1.1 RC2">
|
||||
<require-file name="sbox.php" destination="$sourcedir" />
|
||||
<require-file name="sboxDB.php" destination="$sourcedir" />
|
||||
<require-file name="sbox.template.php" destination="$themedir" />
|
||||
<require-file name="sbox_refresh.gif" destination="$themedir/images" />
|
||||
<require-file name="chat-inbound_GSM.wav" destination="$boarddir" />
|
||||
<require-file name="sbox_v1.11_german.zip" destination="$boarddir/Packages" />
|
||||
<code type="file">sbox_setup.php</code>
|
||||
<readme type="inline">
|
||||
<![CDATA[
|
||||
This allows you to put a shoutbox on your SMF forum above the board index of the default theme.
|
||||
|
||||
Originally written By Deep (diem4@gmx.net), inspired by Matthew Wolf (a.k.a Grudge)
|
||||
Heavily improved by Markus Birth (mbirth@webwriters.de)
|
||||
Copyright 2006 - Neither this package or any of it's contents may be distributed without authorisation.
|
||||
]]>
|
||||
</readme>
|
||||
<modification type="file" format="boardmod">sbox_11rc2.mod</modification>
|
||||
</install>
|
||||
<uninstall for="1.1 RC2">
|
||||
<readme type="inline">Uninstall will remove all the changes made by the shoutbox. You must do this before upgrading!</readme>
|
||||
<modification type="file" format="boardmod" reverse="true">sbox_11rc2.mod</modification>
|
||||
<remove-file name="$sourcedir/sbox.php" />
|
||||
<remove-file name="$sourcedir/sboxDB.php" />
|
||||
<remove-file name="$themedir/sbox.template.php" />
|
||||
<remove-file name="$themedir/images/sbox_refresh.gif" />
|
||||
<remove-file name="$boarddir/chat-inbound_GSM.wav" />
|
||||
<remove-file name="$boarddir/sbox.history.html" />
|
||||
<code type="file">sbox_remove.php</code>
|
||||
</uninstall>
|
||||
<install>
|
||||
<readme type="inline">Sorry, but the SMF Shoutbox Mod doesn't support your SMF version!</readme>
|
||||
</install>
|
||||
Originally written By Deep (diem4@gmx.net), inspired by Matthew Wolf (a.k.a Grudge)
|
||||
Heavily improved by Markus Birth (mbirth@webwriters.de)
|
||||
Copyright 2006 - Neither this package or any of it's contents may be distributed without authorisation.
|
||||
]]>
|
||||
</readme>
|
||||
<modification type="file" format="boardmod">sbox_11rc2.mod</modification>
|
||||
</install>
|
||||
<uninstall for="1.1 RC2">
|
||||
<readme type="inline">Uninstall will remove all the changes made by the shoutbox. You must do this before upgrading!</readme>
|
||||
<modification type="file" format="boardmod" reverse="true">sbox_11rc2.mod</modification>
|
||||
<remove-file name="$sourcedir/sbox.php" />
|
||||
<remove-file name="$sourcedir/sboxDB.php" />
|
||||
<remove-file name="$themedir/sbox.template.php" />
|
||||
<remove-file name="$themedir/images/sbox_refresh.gif" />
|
||||
<remove-file name="$boarddir/chat-inbound_GSM.wav" />
|
||||
<remove-file name="$boarddir/sbox.history.html" />
|
||||
<remove-file name="$boarddir/Packages/sbox_v1.11_german.zip" />
|
||||
<code type="file">sbox_remove.php</code>
|
||||
</uninstall>
|
||||
<install>
|
||||
<readme type="inline">Sorry, but the SMF Shoutbox Mod doesn't support your SMF version!</readme>
|
||||
</install>
|
||||
</package-info>
|
||||
|
||||
+4
-3
@@ -80,7 +80,8 @@ $result = db_query("SELECT time FROM {$db_prefix}sbox_content ORDER BY time DESC
|
||||
$row = mysql_fetch_assoc($result);
|
||||
$refreshBlocked = false;
|
||||
$delta = time() - $row['time'];
|
||||
if (($delta > $modSettings['lastActive']*60) && ($modSettings['sbox_BlockRefresh'] == '1')) {
|
||||
if ((!empty($_REQUEST['action'])) && ($_REQUEST['action'] == 'write')) $dontblock = true; else $dontblock = false;
|
||||
if (($delta > $modSettings['lastActive']*60) && ($modSettings['sbox_BlockRefresh'] == '1') && (!$dontblock)) {
|
||||
$refreshBlocked = true;
|
||||
} else {
|
||||
echo '
|
||||
@@ -91,7 +92,7 @@ echo '
|
||||
<link rel="stylesheet" type="text/css" href="' . $settings['theme_url'] . '/style.css?rc2" />
|
||||
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
|
||||
function kill() { return confirm("' . $txt['sbox_KillShout'] . '"); }
|
||||
function clear() { return confirm("' . $txt['quickmod_confirm'] . '"); }
|
||||
function clearHist() { return confirm("' . $txt['quickmod_confirm'] . '"); }
|
||||
|
||||
// get SMF-time including time zone corrections (system+user)
|
||||
if (parent && parent.document.sbox.ts) {
|
||||
@@ -205,7 +206,7 @@ if ($context['user']['is_admin']) {
|
||||
if ($modSettings['sbox_DoHistory'] == '1') {
|
||||
if (file_exists($sbox_HistoryFile)) {
|
||||
echo '[<a href="' . str_replace($boarddir, $boardurl, $sbox_HistoryFile) . '" target="_blank">' . $txt['sbox_History'] . '</a>]';
|
||||
echo ' [<a href="' . $_SERVER['PHP_SELF'] . '?action=clearhist" class="Kill" onClick="return clear();">' . $txt['sbox_HistoryClear'] . '</a>]';
|
||||
echo ' [<a href="' . $_SERVER['PHP_SELF'] . '?action=clearhist" class="Kill" onClick="return clearHist();">' . $txt['sbox_HistoryClear'] . '</a>]';
|
||||
} else {
|
||||
echo '[' . $txt['sbox_HistoryNotFound'] . ']';
|
||||
}
|
||||
|
||||
+8
-2
@@ -3,7 +3,7 @@ SMF Shoutbox
|
||||
</id>
|
||||
|
||||
<version>
|
||||
1.10
|
||||
1.11
|
||||
</version>
|
||||
|
||||
<mod info>
|
||||
@@ -31,6 +31,12 @@ Please direct any questions regarding this version to Deep, either by email (die
|
||||
in the appropriate place at www.simplemachines.org (the preferred option!)
|
||||
|
||||
History:
|
||||
Version 1.11
|
||||
+ added German language-pack
|
||||
+ added switch to disable linking to profile pages
|
||||
+ added switch to disable Refresh after there have been no posts in lastActive time
|
||||
* shortened some CSS classnames
|
||||
|
||||
Version 1.10
|
||||
1. sequential messages from one user have the same color
|
||||
2. character limit for one shout has been raised to 320 chars (like one long SMS ;-)
|
||||
@@ -103,7 +109,7 @@ $txt['sbox_TextColor1'] = '1. Font color';
|
||||
$txt['sbox_TextSize2'] = '2. Font size';
|
||||
$txt['sbox_TextColor2'] = '2. Font color';
|
||||
$txt['sbox_RefreshTime'] = 'Refresh time';
|
||||
$txt['sbox_BlockRefresh'] = 'Block Refresh after inactivity';
|
||||
$txt['sbox_BlockRefresh'] = 'Block Refresh after inactivity (' . $modSettings['lastActive'] . ' mins)';
|
||||
$txt['sbox_BackgroundColor'] = 'Background color';
|
||||
$txt['sbox_FontFamily1'] = '1. Font family';
|
||||
$txt['sbox_FontFamily2'] = '2. Font family';
|
||||
|
||||
Reference in New Issue
Block a user