Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
smf-shoutbox/sbox_latest.xml
mbirth 9e79adb291 * version 1.17
x security fixes: trying to prevent SQL injection, filter out bad numeric entities
* prevent guests from manually loading sboxDB.php, show login-message instead
2008-02-20 22:46:17 +00:00

297 lines
12 KiB
XML

<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This is a modification file for SMF.
ATTENTION: If you are trying to install this manually, you should try
the package manager. If it will not work for you, please take a look
at the following for information on this format:
http://mods.simplemachines.org/docs/manual-install.php
================================================================================
Modification files can be used to modify files so that they do what
your package needs them to do to work properly.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<!-- This information needs to be the same as that in the package-info.xml. -->
<id>Deep:SMF_Shoutbox</id>
<version>1.17</version>
<!-- Edit BoardIndex.template.php in the SMF Default Theme. -->
<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="replace"><![CDATA[
}
/* Each category in categories is made up of:
]]></search>
<add><![CDATA[
}
// display shoutbox
if (function_exists('sbox')) sbox();
/* Each category in categories is made up of:
]]></add>
</operation>
</file>
<!-- Edit BoardIndex.template.php in the classic Theme. -->
<file name="$themes_dir/classic/BoardIndex.template.php" error="skip">
<operation>
<search position="replace"><![CDATA[
}
// Show the "Board name Topics Posts Last Post" header.
]]></search>
<add><![CDATA[
}
// display shoutbox
if (function_exists('sbox')) sbox();
// Show the "Board name Topics Posts Last Post" header.
]]></add>
</operation>
</file>
<!-- Edit BoardIndex.template.php in the Babylon Theme. -->
<file name="$themes_dir/babylon/BoardIndex.template.php" error="skip">
<operation>
<search position="replace"><![CDATA[
}
/* Each category in categories is made up of:
]]></search>
<add><![CDATA[
}
// display shoutbox
if (function_exists('sbox')) sbox();
/* Each category in categories is made up of:
]]></add>
</operation>
</file>
<!-- Edit BoardIndex.template.php in the blackTed Theme. -->
<file name="$themes_dir/blackTed/BoardIndex.template.php" error="skip">
<operation>
<search position="replace"><![CDATA[
}
/* Each category in categories is made up of:
]]></search>
<add><![CDATA[
}
// display shoutbox
if (function_exists('sbox')) sbox();
/* Each category in categories is made up of:
]]></add>
</operation>
</file>
<!-- Edit Subs.php and add sbox(). -->
<file name="$sourcedir/Subs.php">
<operation>
<search position="end" />
<add><![CDATA[
function sbox() {
global $sourcedir;
include_once("$sourcedir/sbox.php");
sbox_display();
}
]]></add>
</operation>
</file>
<!-- Edit Help.english.php and add strings. -->
<file name="$languagedir/Help.english.php">
<operation>
<search position="end" />
<add><![CDATA[
//SMF Shoutbox
$helptxt['sbox_Visible'] = 'Here you can decide wether the shoutbox is visible at all or not.';
$helptxt['sbox_ModsRule'] = 'This enables anyone who has the <i>moderate_board</i> permission on at least one board, to delete shouts.';
$helptxt['sbox_DoHistory'] = 'Defines whether all shouts should be written to a file so that an Administrator can check what was going on. The filename is defined in the sboxDB.php. <b>Change it to a path where only Admins have access to!</b>';
$helptxt['sbox_GuestVisible'] = 'Defines whether the Shoutbox is visible to guests at all.';
$helptxt['sbox_GuestAllowed'] = 'Here you can decide whether guests are allowed to post new shouts.';
$helptxt['sbox_GuestBBC'] = 'Here you can switch BBCode parsing for Guest-shouts. Note that this won\'t work if the <i>Allow BBCode</i> setting is turned off.';
$helptxt['sbox_SmiliesVisible'] = 'Here you can decide whether smileys are visible or not. They work independently of this setting, though.';
$helptxt['sbox_UserLinksVisible'] = 'Defines whether the names of shouters are linked to their profile page or not.';
$helptxt['sbox_AllowBBC'] = 'Defines whether users are allowed to use BBCode in shouts. If disabled, only plain text is displayed - no smileys, no formatting. This option also affects the <i>Allow BBCode for Guest-shouts</i>-option.';
$helptxt['sbox_NewShoutsBar'] = 'Enable to show a line between new shouts (since the last refresh) and old ones.';
$helptxt['sbox_RefreshTime'] = 'Here you can adjust the refresh time';
$helptxt['sbox_BlockRefresh'] = 'Defines whether the Shoutbox should stop refreshing after there have been no new shouts for a while. Users can still manually refresh the Shoutbox. The time treshold used is the <i>User online time treshold</i> found in the <i>Basic Features</i>-settings. (currently ' . $modSettings['lastActive'] . ' minutes)';
$helptxt['sbox_EnableSounds'] = 'Enables the notification sound, when your nickname was mentioned since the last refresh.';
$helptxt['sbox_DarkThemes'] = 'Enter all of your dark theme\'s directories separated by a vertical line. For those themes, every second shout will have the <i>2. Font color for dark themes</i> instead of that for light ones. It\'s your turn to find those two colors matching (or being readable in) all your themes.';
]]></add>
</operation>
</file>
<!-- Edit Help.german.php and add strings. -->
<file name="$languagedir/Help.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
//SMF Shoutbox
$helptxt['sbox_Visible'] = 'Hier k&ouml;nnen Sie einstellen, ob die Shoutbox sichtbar ist oder nicht. Diese Einstellung gilt f&uuml;r ALLE Benutzer.';
$helptxt['sbox_ModsRule'] = 'Dies erlaubt jedem, der die <i>moderate_board</i>-Berechtigung auf mindestens einem Board hat, Shouts zu l&ouml;schen.';
$helptxt['sbox_DoHistory'] = 'Legt fest, ob alle Shouts auch in eine Verlaufsdatei geschrieben werden sollen, so dass ein Administrator angebliche Vorf&auml;lle nachpr&uuml;fen kann. Der Dateiname wird in der sboxDB.php festgelegt. <b>Bitte auf einen Pfad setzen, wo nur der Administrator Zugriff hat!</b>';
$helptxt['sbox_GuestVisible'] = 'Hiermit k&ouml;nnen Sie festlegen, ob G&auml;ste die Shoutbox &uuml;berhaupt sehen k&ouml;nnen oder nicht.';
$helptxt['sbox_GuestAllowed'] = 'Hier k&ouml;nnen Sie einstellen, ob G&auml;ste die Shoutbox benutzen d&uuml;rfen.';
$helptxt['sbox_GuestBBC'] = 'Hier k&ouml;nnen Sie BBCode f&uuml;r Gast-Shouts ein- oder ausschalten. Beachten Sie bitte, dass dies auch von der Einstellung <i>BBCode erlauben</i> abh&auml;ngig ist.';
$helptxt['sbox_SmiliesVisible'] = 'Hier k&ouml;nnen Sie einstellen, ob die Smilies sichtbar sind oder nicht. Diese Einstellung gilt f&uuml;r ALLE Benutzer.';
$helptxt['sbox_UserLinksVisible'] = 'Legt fest, ob die Namen der Shouter mit deren Profilseite verlinkt werden sollen oder nicht.';
$helptxt['sbox_AllowBBC'] = 'Legt fest, ob Benutzer BBCode in Shouts benutzen k&ouml;nnen. Wenn dies deaktiviert ist, wird nur Klartext angezeigt - ohne Smileys oder Formatierungen. Diese Option beeinflusst auch die <i>BBCode f&uuml;r G&auml;ste erlauben</i>-Option.';
$helptxt['sbox_NewShoutsBar'] = 'Ist diese Option aktiviert, wird eine Linie zwischen neuen Shouts (seit dem letzten Refresh) und &auml;lteren gezeigt.';
$helptxt['sbox_RefreshTime'] = 'Hier k&ouml;nnen Sie das Aktualisierungsintervall einstellen, also die Anzahl der Sekunden, die vergehen m&uuml;ssen, bevor sich die Shoutbox automatisch aktualisiert.';
$helptxt['sbox_BlockRefresh'] = 'Legt fest, ob die automatische Aktualisierung nach eine Weile Inaktivit&auml;t automatisch gestoppt werden soll. Benutzer k&ouml;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_EnableSounds'] = 'Aktiviert einen Ton, der gespielt wird, wenn der eigene Nickname in einem neuen Shout auftaucht.';
$helptxt['sbox_DarkThemes'] = 'Geben Sie hier die Verzeichnisnamen Ihrer dunkleren Themen getrennt durch eine vertikale Linie an. F&uuml;r diese wird dann f&uuml;r jeden zweiten Shout die <i>2. Schriftfarbe f&uuml;r dunkle Themes</i> verwendet. Es liegt an Ihnen, eine Farbe zu finden, die in s&auml;mtlichen Ihrer dunklen Themen gut lesbar ist.';
]]></add>
</operation>
</file>
<!-- Edit ModSettings.php and add settings stuff. -->
<file name="$sourcedir/ModSettings.php">
<operation>
<search position="after"><![CDATA[
);
// By default do the basic settings.
]]></search>
<add><![CDATA[
'sbox' => 'ModifySboxSettings',
]]></add>
</operation>
<operation>
<search position="after"><![CDATA[
);
// Default to core (I assume)
]]></search>
<add><![CDATA[
'sbox' => 'ModifySboxSettings',
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
]]></search>
<add><![CDATA[
'sbox' => array(
'title' => $txt['sbox_ModTitle'],
'href' => $scripturl . '?action=featuresettings;sa=sbox;sesc=' . $context['session_id'],
),
]]></add>
</operation>
<operation>
<search position="end" />
<add><![CDATA[
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);
}
]]></add>
</operation>
</file>
</modification>