This commit is contained in:
dmzx
2015-04-22 21:34:31 +02:00
parent 306c02bca5
commit bdd08b5d61
27 changed files with 444 additions and 444 deletions

View File

@@ -26,7 +26,7 @@
"extra": { "extra": {
"display-name": "mChat Extension", "display-name": "mChat Extension",
"soft-require": { "soft-require": {
"phpbb/phpbb": "3.1.*" "phpbb/phpbb": "3.1.*"
} }
} }
} }

View File

@@ -92,10 +92,10 @@ class render_helper
//chat enabled //chat enabled
if (!$this->config['mchat_enable']) if (!$this->config['mchat_enable'])
{ {
trigger_error($user->lang['MCHAT_ENABLE'], E_USER_NOTICE); trigger_error($user->lang['MCHAT_ENABLE'], E_USER_NOTICE);
} }
// avatars // avatars
if (!function_exists('get_user_avatar')) if (!function_exists('get_user_avatar'))
{ {
include($this->phpbb_root_path . 'includes/functions_display.' . $this->phpEx); include($this->phpbb_root_path . 'includes/functions_display.' . $this->phpEx);
@@ -133,7 +133,7 @@ class render_helper
// grab fools..uhmmm, foes the user has // grab fools..uhmmm, foes the user has
$foes_array = array(); $foes_array = array();
$sql = 'SELECT * FROM ' . ZEBRA_TABLE . ' $sql = 'SELECT * FROM ' . ZEBRA_TABLE . '
WHERE user_id = ' . $this->user->data['user_id'] . ' AND foe = 1'; WHERE user_id = ' . $this->user->data['user_id'] . ' AND foe = 1';
$result = $this->db->sql_query($sql); $result = $this->db->sql_query($sql);
while ($row = $this->db->sql_fetchrow($result)) while ($row = $this->db->sql_fetchrow($result))
{ {
@@ -355,7 +355,7 @@ class render_helper
//add to navlinks //add to navlinks
$this->template->assign_block_vars('navlinks', array( $this->template->assign_block_vars('navlinks', array(
'FORUM_NAME' => $this->user->lang['MCHAT_ARCHIVE_PAGE'], 'FORUM_NAME' => $this->user->lang['MCHAT_ARCHIVE_PAGE'],
'U_VIEW_FORUM' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'archive')), 'U_VIEW_FORUM' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'archive')),
)); ));
// If archive mode request set true // If archive mode request set true
$mchat_archive_mode = true; $mchat_archive_mode = true;
@@ -857,7 +857,7 @@ class render_helper
// user has permissions to view the custom chat? // user has permissions to view the custom chat?
if (!$mchat_view && $mchat_custom_page) if (!$mchat_view && $mchat_custom_page)
{ {
trigger_error($user->lang['NOT_AUTHORISED'], E_USER_NOTICE); trigger_error($user->lang['NOT_AUTHORISED'], E_USER_NOTICE);
} }
// if whois true // if whois true
@@ -906,7 +906,7 @@ class render_helper
} }
$this->template->assign_block_vars('navlinks', array( $this->template->assign_block_vars('navlinks', array(
'FORUM_NAME' => $this->user->lang['MCHAT_TITLE'], 'FORUM_NAME' => $this->user->lang['MCHAT_TITLE'],
'U_VIEW_FORUM' => $this->helper->route('dmzx_mchat_controller'), 'U_VIEW_FORUM' => $this->helper->route('dmzx_mchat_controller'),
)); ));
} }
@@ -1086,7 +1086,7 @@ class render_helper
'L_MCHAT_COPYRIGHT' => $copyright, 'L_MCHAT_COPYRIGHT' => $copyright,
'MCHAT_WHOIS' => $this->config_mchat['whois'], 'MCHAT_WHOIS' => $this->config_mchat['whois'],
'MCHAT_MESSAGE_LNGTH' => $this->config_mchat['max_message_lngth'], 'MCHAT_MESSAGE_LNGTH' => $this->config_mchat['max_message_lngth'],
'L_MCHAT_MESSAGE_LNGTH_EXPLAIN' => (intval($this->config_mchat['max_message_lngth'])) ? sprintf($this->user->lang['MCHAT_MESSAGE_LNGTH_EXPLAIN'], intval($this->config_mchat['max_message_lngth'])) : '', 'L_MCHAT_MESSAGE_LNGTH_EXPLAIN' => (intval($this->config_mchat['max_message_lngth'])) ? sprintf($this->user->lang['MCHAT_MESSAGE_LNGTH_EXPLAIN'], intval($this->config_mchat['max_message_lngth'])) : '',
'MCHAT_MESS_LONG' => sprintf($this->user->lang['MCHAT_MESS_LONG'], $this->config_mchat['max_message_lngth']), 'MCHAT_MESS_LONG' => sprintf($this->user->lang['MCHAT_MESS_LONG'], $this->config_mchat['max_message_lngth']),
'MCHAT_USER_TIMEOUT' => $this->config_mchat['timeout'] ? 1000 * $this->config_mchat['timeout'] : false, 'MCHAT_USER_TIMEOUT' => $this->config_mchat['timeout'] ? 1000 * $this->config_mchat['timeout'] : false,
'MCHAT_WHOIS_REFRESH' => 1000 * $this->config_mchat['whois_refresh'], 'MCHAT_WHOIS_REFRESH' => 1000 * $this->config_mchat['whois_refresh'],

View File

@@ -59,7 +59,7 @@ class listener implements EventSubscriberInterface
static public function getSubscribedEvents() static public function getSubscribedEvents()
{ {
return array( return array(
'core.viewonline_overwrite_location' => 'add_page_viewonline', 'core.viewonline_overwrite_location' => 'add_page_viewonline',
'core.user_setup' => 'load_language_on_setup', 'core.user_setup' => 'load_language_on_setup',
'core.page_header' => 'add_page_header_link', 'core.page_header' => 'add_page_header_link',
'core.index_modify_page_title' => 'display_mchat_on_index', 'core.index_modify_page_title' => 'display_mchat_on_index',
@@ -71,11 +71,11 @@ class listener implements EventSubscriberInterface
{ {
global $user, $phpbb_container, $phpEx; global $user, $phpbb_container, $phpEx;
if (strrpos($event['row']['session_page'], 'app.' . $phpEx . '/chat') === 0) if (strrpos($event['row']['session_page'], 'app.' . $phpEx . '/chat') === 0)
{ {
$event['location'] = $user->lang('MCHAT_TITLE'); $event['location'] = $user->lang('MCHAT_TITLE');
$event['location_url'] = $phpbb_container->get('controller.helper')->route('dmzx_mchat_controller'); $event['location_url'] = $phpbb_container->get('controller.helper')->route('dmzx_mchat_controller');
} }
} }
public function load_language_on_setup($event) public function load_language_on_setup($event)
@@ -125,9 +125,9 @@ class listener implements EventSubscriberInterface
public function posting_modify_submit_post_after($event) public function posting_modify_submit_post_after($event)
{ {
// only trigger if mode is post // only trigger if mode is post
$mchat_forums_allowed = array(); $mchat_forums_allowed = array();
if ($event['mode'] == 'post' || $event['mode'] == 'reply' || $event['mode'] == 'quote'|| $event['mode'] == 'edit' && (isset($this->config['mchat_enable']) && $this->config['mchat_enable']) && (isset($this->config['mchat_new_posts']) && $this->config['mchat_new_posts'])) if ($event['mode'] == 'post' || $event['mode'] == 'reply' || $event['mode'] == 'quote'|| $event['mode'] == 'edit' && (isset($this->config['mchat_enable']) && $this->config['mchat_enable']) && (isset($this->config['mchat_new_posts']) && $this->config['mchat_new_posts']))
{ {
if ($event['mode'] == 'post' && (isset($this->config['mchat_new_posts_topic']) && $this->config['mchat_new_posts_topic'])) if ($event['mode'] == 'post' && (isset($this->config['mchat_new_posts_topic']) && $this->config['mchat_new_posts_topic']))
{ {
@@ -150,26 +150,26 @@ class listener implements EventSubscriberInterface
return; return;
} }
// Data... // Data...
$message = utf8_normalize_nfc($mchat_new_data . ': [url=' . generate_board_url() . '/viewtopic.' . $this->phpEx . '?p=' . $event['data']['post_id'] . '#p' . $event['data']['post_id'] . ']' . $event['post_data']['post_subject'] . '[/url] '. $this->user->lang['MCHAT_IN'] .' [url=' . generate_board_url() . '/viewforum.' . $this->phpEx . '?f=' . $event['forum_id'] . ']' . $event['post_data']['forum_name'] . ' [/url] ' . $this->user->lang['MCHAT_IN_SECTION']); $message = utf8_normalize_nfc($mchat_new_data . ': [url=' . generate_board_url() . '/viewtopic.' . $this->phpEx . '?p=' . $event['data']['post_id'] . '#p' . $event['data']['post_id'] . ']' . $event['post_data']['post_subject'] . '[/url] '. $this->user->lang['MCHAT_IN'] .' [url=' . generate_board_url() . '/viewforum.' . $this->phpEx . '?f=' . $event['forum_id'] . ']' . $event['post_data']['forum_name'] . ' [/url] ' . $this->user->lang['MCHAT_IN_SECTION']);
$uid = $bitfield = $options = ''; // will be modified by generate_text_for_storage $uid = $bitfield = $options = ''; // will be modified by generate_text_for_storage
generate_text_for_storage($message, $uid, $bitfield, $options, true, false, false); generate_text_for_storage($message, $uid, $bitfield, $options, true, false, false);
$sql_ary = array( $sql_ary = array(
'forum_id' => $event['forum_id'], 'forum_id' => $event['forum_id'],
'post_id' => $event['post_id'], 'post_id' => $event['post_id'],
'user_id' => $this->user->data['user_id'], 'user_id' => $this->user->data['user_id'],
'user_ip' => $this->user->data['session_ip'], 'user_ip' => $this->user->data['session_ip'],
'message' => $message, 'message' => $message,
'bbcode_bitfield' => $bitfield, 'bbcode_bitfield' => $bitfield,
'bbcode_uid' => $uid, 'bbcode_uid' => $uid,
'bbcode_options' => $options, 'bbcode_options' => $options,
'message_time' => time() 'message_time' => time()
); );
$sql = 'INSERT INTO ' . $this->table_prefix . \dmzx\mchat\core\functions_mchat::MCHAT_TABLE . ' ' . $this->db->sql_build_array('INSERT', $sql_ary); $sql = 'INSERT INTO ' . $this->table_prefix . \dmzx\mchat\core\functions_mchat::MCHAT_TABLE . ' ' . $this->db->sql_build_array('INSERT', $sql_ary);
$this->db->sql_query($sql); $this->db->sql_query($sql);
} }
} }
} }

View File

@@ -12,12 +12,12 @@
*/ */
if (!defined('IN_PHPBB')) if (!defined('IN_PHPBB'))
{ {
exit; exit;
} }
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();
} }
// DEVELOPERS PLEASE NOTE // DEVELOPERS PLEASE NOTE
@@ -78,7 +78,7 @@ $lang = array_merge($lang, array(
'MCHAT_NOMESSAGEINPUT' => 'Du hast keine Nachricht eingegeben', 'MCHAT_NOMESSAGEINPUT' => 'Du hast keine Nachricht eingegeben',
'MCHAT_NOSMILE' => 'Keine Smilies gefunden', 'MCHAT_NOSMILE' => 'Keine Smilies gefunden',
'MCHAT_NOTINSTALLED_USER' => 'Der mChat ist nicht installiert. Bitte kontaktiere den Boardgründer.', 'MCHAT_NOTINSTALLED_USER' => 'Der mChat ist nicht installiert. Bitte kontaktiere den Boardgründer.',
'MCHAT_NOT_INSTALLED' => 'Die mChat Datenbankeinträge fehlen.<br />Führe bitte den %sInstaller%s aus, um die Datenbankänderungen für mChat durchzuführen.', 'MCHAT_NOT_INSTALLED' => 'Die mChat Datenbankeinträge fehlen.<br />Führe bitte den %sInstaller%s aus, um die Datenbankänderungen für mChat durchzuführen.',
'MCHAT_OK' => 'OK', 'MCHAT_OK' => 'OK',
'MCHAT_PAUSE' => 'Pausiert', 'MCHAT_PAUSE' => 'Pausiert',
'MCHAT_LOAD' => 'Wird geladen', 'MCHAT_LOAD' => 'Wird geladen',
@@ -122,14 +122,14 @@ $lang = array_merge($lang, array(
//Preferences //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'mChat Tabelle löschen', 'LOG_MCHAT_TABLE_PRUNED' => 'mChat Tabelle löschen',
'ACP_USER_MCHAT' => 'mChat Einstellung', 'ACP_USER_MCHAT' => 'mChat Einstellung',
'LOG_DELETED_MCHAT' => '<strong>Lösche mChat Nachricht</strong><br />» %1$en', 'LOG_DELETED_MCHAT' => '<strong>Lösche mChat Nachricht</strong><br />» %1$en',
'LOG_EDITED_MCHAT' => '<strong>Editiere mChat Nachricht</strong><br />» %1$en', 'LOG_EDITED_MCHAT' => '<strong>Editiere mChat Nachricht</strong><br />» %1$en',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Zeichen übrig: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Zeichen übrig: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Poster', 'MCHAT_TOP_POSTERS' => 'Top Poster',
'MCHAT_NEW_CHAT' => 'Neue mChat Nachricht!', 'MCHAT_NEW_CHAT' => 'Neue mChat Nachricht!',
'MCHAT_SEND_PM' => 'Sende private Nachricht', 'MCHAT_SEND_PM' => 'Sende private Nachricht',
'MCHAT_PM' => '(PN)', 'MCHAT_PM' => '(PN)',
//Custom edits //Custom edits
'REPLY_WITH_LIKE' =>'mir gefällt dieser Beitrag', 'REPLY_WITH_LIKE' =>'mir gefällt dieser Beitrag',
)); ));

View File

@@ -94,7 +94,7 @@ $lang = array_merge($lang, array(
'MCHAT_BBCODES_DISALLOWED' => 'Nicht erlaubte BBcodes', 'MCHAT_BBCODES_DISALLOWED' => 'Nicht erlaubte BBcodes',
'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Hier kann man BBcodes eintragen, die <strong>nicht</strong> in einer Nachricht verwendet werden dürfen.<br />BBcodes mit einem senkrechten Strich trennen, beispielsweise: b|u|code', 'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Hier kann man BBcodes eintragen, die <strong>nicht</strong> in einer Nachricht verwendet werden dürfen.<br />BBcodes mit einem senkrechten Strich trennen, beispielsweise: b|u|code',
'MCHAT_STATIC_MESSAGE' => 'Permanente Nachricht in der Chatbox', 'MCHAT_STATIC_MESSAGE' => 'Permanente Nachricht in der Chatbox',
'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Hier kannst du eine permanente Nachricht für die Benutzer des mChats eingeben.<br />Lass es frei um keine Nachricht anzuzeigen. Deine Nachricht kann 255 Zeichen umfassen.<br /><strong>Diese Nachricht kann auch übersetzt werden.</strong> (Editiere hierzu die Datei mchat_lang.php file und lies die Anweisungen.).', 'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Hier kannst du eine permanente Nachricht für die Benutzer des mChats eingeben.<br />Lass es frei um keine Nachricht anzuzeigen. Deine Nachricht kann 255 Zeichen umfassen.<br /><strong>Diese Nachricht kann auch übersetzt werden.</strong> (Editiere hierzu die Datei mchat_lang.php file und lies die Anweisungen.).',
'MCHAT_USER_TIMEOUT' => 'Zeitüberschreitung für Benutzer', 'MCHAT_USER_TIMEOUT' => 'Zeitüberschreitung für Benutzer',
'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Stelle einen Wert für die Zeitüberschreitung in Sekunden ein, nach der die Sitzung für einen Benutzer im mChat endet. Stelle 0 ein für kein Timeout Limit.<br /><em>Das Limit ist das Selbe, wie in deinen %sForum Einstellungen für Sitzungen%s. Derzeit beträgt dieser Wert %s Sekunden.</em>', 'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Stelle einen Wert für die Zeitüberschreitung in Sekunden ein, nach der die Sitzung für einen Benutzer im mChat endet. Stelle 0 ein für kein Timeout Limit.<br /><em>Das Limit ist das Selbe, wie in deinen %sForum Einstellungen für Sitzungen%s. Derzeit beträgt dieser Wert %s Sekunden.</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Smilielimit überschreiben?', 'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Smilielimit überschreiben?',
@@ -108,13 +108,13 @@ $lang = array_merge($lang, array(
'MCHAT_NEW_POSTS_REPLY' => 'Zeige neue Antworten in Beiträgen an', 'MCHAT_NEW_POSTS_REPLY' => 'Zeige neue Antworten in Beiträgen an',
'MCHAT_NEW_POSTS_REPLY_EXPLAIN' => 'Stelle auf Ja, damit beantwortete Beiträge aus dem Forum im Chat Nachrichtenbereich angezeigt werden.', 'MCHAT_NEW_POSTS_REPLY_EXPLAIN' => 'Stelle auf Ja, damit beantwortete Beiträge aus dem Forum im Chat Nachrichtenbereich angezeigt werden.',
'MCHAT_NEW_POSTS_EDIT' => 'Zeige editierte Beiträge an', 'MCHAT_NEW_POSTS_EDIT' => 'Zeige editierte Beiträge an',
'MCHAT_NEW_POSTS_EDIT_EXPLAIN' => 'Stelle auf Ja, damit bearbeitete Beiträge aus dem Forum im Chat Nachrichtenbereich angezeigt werden.', 'MCHAT_NEW_POSTS_EDIT_EXPLAIN' => 'Stelle auf Ja, damit bearbeitete Beiträge aus dem Forum im Chat Nachrichtenbereich angezeigt werden.',
'MCHAT_NEW_POSTS_QUOTE' => 'Zeige zitierte Beiträge an', 'MCHAT_NEW_POSTS_QUOTE' => 'Zeige zitierte Beiträge an',
'MCHAT_NEW_POSTS_QUOTE_EXPLAIN' => 'Stelle auf Ja, damit die zitierten Beiträge aus dem Forum im Chat Nachrichtenbereich angezeigt werden.', 'MCHAT_NEW_POSTS_QUOTE_EXPLAIN' => 'Stelle auf Ja, damit die zitierten Beiträge aus dem Forum im Chat Nachrichtenbereich angezeigt werden.',
'MCHAT_MAIN' => 'Hauptkonfiguration', 'MCHAT_MAIN' => 'Hauptkonfiguration',
'MCHAT_STATS' => 'Wer ist im mChat?', 'MCHAT_STATS' => 'Wer ist im mChat?',
'MCHAT_STATS_INDEX' => 'Anzeige auf dem Index', 'MCHAT_STATS_INDEX' => 'Anzeige auf dem Index',
'MCHAT_STATS_INDEX_EXPLAIN' => 'Zeigt auf dem Index an wer im Mini-Chat ist.', 'MCHAT_STATS_INDEX_EXPLAIN' => 'Zeigt auf dem Index an wer im Mini-Chat ist.',
'MCHAT_MESSAGE_TOP' => 'Nachricht unten / oben', 'MCHAT_MESSAGE_TOP' => 'Nachricht unten / oben',
'MCHAT_MESSAGE_TOP_EXPLAIN' => 'Hier kannst Du einstellen, ob der Nachrichtenbereich oben oder unten angezeigt werden soll.', 'MCHAT_MESSAGE_TOP_EXPLAIN' => 'Hier kannst Du einstellen, ob der Nachrichtenbereich oben oder unten angezeigt werden soll.',
'MCHAT_BOTTOM' => 'Unten', 'MCHAT_BOTTOM' => 'Unten',

View File

@@ -12,12 +12,12 @@
*/ */
if (!defined('IN_PHPBB')) if (!defined('IN_PHPBB'))
{ {
exit; exit;
} }
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();
} }
// DEVELOPERS PLEASE NOTE // DEVELOPERS PLEASE NOTE
@@ -77,7 +77,7 @@ $lang = array_merge($lang, array(
'MCHAT_NOMESSAGE' => 'No messages', 'MCHAT_NOMESSAGE' => 'No messages',
'MCHAT_NOMESSAGEINPUT' => 'You have not entered a message', 'MCHAT_NOMESSAGEINPUT' => 'You have not entered a message',
'MCHAT_NOSMILE' => 'Smilies not found', 'MCHAT_NOSMILE' => 'Smilies not found',
'MCHAT_NOTINSTALLED_USER' => 'mChat is not installed. Please notify the board founder.', 'MCHAT_NOTINSTALLED_USER' => 'mChat is not installed. Please notify the board founder.',
'MCHAT_NOT_INSTALLED' => 'mChat database entries are missing.<br />Please run the %sinstaller%s to make the database changes for the modification.', 'MCHAT_NOT_INSTALLED' => 'mChat database entries are missing.<br />Please run the %sinstaller%s to make the database changes for the modification.',
'MCHAT_OK' => 'OK', 'MCHAT_OK' => 'OK',
'MCHAT_PAUSE' => 'Paused', 'MCHAT_PAUSE' => 'Paused',
@@ -122,14 +122,14 @@ $lang = array_merge($lang, array(
//Preferences //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'mChat Table was pruned', 'LOG_MCHAT_TABLE_PRUNED' => 'mChat Table was pruned',
'ACP_USER_MCHAT' => 'mChat Settings', 'ACP_USER_MCHAT' => 'mChat Settings',
'LOG_DELETED_MCHAT' => '<strong>Deleted mChat message</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Deleted mChat message</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Edited mChat message</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Edited mChat message</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Characters remaining: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Characters remaining: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Spammers', 'MCHAT_TOP_POSTERS' => 'Top Spammers',
'MCHAT_NEW_CHAT' => 'New Chat Message!', 'MCHAT_NEW_CHAT' => 'New Chat Message!',
'MCHAT_SEND_PM' => 'Send Private Message', 'MCHAT_SEND_PM' => 'Send Private Message',
'MCHAT_PM' => '(PM)', 'MCHAT_PM' => '(PM)',
//Custom edits //Custom edits
'REPLY_WITH_LIKE' =>'Like This Post', 'REPLY_WITH_LIKE' =>'Like This Post',
)); ));

View File

@@ -47,7 +47,7 @@ $lang = array_merge($lang, array(
// ACP entries // ACP entries
'ACP_MCHAT_RULES' => 'Rules', 'ACP_MCHAT_RULES' => 'Rules',
'ACP_MCHAT_RULES_EXPLAIN' => 'Enter the rules of the forum here. Each rule on a new line.<br />You are limited to 255 characters.<br /><strong>This message can be translated.</strong> (you must edit the mchat_lang.php file and read the instructions).', 'ACP_MCHAT_RULES_EXPLAIN' => 'Enter the rules of the forum here. Each rule on a new line.<br />You are limited to 255 characters.<br /><strong>This message can be translated.</strong> (you must edit the mchat_lang.php file and read the instructions).',
'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Updated mChat config </strong>', 'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Updated mChat config </strong>',
'MCHAT_CONFIG_SAVED' => 'Mini Chat configuration has been updated', 'MCHAT_CONFIG_SAVED' => 'Mini Chat configuration has been updated',
'MCHAT_TITLE' => 'Mini-Chat', 'MCHAT_TITLE' => 'Mini-Chat',
@@ -94,7 +94,7 @@ $lang = array_merge($lang, array(
'MCHAT_BBCODES_DISALLOWED' => 'Disallowed bbcodes', 'MCHAT_BBCODES_DISALLOWED' => 'Disallowed bbcodes',
'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Here you can input the bbcodes that are <strong>not</strong> to be used in a message.<br />Separate bbcodes with a vertical bar, for example: <br />b|i|u|code|list|list=|flash|quote and/or a %scustom bbcode tag name%s', 'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Here you can input the bbcodes that are <strong>not</strong> to be used in a message.<br />Separate bbcodes with a vertical bar, for example: <br />b|i|u|code|list|list=|flash|quote and/or a %scustom bbcode tag name%s',
'MCHAT_STATIC_MESSAGE' => 'Static Message', 'MCHAT_STATIC_MESSAGE' => 'Static Message',
'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Here you can define a static message to display to users of the chat. HTML code is allowed.<br />Set to empty to disable the display. You are limited to 255 characters.<br /><strong>This message can be translated.</strong> (you must edit the mchat_lang.php file and read the instructions).', 'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Here you can define a static message to display to users of the chat. HTML code is allowed.<br />Set to empty to disable the display. You are limited to 255 characters.<br /><strong>This message can be translated.</strong> (you must edit the mchat_lang.php file and read the instructions).',
'MCHAT_USER_TIMEOUT' => 'User Timeout', 'MCHAT_USER_TIMEOUT' => 'User Timeout',
'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Set the amount of time, in seconds, until a users session in the chat ends. Set to 0 for no timeout.<br /><em>You are limited to the %sforum config setting for sessions%s which is currently set to %s seconds</em>', 'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Set the amount of time, in seconds, until a users session in the chat ends. Set to 0 for no timeout.<br /><em>You are limited to the %sforum config setting for sessions%s which is currently set to %s seconds</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Override smilie limit', 'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Override smilie limit',
@@ -124,8 +124,8 @@ $lang = array_merge($lang, array(
'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'If set Yes, then the chat will not autoupdate upon a user entering a message in the input area', 'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'If set Yes, then the chat will not autoupdate upon a user entering a message in the input area',
// error reporting // error reporting
'MCHAT_NEEDS_UPDATING' => 'The mChat extension needs updating. Please have a forum founder visit this section to run the installer.', 'MCHAT_NEEDS_UPDATING' => 'The mChat extension needs updating. Please have a forum founder visit this section to run the installer.',
'MCHAT_WRONG_VERSION' => 'The wrong version of the extension is installed. Please run the %sinstaller%s for the new version of the modification.', 'MCHAT_WRONG_VERSION' => 'The wrong version of the extension is installed. Please run the %sinstaller%s for the new version of the modification.',
'WARNING' => 'Warning', 'WARNING' => 'Warning',
'TOO_LONG_DATE' => 'The date format you entered is too long.', 'TOO_LONG_DATE' => 'The date format you entered is too long.',
'TOO_SHORT_DATE' => 'The date format you entered is too short.', 'TOO_SHORT_DATE' => 'The date format you entered is too short.',

View File

@@ -12,12 +12,12 @@
*/ */
if (!defined('IN_PHPBB')) if (!defined('IN_PHPBB'))
{ {
exit; exit;
} }
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();
} }
// DEVELOPERS PLEASE NOTE // DEVELOPERS PLEASE NOTE
@@ -77,7 +77,7 @@ $lang = array_merge($lang, array(
'MCHAT_NOMESSAGE' => 'No hay mensajes', 'MCHAT_NOMESSAGE' => 'No hay mensajes',
'MCHAT_NOMESSAGEINPUT' => 'Debe introducir un mensaje', 'MCHAT_NOMESSAGEINPUT' => 'Debe introducir un mensaje',
'MCHAT_NOSMILE' => 'No se encontraron emoticonos', 'MCHAT_NOSMILE' => 'No se encontraron emoticonos',
'MCHAT_NOTINSTALLED_USER' => 'mChat no esta instalado. Por favor, avise al fundador del foro.', 'MCHAT_NOTINSTALLED_USER' => 'mChat no esta instalado. Por favor, avise al fundador del foro.',
'MCHAT_NOT_INSTALLED' => 'Faltan entradas de mChat en la base de datos.<br />Por favor, ejecute el %sinstalador%s para crear los cambios de la modificación en la base de datos.', 'MCHAT_NOT_INSTALLED' => 'Faltan entradas de mChat en la base de datos.<br />Por favor, ejecute el %sinstalador%s para crear los cambios de la modificación en la base de datos.',
'MCHAT_OK' => 'OK', 'MCHAT_OK' => 'OK',
'MCHAT_PAUSE' => 'Pausado', 'MCHAT_PAUSE' => 'Pausado',
@@ -122,14 +122,14 @@ $lang = array_merge($lang, array(
//Preferences //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'La tabla de mChat ha sido limpiada', 'LOG_MCHAT_TABLE_PRUNED' => 'La tabla de mChat ha sido limpiada',
'ACP_USER_MCHAT' => 'Ajustes de mChat', 'ACP_USER_MCHAT' => 'Ajustes de mChat',
'LOG_DELETED_MCHAT' => '<strong>Mensaje de mChat borrado</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Mensaje de mChat borrado</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Mensaje de mChat editado</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Mensaje de mChat editado</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caracteres restantes: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caracteres restantes: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Spammers', 'MCHAT_TOP_POSTERS' => 'Top Spammers',
'MCHAT_NEW_CHAT' => '¡Nuevo mensaje en el Chat!', 'MCHAT_NEW_CHAT' => '¡Nuevo mensaje en el Chat!',
'MCHAT_SEND_PM' => 'Enviar mensaje privado', 'MCHAT_SEND_PM' => 'Enviar mensaje privado',
'MCHAT_PM' => '(MP)', 'MCHAT_PM' => '(MP)',
//Custom edits //Custom edits
'REPLY_WITH_LIKE' =>'Me gusta este mensaje', 'REPLY_WITH_LIKE' =>'Me gusta este mensaje',
)); ));

View File

@@ -47,8 +47,8 @@ $lang = array_merge($lang, array(
// ACP entries // ACP entries
'ACP_MCHAT_RULES' => 'Normas', 'ACP_MCHAT_RULES' => 'Normas',
'ACP_MCHAT_RULES_EXPLAIN' => 'Introduzca las Normas del foro aquí. Cada normas en una nueva línea.<br />Esto está limitado a 255 caracteres.<br /><strong>Este mensaje puede ser traducido.</strong> (hay que editar el archivo mchat_lang.php y lea las instrucciones).', 'ACP_MCHAT_RULES_EXPLAIN' => 'Introduzca las Normas del foro aquí. Cada normas en una nueva línea.<br />Esto está limitado a 255 caracteres.<br /><strong>Este mensaje puede ser traducido.</strong> (hay que editar el archivo mchat_lang.php y lea las instrucciones).',
'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Actualizada configuración de mChat </strong>', 'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Actualizada configuración de mChat </strong>',
'MCHAT_CONFIG_SAVED' => 'La configuración de Mini-Chat se ha actualizado', 'MCHAT_CONFIG_SAVED' => 'La configuración de Mini-Chat se ha actualizado',
'MCHAT_TITLE' => 'Mini-Chat', 'MCHAT_TITLE' => 'Mini-Chat',
'MCHAT_VERSION' => 'Versión:', 'MCHAT_VERSION' => 'Versión:',
@@ -67,7 +67,7 @@ $lang = array_merge($lang, array(
'MCHAT_REFRESH' => 'Refrescar', 'MCHAT_REFRESH' => 'Refrescar',
'MCHAT_REFRESH_EXPLAIN' => 'Número de segundos antes de que el chat se actualice automáticamente. <strong>No ponga menos de 5 segundos</strong>.', 'MCHAT_REFRESH_EXPLAIN' => 'Número de segundos antes de que el chat se actualice automáticamente. <strong>No ponga menos de 5 segundos</strong>.',
'MCHAT_PRUNE' => 'Habilitar purga', 'MCHAT_PRUNE' => 'Habilitar purga',
'MCHAT_PRUNE_EXPLAIN' => 'Se pone en SI para permitir la función purgar.<br /><em>Sólo ocurre si un usuario visita habitualmente las páginas de archivo</em>.', 'MCHAT_PRUNE_EXPLAIN' => 'Se pone en SI para permitir la función purgar.<br /><em>Sólo ocurre si un usuario visita habitualmente las páginas de archivo</em>.',
'MCHAT_PRUNE_NUM' => 'Numero de purga', 'MCHAT_PRUNE_NUM' => 'Numero de purga',
'MCHAT_PRUNE_NUM_EXPLAIN' => 'El número de mensajes de retener en el chat.', 'MCHAT_PRUNE_NUM_EXPLAIN' => 'El número de mensajes de retener en el chat.',
'MCHAT_MESSAGE_LIMIT' => 'Limite de mensajes', 'MCHAT_MESSAGE_LIMIT' => 'Limite de mensajes',
@@ -88,16 +88,16 @@ $lang = array_merge($lang, array(
'MCHAT_DATE_FORMAT_EXPLAIN' => 'La sintaxis usada es idéntica a la versión de ña función PHP <a href="http://www.php.net/date">date()</a>.', 'MCHAT_DATE_FORMAT_EXPLAIN' => 'La sintaxis usada es idéntica a la versión de ña función PHP <a href="http://www.php.net/date">date()</a>.',
'MCHAT_CUSTOM_DATEFORMAT' => 'Personalizar...', 'MCHAT_CUSTOM_DATEFORMAT' => 'Personalizar...',
'MCHAT_WHOIS' => 'Quienes', 'MCHAT_WHOIS' => 'Quienes',
'MCHAT_WHOIS_EXPLAIN' => 'Permitir una visualización de los usuarios que están chateando.', 'MCHAT_WHOIS_EXPLAIN' => 'Permitir una visualización de los usuarios que están chateando.',
'MCHAT_WHOIS_REFRESH' => 'Actualizar Quienes', 'MCHAT_WHOIS_REFRESH' => 'Actualizar Quienes',
'MCHAT_WHOIS_REFRESH_EXPLAIN' => 'Número de segundos antes de que actualiza las estadísticas Quienes.<br /><strong>No ponga menos de 30 segundos</strong>.', 'MCHAT_WHOIS_REFRESH_EXPLAIN' => 'Número de segundos antes de que actualiza las estadísticas Quienes.<br /><strong>No ponga menos de 30 segundos</strong>.',
'MCHAT_BBCODES_DISALLOWED' => 'Deshabilitar BBCodes', 'MCHAT_BBCODES_DISALLOWED' => 'Deshabilitar BBCodes',
'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Aquí puede introducir el tipo de bbcode que <strong>no</strong> se van a utilizar en un mensaje.<br />Separar BBcodes con una barra vertical, por ejemplo: b|u|code', 'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Aquí puede introducir el tipo de bbcode que <strong>no</strong> se van a utilizar en un mensaje.<br />Separar BBcodes con una barra vertical, por ejemplo: b|u|code',
'MCHAT_STATIC_MESSAGE' => 'Mensaje estatico', 'MCHAT_STATIC_MESSAGE' => 'Mensaje estatico',
'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Aquí puede definir un mensaje estatico que se mostrara a los usuarios en el chat.<br />Dejelo vacio para desactivarlo. Está limitado a 255 caracteres.<br /><strong>Este mensaje puede ser traducido.</strong> (solo necesita editar el archivo mchat_lang.php y leer las instrucciones).', 'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Aquí puede definir un mensaje estatico que se mostrara a los usuarios en el chat.<br />Dejelo vacio para desactivarlo. Está limitado a 255 caracteres.<br /><strong>Este mensaje puede ser traducido.</strong> (solo necesita editar el archivo mchat_lang.php y leer las instrucciones).',
'MCHAT_USER_TIMEOUT' => 'Tiempo de espera del usuario', 'MCHAT_USER_TIMEOUT' => 'Tiempo de espera del usuario',
'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Ajuste una cantidad de tiempo, en segundos, hasta que la sesión del usuario del chat finalice. Ponga 0 para no tener tiempo de espera.<br /><em>Está limitado a %sAjustes de configuración de sesiones del foro%s que actualmente está en %s segundos</em>', 'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Ajuste una cantidad de tiempo, en segundos, hasta que la sesión del usuario del chat finalice. Ponga 0 para no tener tiempo de espera.<br /><em>Está limitado a %sAjustes de configuración de sesiones del foro%s que actualmente está en %s segundos</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Reemplazar límite de emoticonos', 'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Reemplazar límite de emoticonos',
'MCHAT_OVERRIDE_SMILIE_LIMIT_EXPLAIN' => 'Poner en Si, para reemplazar el ajuste del limite de emoticonos de los foros para los mensajes del chat', 'MCHAT_OVERRIDE_SMILIE_LIMIT_EXPLAIN' => 'Poner en Si, para reemplazar el ajuste del limite de emoticonos de los foros para los mensajes del chat',
'MCHAT_OVERRIDE_MIN_POST_CHARS' => 'Reemplazar límite de caracteres minimos', 'MCHAT_OVERRIDE_MIN_POST_CHARS' => 'Reemplazar límite de caracteres minimos',
'MCHAT_OVERRIDE_MIN_POST_CHARS_EXPLAIN' => 'Poner Si, para sobrescribir los ajustes de caracteres minimos del foro, en los mensajes del chat', 'MCHAT_OVERRIDE_MIN_POST_CHARS_EXPLAIN' => 'Poner Si, para sobrescribir los ajustes de caracteres minimos del foro, en los mensajes del chat',
@@ -124,8 +124,8 @@ $lang = array_merge($lang, array(
'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'Si pone Si, el chat no se actualizara automaticamente hasta que el usuario introduzca un mensaje', 'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'Si pone Si, el chat no se actualizara automaticamente hasta que el usuario introduzca un mensaje',
// error reporting // error reporting
'MCHAT_NEEDS_UPDATING' => 'El MOD de mChat necesita ser actualizado. Por favor, que uno de los fundadores del foro visite esta sección para ejecutar el instalador.', 'MCHAT_NEEDS_UPDATING' => 'El MOD de mChat necesita ser actualizado. Por favor, que uno de los fundadores del foro visite esta sección para ejecutar el instalador.',
'MCHAT_WRONG_VERSION' => 'Hay una versión del MOD instalada incorrecta. Por favor, ejecute el %sinstalador%s para la nueva versión de la modificación.', 'MCHAT_WRONG_VERSION' => 'Hay una versión del MOD instalada incorrecta. Por favor, ejecute el %sinstalador%s para la nueva versión de la modificación.',
'WARNING' => 'Advertencia', 'WARNING' => 'Advertencia',
'TOO_LONG_DATE' => 'El formato de fecha que ha entrado es demasiado largo.', 'TOO_LONG_DATE' => 'El formato de fecha que ha entrado es demasiado largo.',
'TOO_SHORT_DATE' => 'El formato de fecha que ha introducido es demasiado corto.', 'TOO_SHORT_DATE' => 'El formato de fecha que ha introducido es demasiado corto.',
@@ -141,14 +141,14 @@ $lang = array_merge($lang, array(
'TOO_LARGE_MAX_MESSAGE_LNGTH' => 'El máximo valor de longitud de cada mensaje demasiado largo.', 'TOO_LARGE_MAX_MESSAGE_LNGTH' => 'El máximo valor de longitud de cada mensaje demasiado largo.',
'TOO_SMALL_MAX_WORDS_LNGTH' => 'El valor máximo de palabras es demasiado corto.', 'TOO_SMALL_MAX_WORDS_LNGTH' => 'El valor máximo de palabras es demasiado corto.',
'TOO_LARGE_MAX_WORDS_LNGTH' => 'El valor máximo de palabras es demasiado largo.', 'TOO_LARGE_MAX_WORDS_LNGTH' => 'El valor máximo de palabras es demasiado largo.',
'TOO_SMALL_WHOIS_REFRESH' => 'El valor de refresco de whois es demasiado corto.', 'TOO_SMALL_WHOIS_REFRESH' => 'El valor de refresco de whois es demasiado corto.',
'TOO_LARGE_WHOIS_REFRESH' => 'El valor de refresco de whois es demasiado largo.', 'TOO_LARGE_WHOIS_REFRESH' => 'El valor de refresco de whois es demasiado largo.',
'TOO_SMALL_INDEX_HEIGHT' => 'El valor de la altura del índice es demasiado corto.', 'TOO_SMALL_INDEX_HEIGHT' => 'El valor de la altura del índice es demasiado corto.',
'TOO_LARGE_INDEX_HEIGHT' => 'El valor de la altura del índice es demasiado largo.', 'TOO_LARGE_INDEX_HEIGHT' => 'El valor de la altura del índice es demasiado largo.',
'TOO_SMALL_CUSTOM_HEIGHT' => 'El valor de la altura personalizada es demasiado corto.', 'TOO_SMALL_CUSTOM_HEIGHT' => 'El valor de la altura personalizada es demasiado corto.',
'TOO_LARGE_CUSTOM_HEIGHT' => 'El valor de la altura personalizada es demasiado largo.', 'TOO_LARGE_CUSTOM_HEIGHT' => 'El valor de la altura personalizada es demasiado largo.',
'TOO_SHORT_STATIC_MESSAGE' => 'El valor del mensaje estatico es demasiado corto.', 'TOO_SHORT_STATIC_MESSAGE' => 'El valor del mensaje estatico es demasiado corto.',
'TOO_LONG_STATIC_MESSAGE' => 'El valor del mensaje estatico es demasiado largo.', 'TOO_LONG_STATIC_MESSAGE' => 'El valor del mensaje estatico es demasiado largo.',
'TOO_SMALL_TIMEOUT' => 'El valor de tiempo de espera del usuario es demasiado corto.', 'TOO_SMALL_TIMEOUT' => 'El valor de tiempo de espera del usuario es demasiado corto.',
'TOO_LARGE_TIMEOUT' => 'El valor de tiempo de espera del usuario es demasiado largo.', 'TOO_LARGE_TIMEOUT' => 'El valor de tiempo de espera del usuario es demasiado largo.',

View File

@@ -12,12 +12,12 @@
*/ */
if (!defined('IN_PHPBB')) if (!defined('IN_PHPBB'))
{ {
exit; exit;
} }
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();
} }
// DEVELOPERS PLEASE NOTE // DEVELOPERS PLEASE NOTE
@@ -122,14 +122,14 @@ $lang = array_merge($lang, array(
//Preferences //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'La table du mini-chat a été délestée', 'LOG_MCHAT_TABLE_PRUNED' => 'La table du mini-chat a été délestée',
'ACP_USER_MCHAT' => 'Paramètres du mini-chat', 'ACP_USER_MCHAT' => 'Paramètres du mini-chat',
'LOG_DELETED_MCHAT' => '<strong>Les messages de mchat ont été supprimés</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Les messages de mchat ont été supprimés</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Les messages de mchat ont été édités</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Les messages de mchat ont été édités</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caractères restants: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caractères restants: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Spammers', 'MCHAT_TOP_POSTERS' => 'Top Spammers',
'MCHAT_NEW_CHAT' => 'Nouveau Message Dans Mchat!', 'MCHAT_NEW_CHAT' => 'Nouveau Message Dans Mchat!',
'MCHAT_SEND_PM' => 'Envoyer un message privé', 'MCHAT_SEND_PM' => 'Envoyer un message privé',
'MCHAT_PM' => '(MP)', 'MCHAT_PM' => '(MP)',
//Custom edits //Custom edits
'REPLY_WITH_LIKE' =>'Like This Post', 'REPLY_WITH_LIKE' =>'Like This Post',
)); ));

View File

@@ -12,12 +12,12 @@
*/ */
if (!defined('IN_PHPBB')) if (!defined('IN_PHPBB'))
{ {
exit; exit;
} }
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();
} }
// DEVELOPERS PLEASE NOTE // DEVELOPERS PLEASE NOTE
@@ -122,14 +122,14 @@ $lang = array_merge($lang, array(
//Preferences //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'mChat tabelle cancellate', 'LOG_MCHAT_TABLE_PRUNED' => 'mChat tabelle cancellate',
'ACP_USER_MCHAT' => 'mChat Opzioni', 'ACP_USER_MCHAT' => 'mChat Opzioni',
'LOG_DELETED_MCHAT' => '<strong>Cancella messaggi mChat</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Cancella messaggi mChat</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Modifica messaggi mChat</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Modifica messaggi mChat</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caratteri: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caratteri: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Miglior Spammer', 'MCHAT_TOP_POSTERS' => 'Miglior Spammer',
'MCHAT_NEW_CHAT' => 'Nuovo messaggio in Chat !', 'MCHAT_NEW_CHAT' => 'Nuovo messaggio in Chat !',
'MCHAT_SEND_PM' => 'Invia messaggio privato', 'MCHAT_SEND_PM' => 'Invia messaggio privato',
'MCHAT_PM' => '(PM)', 'MCHAT_PM' => '(PM)',
//Custom edits //Custom edits
'REPLY_WITH_LIKE' =>'Like This Post', 'REPLY_WITH_LIKE' =>'Like This Post',
)); ));

View File

@@ -47,7 +47,7 @@ $lang = array_merge($lang, array(
// ACP entries // ACP entries
'ACP_MCHAT_RULES' => 'Regole', 'ACP_MCHAT_RULES' => 'Regole',
'ACP_MCHAT_RULES_EXPLAIN' => 'Inserisci le regole per questo forum. Ogni regola su una nuova linea.<br />Limite a 255 caratteri.<br /><strong>Questo messaggio può essere tradotto.</strong> (è necessario modificare il file mchat_lang.php e leggere le istruzioni).', 'ACP_MCHAT_RULES_EXPLAIN' => 'Inserisci le regole per questo forum. Ogni regola su una nuova linea.<br />Limite a 255 caratteri.<br /><strong>Questo messaggio può essere tradotto.</strong> (è necessario modificare il file mchat_lang.php e leggere le istruzioni).',
'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Aggiornamento Configurazioni mChat </strong>', 'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Aggiornamento Configurazioni mChat </strong>',
'MCHAT_CONFIG_SAVED' => 'Mini Chat configurazioni salvate', 'MCHAT_CONFIG_SAVED' => 'Mini Chat configurazioni salvate',
'MCHAT_TITLE' => 'Mini-Chat', 'MCHAT_TITLE' => 'Mini-Chat',
@@ -77,7 +77,7 @@ $lang = array_merge($lang, array(
'MCHAT_ARCHIVE_LIMIT' => 'Archivio limite', 'MCHAT_ARCHIVE_LIMIT' => 'Archivio limite',
'MCHAT_ARCHIVE_LIMIT_EXPLAIN' => 'Il numero massimo di messaggi da visualizzare per pagina nella pagina di archivio.<br /> <em>Recommandato da 25 a 50</em>.', 'MCHAT_ARCHIVE_LIMIT_EXPLAIN' => 'Il numero massimo di messaggi da visualizzare per pagina nella pagina di archivio.<br /> <em>Recommandato da 25 a 50</em>.',
'MCHAT_FLOOD_TIME' => 'Tempo', 'MCHAT_FLOOD_TIME' => 'Tempo',
'MCHAT_FLOOD_TIME_EXPLAIN' => 'Il numero di secondi che un utente deve attendere prima di inviare un altro messaggio in chat.<br /><em>Recommandato da 5 a 30, imposta 0 per disabilitare</em>.', 'MCHAT_FLOOD_TIME_EXPLAIN' => 'Il numero di secondi che un utente deve attendere prima di inviare un altro messaggio in chat.<br /><em>Recommandato da 5 a 30, imposta 0 per disabilitare</em>.',
'MCHAT_MAX_MESSAGE_LENGTH' => 'Lunghezza massima messaggi', 'MCHAT_MAX_MESSAGE_LENGTH' => 'Lunghezza massima messaggi',
'MCHAT_MAX_MESSAGE_LENGTH_EXPLAIN' => 'Il numero massimo di caratteri consentiti per messaggio inviato.<br /><em>Recommandato da 100 a 500, imposta 0 per disabilitare</em>.', 'MCHAT_MAX_MESSAGE_LENGTH_EXPLAIN' => 'Il numero massimo di caratteri consentiti per messaggio inviato.<br /><em>Recommandato da 100 a 500, imposta 0 per disabilitare</em>.',
'MCHAT_CUSTOM_PAGE' => 'Pagina personalizzata', 'MCHAT_CUSTOM_PAGE' => 'Pagina personalizzata',
@@ -94,7 +94,7 @@ $lang = array_merge($lang, array(
'MCHAT_BBCODES_DISALLOWED' => 'Disabilita bbcodes', 'MCHAT_BBCODES_DISALLOWED' => 'Disabilita bbcodes',
'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Qui è possibile inserire i BBCodes che <strong>not</strong> saranno usati nei messaggi.<br />Separare i bbcodes con una barra verticale, ad esempio: <br />b|i|u|code|list|list=|flash|quote e/o a %scustom bbcode tag name%s', 'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Qui è possibile inserire i BBCodes che <strong>not</strong> saranno usati nei messaggi.<br />Separare i bbcodes con una barra verticale, ad esempio: <br />b|i|u|code|list|list=|flash|quote e/o a %scustom bbcode tag name%s',
'MCHAT_STATIC_MESSAGE' => 'Messaggi Statici', 'MCHAT_STATIC_MESSAGE' => 'Messaggi Statici',
'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Qui è possibile definire un messaggio statico da visualizzare agli utenti della chat. HTML codice è permesso.<br />Svuotare per disattivare la visualizzazione. Limite di 255 caratteri.<br /><strong>Questo messaggio può essere tradotto.</strong> (modificando il file mchat_lang.php leggere le istruzioni).', 'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Qui è possibile definire un messaggio statico da visualizzare agli utenti della chat. HTML codice è permesso.<br />Svuotare per disattivare la visualizzazione. Limite di 255 caratteri.<br /><strong>Questo messaggio può essere tradotto.</strong> (modificando il file mchat_lang.php leggere le istruzioni).',
'MCHAT_USER_TIMEOUT' => 'Timeout utente', 'MCHAT_USER_TIMEOUT' => 'Timeout utente',
'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Impostare la quantità di tempo, in secondi, fino una sessione utenti nella chat termina. Impostare a 0 per nessun timeout.<br /><em>Limite di %sforum config impostazioni a sessions%s che è attualmente impostato %s secondi</em>', 'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Impostare la quantità di tempo, in secondi, fino una sessione utenti nella chat termina. Impostare a 0 per nessun timeout.<br /><em>Limite di %sforum config impostazioni a sessions%s che è attualmente impostato %s secondi</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Limite smile', 'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Limite smile',

View File

@@ -12,12 +12,12 @@
*/ */
if (!defined('IN_PHPBB')) if (!defined('IN_PHPBB'))
{ {
exit; exit;
} }
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();
} }
// DEVELOPERS PLEASE NOTE // DEVELOPERS PLEASE NOTE
@@ -122,14 +122,14 @@ $lang = array_merge($lang, array(
//Preferences //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'mChat tabel is ingekort', 'LOG_MCHAT_TABLE_PRUNED' => 'mChat tabel is ingekort',
'ACP_USER_MCHAT' => 'mChat Instellingen', 'ACP_USER_MCHAT' => 'mChat Instellingen',
'LOG_DELETED_MCHAT' => '<strong>Verwijder mChat berichten</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Verwijder mChat berichten</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Bewerk mChat berichten</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Bewerk mChat berichten</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Overgebleven karakters: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Overgebleven karakters: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Spammers', 'MCHAT_TOP_POSTERS' => 'Top Spammers',
'MCHAT_NEW_CHAT' => 'Nieuw Chat bericht!', 'MCHAT_NEW_CHAT' => 'Nieuw Chat bericht!',
'MCHAT_SEND_PM' => 'Stuur prive bericht', 'MCHAT_SEND_PM' => 'Stuur prive bericht',
'MCHAT_PM' => '(PM)', 'MCHAT_PM' => '(PM)',
//Custom edits //Custom edits
'REPLY_WITH_LIKE' =>'Vindt dit bericht leuk', 'REPLY_WITH_LIKE' =>'Vindt dit bericht leuk',
)); ));

View File

@@ -47,7 +47,7 @@ $lang = array_merge($lang, array(
// ACP entries // ACP entries
'ACP_MCHAT_RULES' => 'Regels', 'ACP_MCHAT_RULES' => 'Regels',
'ACP_MCHAT_RULES_EXPLAIN' => 'Verander hier de regels van het forum. Elke regel op een nieuwe lijn.<br />Je kunt maximaal 255 karakters gebruiken.<br /><strong>Deze boodschap kan worden vertaald..</strong> (Je moet de mchat_lang.php file aanpassen en lees de instructies).', 'ACP_MCHAT_RULES_EXPLAIN' => 'Verander hier de regels van het forum. Elke regel op een nieuwe lijn.<br />Je kunt maximaal 255 karakters gebruiken.<br /><strong>Deze boodschap kan worden vertaald..</strong> (Je moet de mchat_lang.php file aanpassen en lees de instructies).',
'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Update mChat configuratie </strong>', 'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Update mChat configuratie </strong>',
'MCHAT_CONFIG_SAVED' => 'Mini Chat configuratie is bijgewerkt', 'MCHAT_CONFIG_SAVED' => 'Mini Chat configuratie is bijgewerkt',
'MCHAT_TITLE' => 'Mini-Chat', 'MCHAT_TITLE' => 'Mini-Chat',
@@ -94,7 +94,7 @@ $lang = array_merge($lang, array(
'MCHAT_BBCODES_DISALLOWED' => 'Niet toegestane bbcodes', 'MCHAT_BBCODES_DISALLOWED' => 'Niet toegestane bbcodes',
'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Hier kun je de bbcodes plaatsen, die <strong>niet</strong>zijn toegstaan<strong>not</strong> om te gebruiken in een bericht.<br />Aparte BBCodes met een verticale balk , bijvoorbeeld: <br />b|i|u|code|list|list=|flash|quote and/or a %scustom bbcode tag name%s', 'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Hier kun je de bbcodes plaatsen, die <strong>niet</strong>zijn toegstaan<strong>not</strong> om te gebruiken in een bericht.<br />Aparte BBCodes met een verticale balk , bijvoorbeeld: <br />b|i|u|code|list|list=|flash|quote and/or a %scustom bbcode tag name%s',
'MCHAT_STATIC_MESSAGE' => 'Statisch bericht', 'MCHAT_STATIC_MESSAGE' => 'Statisch bericht',
'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Hier kan je een statisch bericht definieren, welke getoond wordt aan de gebruikers van de mChat.<br />Stel 0 in om de vertoning uit te schakelen. Je bent gelimiteerd tot 255 karakters.<br /><strong>Deze boodschap kan worden vertaald..</strong> (Je moet de mchat_lang.php file aanpassen en lees de instructies).', 'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Hier kan je een statisch bericht definieren, welke getoond wordt aan de gebruikers van de mChat.<br />Stel 0 in om de vertoning uit te schakelen. Je bent gelimiteerd tot 255 karakters.<br /><strong>Deze boodschap kan worden vertaald..</strong> (Je moet de mchat_lang.php file aanpassen en lees de instructies).',
'MCHAT_USER_TIMEOUT' => 'Gebruiker timeout', 'MCHAT_USER_TIMEOUT' => 'Gebruiker timeout',
'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Stel hier de seconden in, wanneer de sessie van een gebruiker eindigd. Stel 0 om de timeout uit te schakelen.<br /><em>Je bent gelimiteerd tot de %sforum instellingen voor de chat sessie, welke momenteel is ingesteld op %s seconden</em>', 'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Stel hier de seconden in, wanneer de sessie van een gebruiker eindigd. Stel 0 om de timeout uit te schakelen.<br /><em>Je bent gelimiteerd tot de %sforum instellingen voor de chat sessie, welke momenteel is ingesteld op %s seconden</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Aantal smilie limiet', 'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Aantal smilie limiet',
@@ -125,7 +125,7 @@ $lang = array_merge($lang, array(
// error reporting // error reporting
'MCHAT_NEEDS_UPDATING' => 'De mChat extensie moet worden bijgewerkt. Neem contact op met de forum beheerder om de mChat bij te laten werken.', 'MCHAT_NEEDS_UPDATING' => 'De mChat extensie moet worden bijgewerkt. Neem contact op met de forum beheerder om de mChat bij te laten werken.',
'MCHAT_WRONG_VERSION' => 'De verkeerde versie van de extensie is geïnstalleerd. Gebruik a.u.b. de %sinstaller%s van de nieuwe versie voor eventuele wijzigingen.', 'MCHAT_WRONG_VERSION' => 'De verkeerde versie van de extensie is geïnstalleerd. Gebruik a.u.b. de %sinstaller%s van de nieuwe versie voor eventuele wijzigingen.',
'WARNING' => 'Waarschuwing', 'WARNING' => 'Waarschuwing',
'TOO_LONG_DATE' => 'De datum weergave die je hebt ingegeven is te lang.', 'TOO_LONG_DATE' => 'De datum weergave die je hebt ingegeven is te lang.',
'TOO_SHORT_DATE' => 'De datum weergave die je hebt ingegeven is te kort.', 'TOO_SHORT_DATE' => 'De datum weergave die je hebt ingegeven is te kort.',

View File

@@ -12,12 +12,12 @@
*/ */
if (!defined('IN_PHPBB')) if (!defined('IN_PHPBB'))
{ {
exit; exit;
} }
if (empty($lang) || !is_array($lang)) if (empty($lang) || !is_array($lang))
{ {
$lang = array(); $lang = array();
} }
// DEVELOPERS PLEASE NOTE // DEVELOPERS PLEASE NOTE
@@ -77,7 +77,7 @@ $lang = array_merge($lang, array(
'MCHAT_NOMESSAGE' => 'Nie ma wiadomości', 'MCHAT_NOMESSAGE' => 'Nie ma wiadomości',
'MCHAT_NOMESSAGEINPUT' => 'Nie wprowadziłeś wiadomości', 'MCHAT_NOMESSAGEINPUT' => 'Nie wprowadziłeś wiadomości',
'MCHAT_NOSMILE' => 'Nie znaleziono emotikona', 'MCHAT_NOSMILE' => 'Nie znaleziono emotikona',
'MCHAT_NOTINSTALLED_USER' => 'mChat nie jest zainstalowany. Proszę skontaktuj się z administratorem.', 'MCHAT_NOTINSTALLED_USER' => 'mChat nie jest zainstalowany. Proszę skontaktuj się z administratorem.',
'MCHAT_NOT_INSTALLED' => 'W bazie danych mChat brakuje.<br />Proszę uruchom %sinstalator%s aby wprowadzić zmiany w bazie danych rozszerzenia.', 'MCHAT_NOT_INSTALLED' => 'W bazie danych mChat brakuje.<br />Proszę uruchom %sinstalator%s aby wprowadzić zmiany w bazie danych rozszerzenia.',
'MCHAT_OK' => 'OK', 'MCHAT_OK' => 'OK',
'MCHAT_PAUSE' => 'Wstrzymany', 'MCHAT_PAUSE' => 'Wstrzymany',
@@ -122,14 +122,14 @@ $lang = array_merge($lang, array(
//Preferences //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'Tabela mChat została wyczyszczona', 'LOG_MCHAT_TABLE_PRUNED' => 'Tabela mChat została wyczyszczona',
'ACP_USER_MCHAT' => 'mChat Ustawienia', 'ACP_USER_MCHAT' => 'mChat Ustawienia',
'LOG_DELETED_MCHAT' => '<strong>Usuń wiadomości mChat</strong><br />» %1$s', 'LOG_DELETED_MCHAT' => '<strong>Usuń wiadomości mChat</strong><br />» %1$s',
'LOG_EDITED_MCHAT' => '<strong>Edytuj wiadomość mChat</strong><br />» %1$s', 'LOG_EDITED_MCHAT' => '<strong>Edytuj wiadomość mChat</strong><br />» %1$s',
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Pozostało znaków: <span class="charsLeft error"><strong>%d</strong></span>', 'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Pozostało znaków: <span class="charsLeft error"><strong>%d</strong></span>',
'MCHAT_TOP_POSTERS' => 'Top Spammerzy', 'MCHAT_TOP_POSTERS' => 'Top Spammerzy',
'MCHAT_NEW_CHAT' => 'Nowa wiadomośc na mChacie!', 'MCHAT_NEW_CHAT' => 'Nowa wiadomośc na mChacie!',
'MCHAT_SEND_PM' => 'Wyślij prywatną wiadomość', 'MCHAT_SEND_PM' => 'Wyślij prywatną wiadomość',
'MCHAT_PM' => '(PM)', 'MCHAT_PM' => '(PM)',
//Custom edits //Custom edits
'REPLY_WITH_LIKE' =>'Like This Post', 'REPLY_WITH_LIKE' =>'Like This Post',
)); ));

View File

@@ -47,7 +47,7 @@ $lang = array_merge($lang, array(
// ACP entries // ACP entries
'ACP_MCHAT_RULES' => 'Regulamin', 'ACP_MCHAT_RULES' => 'Regulamin',
'ACP_MCHAT_RULES_EXPLAIN' => 'Tutaj wprowadź regulamin mChat. Każdy podpunkt w oddzielnej lini.<br />Limit znaków wynosi 255.<br />', 'ACP_MCHAT_RULES_EXPLAIN' => 'Tutaj wprowadź regulamin mChat. Każdy podpunkt w oddzielnej lini.<br />Limit znaków wynosi 255.<br />',
'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Aktualizuj konfigurację mChat</strong>', 'LOG_MCHAT_CONFIG_UPDATE' => '<strong>Aktualizuj konfigurację mChat</strong>',
'MCHAT_CONFIG_SAVED' => 'Zaktualizowano konfigurację mChat', 'MCHAT_CONFIG_SAVED' => 'Zaktualizowano konfigurację mChat',
'MCHAT_TITLE' => 'Mini-Chat', 'MCHAT_TITLE' => 'Mini-Chat',
@@ -94,7 +94,7 @@ $lang = array_merge($lang, array(
'MCHAT_BBCODES_DISALLOWED' => 'Niedozwolone bbcodes', 'MCHAT_BBCODES_DISALLOWED' => 'Niedozwolone bbcodes',
'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Tutaj umieść bbcodes których nie będzie można używać w wiadomościach.<br />Oddziel bbcodes pionową kreską, na przykład: <br />b|i|u|code|list|list=|flash|quote i/lub %wybierz z tych%s', 'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Tutaj umieść bbcodes których nie będzie można używać w wiadomościach.<br />Oddziel bbcodes pionową kreską, na przykład: <br />b|i|u|code|list|list=|flash|quote i/lub %wybierz z tych%s',
'MCHAT_STATIC_MESSAGE' => 'Ogłoszenie', 'MCHAT_STATIC_MESSAGE' => 'Ogłoszenie',
'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Tutaj możesz umieścić ogłoszenie które wyświetli się osobą korzystającym z mChat. kod HTML jest dozwolony.<br />Zostaw puste aby wyłączyć wyświetlanie. Limit wynosi max 255 znaków.<br /></strong>', 'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Tutaj możesz umieścić ogłoszenie które wyświetli się osobą korzystającym z mChat. kod HTML jest dozwolony.<br />Zostaw puste aby wyłączyć wyświetlanie. Limit wynosi max 255 znaków.<br /></strong>',
'MCHAT_USER_TIMEOUT' => 'Limit czasu dla użytkownika', 'MCHAT_USER_TIMEOUT' => 'Limit czasu dla użytkownika',
'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Ustaw czas w sekundach do zakończenia sesji użytkownika. Ustaw 0 aby wyłączyć.<br /><em>Limit znajdziesz %stutaj%s aktualnie jest ustawione na %s sekund</em>', 'MCHAT_USER_TIMEOUT_EXPLAIN' => 'Ustaw czas w sekundach do zakończenia sesji użytkownika. Ustaw 0 aby wyłączyć.<br /><em>Limit znajdziesz %stutaj%s aktualnie jest ustawione na %s sekund</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Limit emotikon', 'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Limit emotikon',
@@ -124,8 +124,8 @@ $lang = array_merge($lang, array(
'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'Zaznacz TAK aby nie auto-aktualizować mChatu gdy użytkownik pisze wiadomość', 'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'Zaznacz TAK aby nie auto-aktualizować mChatu gdy użytkownik pisze wiadomość',
// error reporting // error reporting
'MCHAT_NEEDS_UPDATING' => 'Rozszerzenie mChat musi zostać zaktualizowane. Proszę skontaktuj się z administratorem.', 'MCHAT_NEEDS_UPDATING' => 'Rozszerzenie mChat musi zostać zaktualizowane. Proszę skontaktuj się z administratorem.',
'MCHAT_WRONG_VERSION' => 'Zainstalowano złą wersję rozszerzenia. Proszę uruchom %instalator%s aby zainstalować nową wersję rozszerzenia.', 'MCHAT_WRONG_VERSION' => 'Zainstalowano złą wersję rozszerzenia. Proszę uruchom %instalator%s aby zainstalować nową wersję rozszerzenia.',
'WARNING' => 'Warning', 'WARNING' => 'Warning',
'TOO_LONG_DATE' => 'Format day który wpisałeś jest za długi.', 'TOO_LONG_DATE' => 'Format day który wpisałeś jest za długi.',
'TOO_SHORT_DATE' => 'Format day który wpisałeś jest za krótki.', 'TOO_SHORT_DATE' => 'Format day który wpisałeś jest za krótki.',

View File

@@ -1,5 +1,5 @@
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
Version 2, June 1991 Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc., Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
@@ -8,75 +8,75 @@
Preamble Preamble
The licenses for most software are designed to take away your The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to the GNU Lesser General Public License instead.) You can apply it to
your programs, too. your programs, too.
When we speak of free software, we are referring to freedom, not When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things. in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights. anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it. distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their source code. And you must show them these terms so they know their
rights. rights.
We protect your rights with two steps: (1) copyright the software, and We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy, (2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software. distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original that any problems introduced by others will not reflect on the original
authors' reputations. authors' reputations.
Finally, any free program is threatened constantly by software Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all. patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and The precise terms and conditions for copying, distribution and
modification follow. modification follow.
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains 0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below, under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program" refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law: means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it, that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you". the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program). Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does. Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's 1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the copyright notice and disclaimer of warranty; keep intact all the
@@ -87,7 +87,7 @@ along with the Program.
You may charge a fee for the physical act of transferring a copy, and You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee. you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion 2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1 distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions: above, provided that you also meet all of these conditions:
@@ -107,15 +107,15 @@ above, provided that you also meet all of these conditions:
notice that there is no warranty (or else, saying that you provide notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on does not normally print such an announcement, your work based on
the Program is not required to print an announcement.) the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program, identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the this License, whose permissions for other licensees extend to the
@@ -131,7 +131,7 @@ with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under a storage or distribution medium does not bring the other work under
the scope of this License. the scope of this License.
3. You may copy and distribute the Program (or a work based on it, 3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following: Sections 1 and 2 above provided that you also do one of the following:
@@ -147,16 +147,16 @@ Sections 1 and 2 above provided that you also do one of the following:
customarily used for software interchange; or, customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such received the program in object code or executable form with such
an offer, in accord with Subsection b above.) an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the form) with the major components (compiler, kernel, and so on) of the
@@ -169,39 +169,39 @@ access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not distribution of the source code, even though third parties are not
compelled to copy the source along with the object code. compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program 4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License. void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such this License will not have their licenses terminated so long as such
parties remain in full compliance. parties remain in full compliance.
5. You are not required to accept this License, since you have not 5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying all its terms and conditions for copying, distributing or modifying
the Program or works based on it. the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the 6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein. restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to You are not responsible for enforcing compliance by third parties to
this License. this License.
7. If, as a consequence of a court judgment or allegation of patent 7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues), infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to the only way you could satisfy both it and this License would be to
@@ -216,7 +216,7 @@ It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is integrity of the free software distribution system, which is
implemented by public license practices. Many people have made implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing system; it is up to the author/donor to decide if he or she is willing
@@ -226,48 +226,48 @@ impose that choice.
This section is intended to make thoroughly clear what is believed to This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License. be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in 8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License. the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions 9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to be similar in spirit to the present version, but may differ in detail to
address new problems or concerns. address new problems or concerns.
Each version is given a distinguishing version number. If the Program Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software this License, you may choose any version ever published by the Free Software
Foundation. Foundation.
10. If you wish to incorporate parts of the Program into other free 10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally. of promoting the sharing and reuse of software generally.
NO WARRANTY NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION. REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
@@ -281,17 +281,17 @@ POSSIBILITY OF SUCH DAMAGES.
How to Apply These Terms to Your New Programs How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms. free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found. the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.> <one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author> Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@@ -300,7 +300,7 @@ the "copyright" line and a pointer to where the full notice is found.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License along You should have received a copy of the GNU General Public License along
@@ -318,22 +318,22 @@ when it starts in an interactive mode:
under certain conditions; type `show c' for details. under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program. mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names: necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker. `Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989 <signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice Ty Coon, President of Vice
This General Public License does not permit incorporating your program into This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. Public License instead of this License.

View File

@@ -17,7 +17,7 @@ class mchat_module1 extends \phpbb\db\migration\migration
return array( return array(
array('module.add', array('ucp', 'UCP_MAIN', 'UCP_MCHAT_CONFIG')), array('module.add', array('ucp', 'UCP_MAIN', 'UCP_MCHAT_CONFIG')),
array('module.add', array( array('module.add', array(
'ucp', 'UCP_MCHAT_CONFIG', array( 'ucp', 'UCP_MCHAT_CONFIG', array(
'module_basename' => '\dmzx\mchat\ucp\ucp_mchat_module', 'module_basename' => '\dmzx\mchat\ucp\ucp_mchat_module',
'modes' => array('configuration'), 'modes' => array('configuration'),
'module_auth' => 'acl_u_mchat_use', 'module_auth' => 'acl_u_mchat_use',

View File

@@ -32,8 +32,8 @@ class mchat_schema_2 extends \phpbb\db\migration\migration
'bbcode_uid' => array('VCHAR:8', ''), 'bbcode_uid' => array('VCHAR:8', ''),
'bbcode_options' => array('BOOL', '7'), 'bbcode_options' => array('BOOL', '7'),
'message_time' => array('INT:11', 0), 'message_time' => array('INT:11', 0),
'forum_id' => array('UINT', 0), 'forum_id' => array('UINT', 0),
'post_id' => array('UINT', 0), 'post_id' => array('UINT', 0),
), ),
'PRIMARY_KEY' => 'message_id', 'PRIMARY_KEY' => 'message_id',
), ),

View File

@@ -28,7 +28,7 @@ class mchat_schema_6 extends \phpbb\db\migration\migration
'module_langname' => 'ACP_USER_MCHAT', 'module_langname' => 'ACP_USER_MCHAT',
'module_mode' => 'mchat', 'module_mode' => 'mchat',
'module_auth' => 'acl_a_user', 'module_auth' => 'acl_a_user',
), ),
), ),
// First, lets add a new category named UCP_CAT_MCHAT // First, lets add a new category named UCP_CAT_MCHAT
array('ucp', false, 'UCP_CAT_MCHAT'), array('ucp', false, 'UCP_CAT_MCHAT'),

File diff suppressed because one or more lines are too long

View File

@@ -1,13 +1,13 @@
/* /*
@author: remy sharp / http://remysharp.com @author: remy sharp / http://remysharp.com
@params: @params:
feedback - the selector for the element that gives the user feedback. Note that this will be relative to the form the plugin is run against. feedback - the selector for the element that gives the user feedback. Note that this will be relative to the form the plugin is run against.
hardLimit - whether to stop the user being able to keep adding characters. Defaults to true. hardLimit - whether to stop the user being able to keep adding characters. Defaults to true.
useInput - whether to look for a hidden input named 'maxlength' instead of the maxlength attribute. Defaults to false. useInput - whether to look for a hidden input named 'maxlength' instead of the maxlength attribute. Defaults to false.
words - limit by characters or words, set this to true to limit by words. Defaults to false. words - limit by characters or words, set this to true to limit by words. Defaults to false.
@license: Creative Commons License - ShareAlike http://creativecommons.org/licenses/by-sa/3.0/ @license: Creative Commons License - ShareAlike http://creativecommons.org/licenses/by-sa/3.0/
@version: 1.2 @version: 1.2
@changes: code tidy via Ariel Flesler and fix when pasting over limit and including \t or \n @changes: code tidy via Ariel Flesler and fix when pasting over limit and including \t or \n
*/ */
(function(a){a.fn.maxlength=function(b){function c(a){var c=a.value;if(b.words)c=a.value.length?c.split(/\s+/):{length:0};return c.length}if(typeof b=="string"){b={feedback:b}}b=a.extend({},a.fn.maxlength.defaults,b);return this.each(function(){function i(a){var d=c(this),e=d>=g,f=a.keyCode;if(!e)return;switch(f){case 8:case 9:case 17:case 36:case 35:case 37:case 38:case 39:case 40:case 46:case 65:return;default:return b.words&&f!=32&&f!=13&&d==g}}var d=this,e=a(d),f=a(d.form),g=b.useInput?f.find("input[name=maxlength]").val():e.attr("maxlength"),h=f.find(b.feedback);var j=function(){var e=c(d),f=g-e;h.html(f||"0");if(f<497){a("#charsreman").show()}else{a("#charsreman").hide()};if(f<499){a("#charsreman2").show()}else{a("#charsreman2").hide()};if(f<500){a("#charsreman3").show()}else{a("#charsreman3").hide()}if(b.hardLimit&&f<0){d.value=b.words?d.value.split(/(\s+)/,g*2-1).join(""):d.value.substr(0,g);j()}};e.keyup(j).change(j).focus(j);if(b.hardLimit){e.keydown(i)}j()})};a.fn.maxlength.defaults={useInput:false,hardLimit:true,feedback:".charsLeft",words:false}})(jQuery) (function(a){a.fn.maxlength=function(b){function c(a){var c=a.value;if(b.words)c=a.value.length?c.split(/\s+/):{length:0};return c.length}if(typeof b=="string"){b={feedback:b}}b=a.extend({},a.fn.maxlength.defaults,b);return this.each(function(){function i(a){var d=c(this),e=d>=g,f=a.keyCode;if(!e)return;switch(f){case 8:case 9:case 17:case 36:case 35:case 37:case 38:case 39:case 40:case 46:case 65:return;default:return b.words&&f!=32&&f!=13&&d==g}}var d=this,e=a(d),f=a(d.form),g=b.useInput?f.find("input[name=maxlength]").val():e.attr("maxlength"),h=f.find(b.feedback);var j=function(){var e=c(d),f=g-e;h.html(f||"0");if(f<497){a("#charsreman").show()}else{a("#charsreman").hide()};if(f<499){a("#charsreman2").show()}else{a("#charsreman2").hide()};if(f<500){a("#charsreman3").show()}else{a("#charsreman3").hide()}if(b.hardLimit&&f<0){d.value=b.words?d.value.split(/(\s+)/,g*2-1).join(""):d.value.substr(0,g);j()}};e.keyup(j).change(j).focus(j);if(b.hardLimit){e.keydown(i)}j()})};a.fn.maxlength.defaults={useInput:false,hardLimit:true,feedback:".charsLeft",words:false}})(jQuery)

View File

@@ -11,46 +11,46 @@
var $jQ=jQuery.noConflict(true); var $jQ=jQuery.noConflict(true);
var hasFocus = true; var hasFocus = true;
$jQ(function(){ $jQ(function(){
if(!mChatArchiveMode){ if(!mChatArchiveMode){
var scrH=$jQ('#mChatmain')[0].scrollHeight; var scrH=$jQ('#mChatmain')[0].scrollHeight;
$jQ('#mChatmain').animate({ $jQ('#mChatmain').animate({
scrollTop:scrH scrollTop:scrH
},1000,'swing'); },1000,'swing');
if(mChatPause){ if(mChatPause){
$jQ('#mChatMessage').bind('keypress',function(){ $jQ('#mChatMessage').bind('keypress',function(){
clearInterval(interval); clearInterval(interval);
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide(); $jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide();
$jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert'); $jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert');
$jQ('#mChatPauseIMG').show() $jQ('#mChatPauseIMG').show()
}) })
} }
$jQ([window,document]).blur(function(){ $jQ([window,document]).blur(function(){
hasFocus = false hasFocus = false
}).focus(function(){ }).focus(function(){
hasFocus = true hasFocus = true
}); });
$jQ.fn.preventDoubleSubmit=function(){ $jQ.fn.preventDoubleSubmit=function(){
var alreadySubmitted=false; var alreadySubmitted=false;
return $jQ(this).submit(function(){ return $jQ(this).submit(function(){
if(alreadySubmitted){ if(alreadySubmitted){
return false return false
}else{ }else{
alreadySubmitted=true alreadySubmitted=true
} }
}) })
}; };
$jQ.fn.autoGrowInput=function(o){ $jQ.fn.autoGrowInput=function(o){
var width=$jQ('.mChatPanel').width(); var width=$jQ('.mChatPanel').width();
o=$jQ.extend({ o=$jQ.extend({
maxWidth:width-20, maxWidth:width-20,
minWidth:0, minWidth:0,
comfortZone:20 comfortZone:20
},o); },o);
this.filter('input:text').each(function(){ this.filter('input:text').each(function(){
var minWidth=o.minWidth||$jQ(this).width(), var minWidth=o.minWidth||$jQ(this).width(),
val='', val='',
input=$jQ(this), input=$jQ(this),
testSubject=$jQ('<div/>').css({ testSubject=$jQ('<div/>').css({
position:'absolute', position:'absolute',
top:-9999, top:-9999,
left:-9999, left:-9999,
@@ -60,112 +60,112 @@ $jQ(function(){
fontWeight:input.css('fontWeight'), fontWeight:input.css('fontWeight'),
letterSpacing:input.css('letterSpacing'), letterSpacing:input.css('letterSpacing'),
whiteSpace:'nowrap' whiteSpace:'nowrap'
}), }),
check=function(){ check=function(){
if(val===(val=input.val())){ if(val===(val=input.val())){
return return
} }
var escaped=val.replace(/&/g,'&amp;').replace(/\s/g,' ').replace(/</g,'&lt;').replace(/>/g,'&gt;'); var escaped=val.replace(/&/g,'&amp;').replace(/\s/g,' ').replace(/</g,'&lt;').replace(/>/g,'&gt;');
testSubject.html(escaped); testSubject.html(escaped);
var testerWidth=testSubject.width(), var testerWidth=testSubject.width(),
newWidth=(testerWidth+o.comfortZone)>=minWidth?testerWidth+o.comfortZone:minWidth, newWidth=(testerWidth+o.comfortZone)>=minWidth?testerWidth+o.comfortZone:minWidth,
currentWidth=input.width(), currentWidth=input.width(),
isValidWidthChange=(newWidth<currentWidth&&newWidth>=minWidth)||(newWidth>minWidth&&newWidth<o.maxWidth); isValidWidthChange=(newWidth<currentWidth&&newWidth>=minWidth)||(newWidth>minWidth&&newWidth<o.maxWidth);
if(isValidWidthChange){ if(isValidWidthChange){
input.width(newWidth) input.width(newWidth)
} }
}; };
testSubject.insertAfter(input); testSubject.insertAfter(input);
$jQ(this).bind('keypress blur change submit focus',check) $jQ(this).bind('keypress blur change submit focus',check)
}); });
return this return this
}; };
$jQ('input.mChatText').autoGrowInput(); $jQ('input.mChatText').autoGrowInput();
$jQ('#postform').preventDoubleSubmit(); $jQ('#postform').preventDoubleSubmit();
if(mChatSound&&$jQ.cookie('mChatNoSound')!='yes'){ if(mChatSound&&$jQ.cookie('mChatNoSound')!='yes'){
$jQ.cookie('mChatNoSound',null);$jQ('#mChatUseSound').attr('checked','checked') $jQ.cookie('mChatNoSound',null);$jQ('#mChatUseSound').attr('checked','checked')
} else { } else {
$jQ.cookie('mChatNoSound','yes'); $jQ.cookie('mChatNoSound','yes');
$jQ('#mChatUseSound').removeAttr('checked') $jQ('#mChatUseSound').removeAttr('checked')
} }
if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){ if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){
$jQ('#mChatUserList').show() $jQ('#mChatUserList').show()
} }
} }
}); });
var mChat={ var mChat={
key:function(e){ key:function(e){
if(e.shiftKey&&e.keyCode==13){ if(e.shiftKey&&e.keyCode==13){
$jQ('#mChatMessage').append("<br />"); $jQ('#mChatMessage').append("<br />");
} else if(e.keyCode==13){ } else if(e.keyCode==13){
mChat.add(); mChat.add();
} }
}, },
countDown:function(){ countDown:function(){
if($jQ('#mChatSessMess').hasClass('mchat-alert')){ if($jQ('#mChatSessMess').hasClass('mchat-alert')){
$jQ('#mChatSessMess').removeClass('mchat-alert') $jQ('#mChatSessMess').removeClass('mchat-alert')
} }
session_time=session_time-1; session_time=session_time-1;
var sec=Math.floor(session_time); var sec=Math.floor(session_time);
var min=Math.floor(sec/60); var min=Math.floor(sec/60);
var hrs=Math.floor(min/60); var hrs=Math.floor(min/60);
sec=(sec%60); sec=(sec%60);
if(sec<=9){ if(sec<=9){
sec="0"+sec sec="0"+sec
} }
min=(min%60); min=(min%60);
if(min<=9){ if(min<=9){
min="0"+min min="0"+min
} }
hrs=(hrs%60); hrs=(hrs%60);
if(hrs<=9){ if(hrs<=9){
hrs="0"+hrs hrs="0"+hrs
} }
var time_left=hrs+":"+min+":"+sec; var time_left=hrs+":"+min+":"+sec;
$jQ('#mChatSessMess').html(mChatSessEnds+' '+time_left); $jQ('#mChatSessMess').html(mChatSessEnds+' '+time_left);
if(session_time<=0){ if(session_time<=0){
clearInterval(counter); clearInterval(counter);
$jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert') $jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert')
} }
}, },
clear:function(){ clear:function(){
if($jQ('#mChatMessage').val()==''){ if($jQ('#mChatMessage').val()==''){
return false return false
} }
var answer=confirm(mChatReset); var answer=confirm(mChatReset);
if(answer){ if(answer){
if($jQ('#mChatRefreshText').hasClass('mchat-alert')){ if($jQ('#mChatRefreshText').hasClass('mchat-alert')){
$jQ('#mChatRefreshText').removeClass('mchat-alert') $jQ('#mChatRefreshText').removeClass('mchat-alert')
} }
if(mChatPause){ if(mChatPause){
interval=setInterval(function(){ interval=setInterval(function(){
mChat.refresh() mChat.refresh()
},mChatRefresh) },mChatRefresh)
} }
$jQ('#mChatOkIMG').show(); $jQ('#mChatOkIMG').show();
$jQ('#mChatLoadIMG, #mChatErrorIMG, #mChatPauseIMG').hide(); $jQ('#mChatLoadIMG, #mChatErrorIMG, #mChatPauseIMG').hide();
$jQ('#mChatRefreshText').html(mChatRefreshYes); $jQ('#mChatRefreshText').html(mChatRefreshYes);
$jQ('#mChatMessage').val('').focus() $jQ('#mChatMessage').val('').focus()
} else { } else {
$jQ('#mChatMessage').focus() $jQ('#mChatMessage').focus()
} }
}, },
sound: function (file) { sound: function (file) {
if ($jQ.cookie('mChatNoSound') == 'yes') { if ($jQ.cookie('mChatNoSound') == 'yes') {
return return
} }
if (false || $.browser.msie) { if (false || $.browser.msie) {
$('#mChatSound').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="0" width="0" type="application/x-shockwave-flash"><param name="movie" value="' + file + '"></object>'); $('#mChatSound').html('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="0" width="0" type="application/x-shockwave-flash"><param name="movie" value="' + file + '"></object>');
} else { } else {
$('#mChatSound').html('<embed src="' + file + '" width="0" height="0" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>'); $('#mChatSound').html('<embed src="' + file + '" width="0" height="0" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
} }
}, },
alert:function(){ alert:function(){
if(!hasFocus||!document.hasFocus()){ if(!hasFocus||!document.hasFocus()){
$jQ.titleAlert(mChatNewMessageAlert) $jQ.titleAlert(mChatNewMessageAlert)
} }
}, },
toggle:function(id){ toggle:function(id){
$jQ('#mChat'+id).slideToggle('normal',function(){ $jQ('#mChat'+id).slideToggle('normal',function(){
if($jQ('#mChat'+id).is(':visible')){ if($jQ('#mChat'+id).is(':visible')){
$jQ.cookie('mChatShow'+id,'yes') $jQ.cookie('mChatShow'+id,'yes')
@@ -173,25 +173,25 @@ var mChat={
if($jQ('#mChat'+id).is(':hidden')){ if($jQ('#mChat'+id).is(':hidden')){
$jQ.cookie('mChatShow'+id,null)} $jQ.cookie('mChatShow'+id,null)}
} }
) )
}, },
add:function(){ add:function(){
if($jQ('#mChatMessage').val()==''){ if($jQ('#mChatMessage').val()==''){
return false return false
} }
var mChatMessChars=$jQ('#mChatMessage').val().replace(/ /g,''); var mChatMessChars=$jQ('#mChatMessage').val().replace(/ /g,'');
if(mChatMessChars.length>mChatMssgLngth&&mChatMssgLngth){ if(mChatMessChars.length>mChatMssgLngth&&mChatMssgLngth){
alert(mChatMssgLngthLong); alert(mChatMssgLngthLong);
return return
} }
$jQ.ajax({ $jQ.ajax({
url:mChatFile, url:mChatFile,
timeout:10000, timeout:10000,
async:false, async:false,
type:'POST', type:'POST',
data:$jQ('#postform').serialize(), data:$jQ('#postform').serialize(),
dataType:'text', dataType:'text',
beforeSend:function(){ beforeSend:function(){
$jQ('#submit_button').attr('disabled','disabled'); $jQ('#submit_button').attr('disabled','disabled');
if(mChatUserTimeout){ if(mChatUserTimeout){
clearInterval(activeinterval); clearInterval(activeinterval);
@@ -203,12 +203,12 @@ var mChat={
mChat.refresh() mChat.refresh()
}, },
error:function(XMLHttpRequest){ error:function(XMLHttpRequest){
if(XMLHttpRequest.status==400){ if(XMLHttpRequest.status==400){
alert(mChatFlood) alert(mChatFlood)
}else if(XMLHttpRequest.status==403){ }else if(XMLHttpRequest.status==403){
alert(mChatNoAccess) alert(mChatNoAccess)
}else if(XMLHttpRequest.status==501){ }else if(XMLHttpRequest.status==501){
alert(mChatNoMessageInput) alert(mChatNoMessageInput)
} }
}, },
complete:function(){ complete:function(){
@@ -217,67 +217,67 @@ var mChat={
} }
$jQ('#submit_button').removeAttr('disabled'); $jQ('#submit_button').removeAttr('disabled');
interval=setInterval(function(){ interval=setInterval(function(){
mChat.refresh() mChat.refresh()
}, },
mChatRefresh); mChatRefresh);
if(mChatUserTimeout){ if(mChatUserTimeout){
session_time=mChatUserTimeout?mChatUserTimeout/1000:false; session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
counter=setInterval(function(){ counter=setInterval(function(){
mChat.countDown() mChat.countDown()
},1000); },1000);
activeinterval=setInterval(function(){ activeinterval=setInterval(function(){
mChat.active() mChat.active()
},mChatUserTimeout) },mChatUserTimeout)
} }
$jQ('#mChatMessage').val('').focus() $jQ('#mChatMessage').val('').focus()
} }
}) })
}, },
edit:function(id){ edit:function(id){
var message=$jQ('#edit'+id).val(); var message=$jQ('#edit'+id).val();
apprise(mChatEditInfo,{ apprise(mChatEditInfo,{
'textarea':message, 'textarea':message,
'animate':true, 'animate':true,
'position':200, 'position':200,
'confirm':true 'confirm':true
}, function(r){ }, function(r){
if(r){ if(r){
$jQ.ajax({ $jQ.ajax({
url:mChatFile, url:mChatFile,
timeout:10000, timeout:10000,
type:'POST', type:'POST',
data:{ data:{
mode:'edit', mode:'edit',
message_id:id, message_id:id,
message:r message:r
}, },
dataType:'text', dataType:'text',
beforeSend:function(){ beforeSend:function(){
clearInterval(interval); clearInterval(interval);
if(mChatUserTimeout){ if(mChatUserTimeout){
clearInterval(activeinterval); clearInterval(activeinterval);
clearInterval(counter); clearInterval(counter);
$jQ('#mChatSessTimer').html(mChatRefreshing) $jQ('#mChatSessTimer').html(mChatRefreshing)
} }
}, },
success:function(html){ success:function(html){
$jQ('#mess'+id).fadeOut('slow',function(){ $jQ('#mess'+id).fadeOut('slow',function(){
$jQ(this).replaceWith(html); $jQ(this).replaceWith(html);
$jQ('#mess'+id).css('display','none').fadeIn('slow') $jQ('#mess'+id).css('display','none').fadeIn('slow')
}) })
}, },
error:function(XMLHttpRequest){ error:function(XMLHttpRequest){
if(XMLHttpRequest.status==403){ if(XMLHttpRequest.status==403){
alert(mChatNoAccess) alert(mChatNoAccess)
}else if(XMLHttpRequest.status==501){ }else if(XMLHttpRequest.status==501){
alert(mChatNoMessageInput) alert(mChatNoMessageInput)
} }
}, },
complete:function(){ complete:function(){
interval=setInterval(function(){ interval=setInterval(function(){
mChat.refresh() mChat.refresh()
},mChatRefresh); },mChatRefresh);
if(mChatUserTimeout){ if(mChatUserTimeout){
session_time=mChatUserTimeout?mChatUserTimeout/1000:false; session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
counter=setInterval(function(){ counter=setInterval(function(){
mChat.countDown() mChat.countDown()
@@ -285,81 +285,81 @@ var mChat={
activeinterval=setInterval(function(){ activeinterval=setInterval(function(){
mChat.active() mChat.active()
},mChatUserTimeout) },mChatUserTimeout)
} }
if(!mChatArchiveMode){ if(!mChatArchiveMode){
scrH=$jQ('#mChatmain')[0].scrollHeight; scrH=$jQ('#mChatmain')[0].scrollHeight;
window.setTimeout(function(){ window.setTimeout(function(){
$jQ('#mChatmain').animate({ $jQ('#mChatmain').animate({
scrollTop:scrH},1000,'swing') scrollTop:scrH},1000,'swing')
},1500) },1500)
} }
}
} }
}
) )
}}) }})
}, },
del:function(id){ del:function(id){
apprise(mChatDelConfirm,{ apprise(mChatDelConfirm,{
'position':200, 'position':200,
'animate':true, 'animate':true,
'confirm':true 'confirm':true
},function(del){ },function(del){
if(del){ if(del){
$jQ.ajax({ $jQ.ajax({
url:mChatFile, url:mChatFile,
timeout:10000, timeout:10000,
type:'POST', type:'POST',
data:{ data:{
mode:'delete', mode:'delete',
message_id:id message_id:id
}, },
beforeSend:function(){ beforeSend:function(){
clearInterval(interval); clearInterval(interval);
if(mChatUserTimeout){ if(mChatUserTimeout){
clearInterval(activeinterval); clearInterval(activeinterval);
clearInterval(counter); clearInterval(counter);
$jQ('#mChatSessTimer').html(mChatRefreshing) $jQ('#mChatSessTimer').html(mChatRefreshing)
} }
}, },
success:function(){ success:function(){
$jQ('#mess'+id).fadeOut('slow',function(){ $jQ('#mess'+id).fadeOut('slow',function(){
$jQ(this).remove() $jQ(this).remove()
}); });
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/del.swf') mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/del.swf')
}, },
error:function(){ error:function(){
alert(mChatNoAccess) alert(mChatNoAccess)
}, },
complete:function(){ complete:function(){
interval=setInterval(function(){ interval=setInterval(function(){
mChat.refresh() mChat.refresh()
},mChatRefresh); },mChatRefresh);
if(mChatUserTimeout){ if(mChatUserTimeout){
session_time=mChatUserTimeout?mChatUserTimeout/1000:false; session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
counter=setInterval(function(){ counter=setInterval(function(){
mChat.countDown() mChat.countDown()
},1000); },1000);
activeinterval=setInterval(function(){ activeinterval=setInterval(function(){
mChat.active() mChat.active()
},mChatUserTimeout) },mChatUserTimeout)
} }
} }
}) })
} else { } else {
return false; return false;
} }
}); });
}, },
refresh:function(){ refresh:function(){
if(mChatArchiveMode){ if(mChatArchiveMode){
return return
} }
var mess_id=0; var mess_id=0;
if($jQ('#mChatData').children().not('#mChatNoMessage').length){ if($jQ('#mChatData').children().not('#mChatNoMessage').length){
if($jQ('#mChatNoMessage')){ if($jQ('#mChatNoMessage')){
$jQ('#mChatNoMessage').remove() $jQ('#mChatNoMessage').remove()
} }
mess_id=$jQ('#mChatData').children(':last-child').attr('id').replace('mess','') mess_id=$jQ('#mChatData').children(':last-child').attr('id').replace('mess','')
} }
var oldScrH=$jQ('#mChatmain')[0].scrollHeight; var oldScrH=$jQ('#mChatmain')[0].scrollHeight;
$jQ.ajax({ $jQ.ajax({
@@ -368,47 +368,47 @@ var mChat={
type:'POST', type:'POST',
async:true, async:true,
data:{ data:{
mode:'read', mode:'read',
message_last_id:mess_id message_last_id:mess_id
}, },
dataType:'html', dataType:'html',
beforeSend:function(){ beforeSend:function(){
$jQ('#mChatOkIMG,#mChatErrorIMG,#mChatPauseIMG').hide(); $jQ('#mChatOkIMG,#mChatErrorIMG,#mChatPauseIMG').hide();
$jQ('#mChatLoadIMG').show() $jQ('#mChatLoadIMG').show()
}, },
success:function(html){ success:function(html){
if(html!=''&&html!=0){ if(html!=''&&html!=0){
if($jQ('#mChatRefreshText').hasClass('mchat-alert')){ if($jQ('#mChatRefreshText').hasClass('mchat-alert')){
$jQ('#mChatRefreshText').removeClass('mchat-alert') $jQ('#mChatRefreshText').removeClass('mchat-alert')
} }
$jQ('#mChatData').append(html).children(':last').not('#mChatNoMessage'); $jQ('#mChatData').append(html).children(':last').not('#mChatNoMessage');
var newInner=$jQ('#mChatData').children().not('#mChatNoMessage').innerHeight(); var newInner=$jQ('#mChatData').children().not('#mChatNoMessage').innerHeight();
var newH=oldScrH+newInner; var newH=oldScrH+newInner;
$jQ('#mChatmain').animate({ $jQ('#mChatmain').animate({
scrollTop:newH scrollTop:newH
},'slow'); },'slow');
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/add.swf'); mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/add.swf');
mChat.alert() mChat.alert()
} }
setTimeout(function(){ setTimeout(function(){
$jQ('#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG').hide(); $jQ('#mChatLoadIMG,#mChatErrorIMG,#mChatPauseIMG').hide();
$jQ('#mChatOkIMG').show(); $jQ('#mChatOkIMG').show();
$jQ('#mChatRefreshText').html(mChatRefreshYes) $jQ('#mChatRefreshText').html(mChatRefreshYes)
},500) },500)
}, },
error:function(){ error:function(){
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo,#mChatPauseIMG,').hide(); $jQ('#mChatLoadIMG,#mChatOkIMG,#mChatPauseIMG,#mChatRefreshTextNo,#mChatPauseIMG,').hide();
$jQ('#mChatErrorIMG').show(); $jQ('#mChatErrorIMG').show();
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf') mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf')
}, },
complete:function(){ complete:function(){
if(!$jQ('#mChatData').children(':last').length){ if(!$jQ('#mChatData').children(':last').length){
$jQ('#mChatData').append('<div id="mChatNoMessage">'+mChatNoMessage+'</div>').show('slow') $jQ('#mChatData').append('<div id="mChatNoMessage">'+mChatNoMessage+'</div>').show('slow')
} }
} }
}) })
}, },
stats:function(){ stats:function(){
if(!mChatWhois){ if(!mChatWhois){
return return
} }
@@ -422,53 +422,53 @@ var mChat={
dataType:'html', dataType:'html',
beforeSend:function(){ beforeSend:function(){
if(mChatCustomPage){ if(mChatCustomPage){
$jQ('#mChatRefreshN').show(); $jQ('#mChatRefreshN').show();
$jQ('#mChatRefresh').hide() $jQ('#mChatRefresh').hide()
} }
}, },
success: function (data) { success: function (data) {
var json = $.parseJSON(data); var json = $.parseJSON(data);
$('#mChatStats').replaceWith(json.message); $('#mChatStats').replaceWith(json.message);
if(mChatCustomPage){ if(mChatCustomPage){
setTimeout(function(){ setTimeout(function(){
$jQ('#mChatRefreshN').hide(); $jQ('#mChatRefreshN').hide();
$jQ('#mChatRefresh').show() $jQ('#mChatRefresh').show()
},500) },500)
} }
}, },
error:function(){ error:function(){
mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf') mChat.sound(mChatForumRoot+'ext/dmzx/mchat/sounds/error.swf')
}, },
complete:function(){ complete:function(){
if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){ if($jQ('#mChatUserList').length&&($jQ.cookie('mChatShowUserList')=='yes'||mChatCustomPage)){
$jQ('#mChatUserList').css('display','block') $jQ('#mChatUserList').css('display','block')
} }
} }
}) })
}, },
active:function(){ active:function(){
if(mChatArchiveMode||!mChatUserTimeout){ if(mChatArchiveMode||!mChatUserTimeout){
return return
} }
clearInterval(interval); clearInterval(interval);
$jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide(); $jQ('#mChatLoadIMG,#mChatOkIMG,#mChatErrorIMG').hide();
$jQ('#mChatPauseIMG').show(); $jQ('#mChatPauseIMG').show();
$jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert'); $jQ('#mChatRefreshText').html(mChatRefreshNo).addClass('mchat-alert');
$jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert') $jQ('#mChatSessMess').html(mChatSessOut).addClass('mchat-alert')
} }
}; };
var interval=setInterval(function(){ var interval=setInterval(function(){
mChat.refresh() mChat.refresh()
},mChatRefresh); },mChatRefresh);
var statsinterval=setInterval(function(){ var statsinterval=setInterval(function(){
mChat.stats()},mChatWhoisRefresh); mChat.stats()},mChatWhoisRefresh);
var activeinterval=setInterval(function(){ var activeinterval=setInterval(function(){
mChat.active()},mChatUserTimeout); mChat.active()},mChatUserTimeout);
var session_time=mChatUserTimeout?mChatUserTimeout/1000:false; var session_time=mChatUserTimeout?mChatUserTimeout/1000:false;
if(mChatUserTimeout){ if(mChatUserTimeout){
var counter=setInterval(function(){ var counter=setInterval(function(){
mChat.countDown() mChat.countDown()
},1000) },1000)
} }
if($jQ.cookie('mChatShowSmiles')=='yes'&&$jQ('#mChatSmiles').css('display','none')){ if($jQ.cookie('mChatShowSmiles')=='yes'&&$jQ('#mChatSmiles').css('display','none')){
$jQ('#mChatSmiles').slideToggle('slow') $jQ('#mChatSmiles').slideToggle('slow')
@@ -484,18 +484,18 @@ var mChat={
} }
$jQ('#mChatUseSound').change(function(){ $jQ('#mChatUseSound').change(function(){
if($jQ(this).is(':checked')){ if($jQ(this).is(':checked')){
$jQ.cookie('mChatNoSound',null) $jQ.cookie('mChatNoSound',null)
}else{ }else{
$jQ.cookie('mChatNoSound','yes') $jQ.cookie('mChatNoSound','yes')
} }
}); });
function mChatTimeShow(id){ function mChatTimeShow(id){
var tid = parseInt(id); var tid = parseInt(id);
$(".mchatrow" + id).show(); $(".mchatrow" + id).show();
} }
function mChatTimeHide(id){ function mChatTimeHide(id){
var tid = parseInt(id); var tid = parseInt(id);
$(".mchatrow" + id).hide(); $(".mchatrow" + id).hide();
} }
// Apprise 1.5 by Daniel Raftery // Apprise 1.5 by Daniel Raftery

File diff suppressed because one or more lines are too long

View File

@@ -5,7 +5,7 @@
<!-- INCLUDEJS editor.js --> <!-- INCLUDEJS editor.js -->
<!-- INCLUDEJS jquery.titlealert.min.js --> <!-- INCLUDEJS jquery.titlealert.min.js -->
<!-- INCLUDEJS jquery_cookie_mini.js --> <!-- INCLUDEJS jquery_cookie_mini.js -->
<!-- IF MCHAT_MESSAGE_TOP --> <!-- IF MCHAT_MESSAGE_TOP -->
<!-- INCLUDEJS mchat_ajax_mini.js --> <!-- INCLUDEJS mchat_ajax_mini.js -->
<!-- ELSE --> <!-- ELSE -->
<!-- INCLUDEJS mchat_ajax_mini_top.js --> <!-- INCLUDEJS mchat_ajax_mini_top.js -->
@@ -100,42 +100,42 @@
<!-- ENDIF --> <!-- ENDIF -->
function insert_quote(user,text) function insert_quote(user,text)
{ {
var quote = decodeURIComponent(text.replace(/\+/g, " ")); var quote = decodeURIComponent(text.replace(/\+/g, " "));
quote = quote.replace(/&lt;/g, "<"); quote = quote.replace(/&lt;/g, "<");
quote = quote.replace(/&gt;/g, ">"); quote = quote.replace(/&gt;/g, ">");
quote = quote.replace(/&#58;/g, ':'); quote = quote.replace(/&#58;/g, ':');
quote = quote.replace(/&#46;/g, '.'); quote = quote.replace(/&#46;/g, '.');
quote = quote.replace(/&amp;/g, '&'); quote = quote.replace(/&amp;/g, '&');
quote = quote.replace(/&quot;/g, '"'); quote = quote.replace(/&quot;/g, '"');
var username = decodeURIComponent(user.replace(/\+/g, " ")); var username = decodeURIComponent(user.replace(/\+/g, " "));
username = username.replace(/&lt;/g, "<"); username = username.replace(/&lt;/g, "<");
username = username.replace(/&gt;/g, ">"); username = username.replace(/&gt;/g, ">");
username = username.replace(/&#58;/g, ':'); username = username.replace(/&#58;/g, ':');
username = username.replace(/&#46;/g, '.'); username = username.replace(/&#46;/g, '.');
username = username.replace(/&amp;/g, '&'); username = username.replace(/&amp;/g, '&');
username = username.replace(/&quot;/g, '"'); username = username.replace(/&quot;/g, '"');
document.getElementById('mChatMessage').value += '[quote="' + username + '"]' + ' ' + quote + '[/quote]'; document.getElementById('mChatMessage').value += '[quote="' + username + '"]' + ' ' + quote + '[/quote]';
document.getElementById('mChatMessage').focus(); document.getElementById('mChatMessage').focus();
} }
function insert_like(user,text) function insert_like(user,text)
{ {
var quote = decodeURIComponent(text.replace(/\+/g, " ")); var quote = decodeURIComponent(text.replace(/\+/g, " "));
quote = quote.replace(/&lt;/g, "<"); quote = quote.replace(/&lt;/g, "<");
quote = quote.replace(/&gt;/g, ">"); quote = quote.replace(/&gt;/g, ">");
quote = quote.replace(/&#58;/g, ':'); quote = quote.replace(/&#58;/g, ':');
quote = quote.replace(/&#46;/g, '.'); quote = quote.replace(/&#46;/g, '.');
quote = quote.replace(/&amp;/g, '&'); quote = quote.replace(/&amp;/g, '&');
quote = quote.replace(/&quot;/g, '"'); quote = quote.replace(/&quot;/g, '"');
var username = decodeURIComponent(user.replace(/\+/g, " ")); var username = decodeURIComponent(user.replace(/\+/g, " "));
username = username.replace(/&lt;/g, "<"); username = username.replace(/&lt;/g, "<");
username = username.replace(/&gt;/g, ">"); username = username.replace(/&gt;/g, ">");
username = username.replace(/&#58;/g, ':'); username = username.replace(/&#58;/g, ':');
username = username.replace(/&#46;/g, '.'); username = username.replace(/&#46;/g, '.');
username = username.replace(/&amp;/g, '&'); username = username.replace(/&amp;/g, '&');
username = username.replace(/&quot;/g, '"'); username = username.replace(/&quot;/g, '"');
document.getElementById('mChatMessage').value += '' + mChatLikes + '[quote="' + username + '"]' + ' ' + quote + '[/quote]'; document.getElementById('mChatMessage').value += '' + mChatLikes + '[quote="' + username + '"]' + ' ' + quote + '[/quote]';
document.getElementById('mChatMessage').focus(); document.getElementById('mChatMessage').focus();
} }
// ]]> // ]]>
</script> </script>

View File

@@ -17,6 +17,6 @@
<!-- END rule --> <!-- END rule -->
<span class="corners-bottom"><span></span></span></div> <span class="corners-bottom"><span></span></span></div>
</div> </div>
<a href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a> <a href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a>
<!-- INCLUDE simple_footer.html --> <!-- INCLUDE simple_footer.html -->

View File

@@ -13,7 +13,7 @@
<dt><label for="mchat_index">{L_DISPLAY_MCHAT}{L_COLON}</label></dt> <dt><label for="mchat_index">{L_DISPLAY_MCHAT}{L_COLON}</label></dt>
<dd> <dd>
<label><input type="radio" name="user_mchat_index" value="1"<!-- IF S_DISPLAY_MCHAT --> id="mchat_index" checked="checked"<!-- ENDIF --> /> {L_YES}</label> <label><input type="radio" name="user_mchat_index" value="1"<!-- IF S_DISPLAY_MCHAT --> id="mchat_index" checked="checked"<!-- ENDIF --> /> {L_YES}</label>
<label><input type="radio" name="user_mchat_index" value="0"<!-- IF not S_DISPLAY_MCHAT --> id="mchat_index" checked="checked"<!-- ENDIF --> /> {L_NO}</label> <label><input type="radio" name="user_mchat_index" value="0"<!-- IF not S_DISPLAY_MCHAT --> id="mchat_index" checked="checked"<!-- ENDIF --> /> {L_NO}</label>
</dd> </dd>
</dl> </dl>
<!-- ENDIF --> <!-- ENDIF -->