Update to 0.0.3

Update to 0.0.3
This commit is contained in:
dmzx
2015-03-14 09:48:45 +01:00
parent 01f16a63fe
commit 2b4bcbf478
8 changed files with 222 additions and 222 deletions

View File

@@ -3,7 +3,7 @@
"type": "phpbb-extension",
"description": "mChat Extension for phpbb 3.1.x",
"homepage": "http://www.dmzx-web.net",
"version": "0.0.2",
"version": "0.0.3",
"time": "2015-03-10",
"keywords": ["phpbb", "extension", "mchat"],
"license": "GPL-2.0",

View File

@@ -123,7 +123,6 @@ class mchat
// set redirect if on index or custom page
$on_page = defined('MCHAT_INCLUDE') ? 'index' : 'mchat';
// grab fools..uhmmm, foes the user has
$foes_array = array();
$sql = 'SELECT * FROM ' . ZEBRA_TABLE . '
@@ -302,14 +301,14 @@ class mchat
'MCHAT_ALLOW_DEL' => $mchat_del,
'MCHAT_USER_AVATAR' => $mchat_avatar,
'U_VIEWPROFILE' => ($row['user_id'] != ANONYMOUS) ? append_sid("{$this->phpbb_root_path}memberlist.{$this->phpEx}", 'mode=viewprofile&u=' . $row['user_id']) : '',
'U_USER_ID' => ($row['user_id'] != ANONYMOUS && $this->config['allow_privmsg'] && $this->auth->acl_get('u_sendpm') && $this->user->data['user_id'] != $row['user_id'] && $row['user_id'] != '55' && ($row['user_allow_pm'] || $this->auth->acl_gets('a_', 'm_') || $this->auth->acl_getf_global('m_'))) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
'U_USER_ID' => ($row['user_id'] != ANONYMOUS && $this->config['allow_privmsg'] && $this->auth->acl_get('u_sendpm') && $this->user->data['user_id'] != $row['user_id'] && $row['user_id'] != '55' && ($row['user_allow_pm'] || $this->auth->acl_gets('a_', 'm_') || $this->auth->acl_getf_global('m_'))) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
'MCHAT_MESSAGE_EDIT' => $message_edit,
'MCHAT_MESSAGE_ID' => $row['message_id'],
'MCHAT_USERNAME_FULL' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USERNAME' => get_username_string('username', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USERNAME_COLOR' => get_username_string('colour', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USER_IP' => $row['user_ip'],
'MCHAT_U_WHOIS' => $this->helper->route('dmzx_mchat_controller', array('mode=whois', 'ip=' . $row['user_ip'])),
'MCHAT_U_WHOIS' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'whois', 'ip' => $row['user_ip'])),
'MCHAT_U_BAN' => append_sid("{$this->phpbb_root_path}adm/index.{$this->phpEx}" ,'i=permissions&mode=setting_user_global&user_id[0]=' . $row['user_id'], true, $this->user->session_id),
'MCHAT_MESSAGE' => generate_text_for_display($row['message'], $row['bbcode_uid'], $row['bbcode_bitfield'], $row['bbcode_options']),
'MCHAT_TIME' => $this->user->format_date($row['message_time'], $this->config_mchat['date']),
@@ -338,9 +337,9 @@ class mchat
//add to navlinks
$this->template->assign_block_vars('navlinks', array(
'FORUM_NAME' => $this->user->lang['MCHAT_ARCHIVE_PAGE'],
'U_VIEW_FORUM' => $this->helper->route('dmzx_mchat_controller', array('mode=archive')))
);
'FORUM_NAME' => $this->user->lang['MCHAT_ARCHIVE_PAGE'],
'U_VIEW_FORUM' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'archive')),
));
// If archive mode request set true
$mchat_archive_mode = true;
$old_mode = 'archive';
@@ -416,14 +415,14 @@ class mchat
'MCHAT_ALLOW_DEL' => $mchat_del,
'MCHAT_USER_AVATAR' => $mchat_avatar,
'U_VIEWPROFILE' => ($row['user_id'] != ANONYMOUS) ? append_sid("{$this->phpbb_root_path}memberlist.{$this->phpEx}", 'mode=viewprofile&u=' . $row['user_id']) : '',
'U_USER_ID' => ($row['user_id'] != ANONYMOUS && $this->config['allow_privmsg'] && $this->auth->acl_get('u_sendpm') && $this->user->data['user_id'] != $row['user_id'] && $row['user_id'] != '55' && ($row['user_allow_pm'] || $this->auth->acl_gets('a_', 'm_') || $this->auth->acl_getf_global('m_'))) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
'U_USER_ID' => ($row['user_id'] != ANONYMOUS && $this->config['allow_privmsg'] && $this->auth->acl_get('u_sendpm') && $this->user->data['user_id'] != $row['user_id'] && $row['user_id'] != '55' && ($row['user_allow_pm'] || $this->auth->acl_gets('a_', 'm_') || $this->auth->acl_getf_global('m_'))) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
'MCHAT_MESSAGE_EDIT' => $message_edit,
'MCHAT_MESSAGE_ID' => $row['message_id'],
'MCHAT_USERNAME_FULL' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USERNAME' => get_username_string('username', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USERNAME_COLOR' => get_username_string('colour', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USER_IP' => $row['user_ip'],
'MCHAT_U_WHOIS' => $this->helper->route('dmzx_mchat_controller', array('mode=whois', 'ip=' . $row['user_ip'])),
'MCHAT_U_WHOIS' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'whois', 'ip' => $row['user_ip'])),
'MCHAT_U_BAN' => append_sid("{$this->phpbb_root_path}adm/index.{$this->phpEx}" ,'i=permissions&mode=setting_user_global&user_id[0]=' . $row['user_id'], true, $this->user->session_id),
'MCHAT_MESSAGE' => generate_text_for_display($row['message'], $row['bbcode_uid'], $row['bbcode_bitfield'], $row['bbcode_options']),
'MCHAT_TIME' => $this->user->format_date($row['message_time'], $this->config_mchat['date']),
@@ -465,9 +464,9 @@ class mchat
if ($this->request->is_ajax())
{
return new \Symfony\Component\HttpFoundation\JsonResponse(
$message
);
return new \Symfony\Component\HttpFoundation\JsonResponse(array(
'message' => $message,
));
}
else
{
@@ -720,13 +719,13 @@ class mchat
'MCHAT_MESSAGE_EDIT' => $message_edit,
'MCHAT_USER_AVATAR' => $mchat_avatar,
'U_VIEWPROFILE' => ($row['user_id'] != ANONYMOUS) ? append_sid("{$this->phpbb_root_path}memberlist.{$this->phpEx}", 'mode=viewprofile&u=' . $row['user_id']) : '',
'U_USER_ID' => ($row['user_id'] != ANONYMOUS && $this->config['allow_privmsg'] && $this->auth->acl_get('u_sendpm') && $this->user->data['user_id'] != $row['user_id'] && $row['user_id'] != '55' && ($row['user_allow_pm'] || $this->auth->acl_gets('a_', 'm_') || $this->auth->acl_getf_global('m_'))) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
'U_USER_ID' => ($row['user_id'] != ANONYMOUS && $this->config['allow_privmsg'] && $this->auth->acl_get('u_sendpm') && $this->user->data['user_id'] != $row['user_id'] && $row['user_id'] != '55' && ($row['user_allow_pm'] || $this->auth->acl_gets('a_', 'm_') || $this->auth->acl_getf_global('m_'))) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
'MCHAT_MESSAGE_ID' => $row['message_id'],
'MCHAT_USERNAME_FULL' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USERNAME' => get_username_string('username', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USERNAME_COLOR' => get_username_string('colour', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USER_IP' => $row['user_ip'],
'MCHAT_U_WHOIS' => $this->helper->route('dmzx_mchat_controller', array('mode=whois', 'ip=' . $row['user_ip'])),
'MCHAT_U_WHOIS' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'whois', 'ip' => $row['user_ip'])),
'MCHAT_U_BAN' => append_sid("{$this->phpbb_root_path}adm/index.{$this->phpEx}" ,'i=permissions&mode=setting_user_global&user_id[0]=' . $row['user_id'], true, $this->user->session_id),
'MCHAT_MESSAGE' => censor_text(generate_text_for_display($row['message'], $row['bbcode_uid'], $row['bbcode_bitfield'], $row['bbcode_options'])),
'MCHAT_TIME' => $this->user->format_date($row['message_time'], $this->config_mchat['date']),
@@ -876,8 +875,8 @@ class mchat
));
}
$this->template->assign_block_vars('navlinks', array(
'FORUM_NAME' => $this->user->lang['MCHAT_TITLE'],
'U_VIEW_FORUM' => $this->helper->route('dmzx_mchat_controller'),
'FORUM_NAME' => $this->user->lang['MCHAT_TITLE'],
'U_VIEW_FORUM' => $this->helper->route('dmzx_mchat_controller'),
));
}
@@ -938,14 +937,14 @@ class mchat
'MCHAT_ALLOW_DEL' => $mchat_del,
'MCHAT_USER_AVATAR' => $mchat_avatar,
'U_VIEWPROFILE' => ($row['user_id'] != ANONYMOUS) ? append_sid("{$this->phpbb_root_path}memberlist.{$this->phpEx}", 'mode=viewprofile&u=' . $row['user_id']) : '',
'U_USER_ID' => ($row['user_id'] != ANONYMOUS && $this->config['allow_privmsg'] && $this->auth->acl_get('u_sendpm') && $this->user->data['user_id'] != $row['user_id'] && $row['user_id'] != '55' && ($row['user_allow_pm'] || $this->auth->acl_gets('a_', 'm_') || $this->auth->acl_getf_global('m_'))) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
'U_USER_ID' => ($row['user_id'] != ANONYMOUS && $this->config['allow_privmsg'] && $this->auth->acl_get('u_sendpm') && $this->user->data['user_id'] != $row['user_id'] && $row['user_id'] != '55' && ($row['user_allow_pm'] || $this->auth->acl_gets('a_', 'm_') || $this->auth->acl_getf_global('m_'))) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
'MCHAT_MESSAGE_EDIT' => $message_edit,
'MCHAT_MESSAGE_ID' => $row['message_id'],
'MCHAT_USERNAME_FULL' => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USERNAME' => get_username_string('username', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USERNAME_COLOR' => get_username_string('colour', $row['user_id'], $row['username'], $row['user_colour'], $this->user->lang['GUEST']),
'MCHAT_USER_IP' => $row['user_ip'],
'MCHAT_U_WHOIS' => $this->helper->route('dmzx_mchat_controller', array('mode=whois', 'ip=' . $row['user_ip'])),
'MCHAT_U_WHOIS' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'whois', 'ip' => $row['user_ip'])),
'MCHAT_U_BAN' => append_sid("{$this->phpbb_root_path}adm/index.{$this->phpEx}" ,'i=permissions&mode=setting_user_global&user_id[0]=' . $row['user_id'], true, $this->user->session_id),
'MCHAT_MESSAGE' => generate_text_for_display($message, $row['bbcode_uid'], $row['bbcode_bitfield'], $row['bbcode_options']),
'MCHAT_TIME' => $this->user->format_date($row['message_time'], $this->config_mchat['date']),
@@ -1022,13 +1021,13 @@ class mchat
'MCHAT_NOMESSAGE_MODE' => $mchat_no_message,
'MCHAT_ALLOW_BBCODES' => ($mchat_allow_bbcode && $this->config['allow_bbcode']) ? true : false,
'MCHAT_ENABLE' => $this->config['mchat_enable'],
'MCHAT_ARCHIVE_URL' => $this->helper->route('dmzx_mchat_controller', array('mode=archive')),
'MCHAT_ARCHIVE_URL' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'archive')),
'MCHAT_CUSTOM_PAGE' => $mchat_custom_page,
'MCHAT_INDEX_HEIGHT' => $this->config_mchat['index_height'],
'MCHAT_CUSTOM_HEIGHT' => $this->config_mchat['custom_height'],
'MCHAT_READ_ARCHIVE_BUTTON' => $mchat_read_archive,
'MCHAT_FOUNDER' => $mchat_founder,
'MCHAT_CLEAN_URL' => $this->helper->route('dmzx_mchat_controller', array('mode=clean', 'redirect=' . $on_page)),
'MCHAT_CLEAN_URL' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'clean', 'redirect' => $on_page)),
'MCHAT_STATIC_MESS' => !empty($this->config_mchat['static_message']) ? htmlspecialchars_decode($this->config_mchat['static_message']) : '',
'L_MCHAT_COPYRIGHT' => $copyright,
'MCHAT_WHOIS' => $this->config_mchat['whois'],
@@ -1046,7 +1045,7 @@ class mchat
'S_MCHAT_SOUND_YES' => $this->user->data['user_mchat_sound'],
'S_MCHAT_INDEX_STATS' => $this->user->data['user_mchat_stats_index'],
'U_MORE_SMILIES' => append_sid("{$this->phpbb_root_path}posting.{$this->phpEx}", 'mode=smilies'),
'U_MCHAT_RULES' => $this->helper->route('dmzx_mchat_controller', array('mode=rules')),
'U_MCHAT_RULES' => $this->helper->route('dmzx_mchat_controller', array('mode' => 'rules')),
));
return $this->helper->render('mchat_body.html', $this->user->lang['MCHAT_TITLE']);

View File

@@ -167,58 +167,58 @@ $lang = array_merge($lang, array(
'MCHAT_BBCODES_DISALLOWED' => 'Disabilita bbcodes',
'MCHAT_BBCODES_DISALLOWED_EXPLAIN' => 'Qui è possibile inserire i BBCodes da <strong>non</strong> utilizzare.<br />Separare i bbcodes da una barra verticale, ad esempio: <br />b|i|u|code|list|list=|flash|quote e/o %scustom bbcode tag name%s',
'MCHAT_STATIC_MESSAGE' => 'Messaggi Statici',
'MCHAT_STATIC_MESSAGE_EXPLAIN' => 'Qui è possibile definire un messaggio statico da visualizzare agli utenti della chat. HTML permesso.<br />Set per disattivare la visualizzazione. Limite a 255 caratteri.<br /><strong>Questo messaggio può essere tradotto.</strong> (modificando il file mchat_lang.php e seguendo le istruzioni).',
'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 settato a sessions%s che è attualmente impostato a %s secondi</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Limite smilie',
'MCHAT_OVERRIDE_SMILIE_LIMIT_EXPLAIN' => 'Impostare su SI per ignorare i forum con smilie impostazione messaggi di limete in chat',
'MCHAT_OVERRIDE_MIN_POST_CHARS' => 'Ignora limite minimo caratteri',
'MCHAT_OVERRIDE_MIN_POST_CHARS_EXPLAIN' => 'Impostare su SI per ignorare i forum con caratteri minimi con impostazione per i messaggi della chat',
'MCHAT_NEW_POSTS' => 'Visualizza nuovi post',
'MCHAT_NEW_POSTS_EXPLAIN' => 'Impostare su SI per consentire ai nuovi messaggi del forum di essere pubblicati in area messaggio della chat<br /><strong>È necessario che questo add-on per postare sia installato</strong> (nella directory contrib estensione di download).',
'MCHAT_MAIN' => 'Configurazione principale',
'MCHAT_STATS' => 'Whois Chat',
'MCHAT_STATS_INDEX' => 'Statistiche su Indice',
'MCHAT_STATS_INDEX_EXPLAIN' => 'Mostra chi sta chattando nella sezione statistiche del forum',
'MCHAT_MESSAGES' => 'Impostazioni messaggi',
'MCHAT_PAUSE_ON_INPUT' => 'Pausa ingresso',
'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'Se impostato Sì, la chat non verrà aggiornata automaticamente se un utente posta in un messaggio in area di immissione',
'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_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_EXPLAIN' => 'Set to yes to override the forums smilie limit setting for chat messages',
'MCHAT_OVERRIDE_MIN_POST_CHARS' => 'Override minimum characters limit',
'MCHAT_OVERRIDE_MIN_POST_CHARS_EXPLAIN' => 'Set to yes to override the forums minimum characters setting for chat messages',
'MCHAT_NEW_POSTS' => 'Display New Posts',
'MCHAT_NEW_POSTS_EXPLAIN' => 'Set to yes to allow new posts from the forum to be posted into the chat message area<br /><strong>You must have the add-on for new post notifications installed</strong> (within the contrib directory of the extension download).',
'MCHAT_MAIN' => 'Main Configuration',
'MCHAT_STATS' => 'Whois Chatting',
'MCHAT_STATS_INDEX' => 'Stats on Index',
'MCHAT_STATS_INDEX_EXPLAIN' => 'Show who is chatting with in the stats section of the forum',
'MCHAT_MESSAGES' => 'Message Settings',
'MCHAT_PAUSE_ON_INPUT' => 'Pause on input',
'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
'MCHAT_NEEDS_UPDATING' => 'Questa estensione necessita di un aggiornamento. Si prega di visitare il sito fondatore per eseguire il programma di installazione.',
'MCHAT_WRONG_VERSION' => 'È installata una versione errata di questa estensione. Perfavore vai al sito %sinstaller%s per la nuova versione.',
'WARNING' => 'Attenzione',
'TOO_LONG_DATE' => 'Il formato della data immessa è troppo lunga.',
'TOO_SHORT_DATE' => 'Il formato della data immessa è troppo corta.',
'TOO_SMALL_REFRESH' => 'Il valore di aggiornamento è troppo piccolo.',
'TOO_LARGE_REFRESH' => 'Il valore di aggiornamento è troppo grande.',
'TOO_SMALL_MESSAGE_LIMIT' => 'Il valore limite messaggio è troppo corto.',
'TOO_LARGE_MESSAGE_LIMIT' => 'Il valore limite messaggio è troppo grande.',
'TOO_SMALL_ARCHIVE_LIMIT' => 'Il valore limite archivio è troppo piccolo.',
'TOO_LARGE_ARCHIVE_LIMIT' => 'Il valore limite archivio è troppo grande.',
'TOO_SMALL_FLOOD_TIME' => 'Il valore di limite di tempo è troppo breve.',
'TOO_LARGE_FLOOD_TIME' => 'Il valore di limite di tempo è troppo alto.',
'TOO_SMALL_MAX_MESSAGE_LNGTH' => 'Il valore massimo della lunghezza del messaggio è troppo breve.',
'TOO_LARGE_MAX_MESSAGE_LNGTH' => 'Il valore massimo della lunghezza del messaggio è troppo alto.',
'TOO_SMALL_MAX_WORDS_LNGTH' => 'Il valore della lunghezza massima delle parole è troppo piccolo.',
'TOO_LARGE_MAX_WORDS_LNGTH' => 'Il valore della lunghezza massima delle parole è troppo alto.',
'TOO_SMALL_WHOIS_REFRESH' => 'Il valore di aggiornamento whois è troppo piccolo.',
'TOO_LARGE_WHOIS_REFRESH' => 'Il valore di aggiornamento whois è troppo alto.',
'TOO_SMALL_INDEX_HEIGHT' => 'Il valore di altezza indice è troppo piccolo.',
'TOO_LARGE_INDEX_HEIGHT' => 'Il valore di altezza indice è troppo alto.',
'TOO_SMALL_CUSTOM_HEIGHT' => 'Il valore di altezza personalizzato è troppo piccolo.',
'TOO_LARGE_CUSTOM_HEIGHT' => 'Il valore di altezza personalizzato è troppo alto.',
'TOO_SHORT_STATIC_MESSAGE' => 'Il valore di messaggio statico è troppo corto.',
'TOO_LONG_STATIC_MESSAGE' => 'Il valore di messaggio statico è troppo lungo.',
'TOO_SMALL_TIMEOUT' => 'Il valore di timeout utente è troppo piccolo.',
'TOO_LARGE_TIMEOUT' => 'Il valore di timeout utente è troppo alto.',
'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.',
'WARNING' => 'Warning',
'TOO_LONG_DATE' => 'The date format you entered is too long.',
'TOO_SHORT_DATE' => 'The date format you entered is too short.',
'TOO_SMALL_REFRESH' => 'The refresh value is too small.',
'TOO_LARGE_REFRESH' => 'The refresh value is too large.',
'TOO_SMALL_MESSAGE_LIMIT' => 'The message limit value is too small.',
'TOO_LARGE_MESSAGE_LIMIT' => 'The message limit value is too large.',
'TOO_SMALL_ARCHIVE_LIMIT' => 'The archive limit value is too small.',
'TOO_LARGE_ARCHIVE_LIMIT' => 'The archive limit value is too large.',
'TOO_SMALL_FLOOD_TIME' => 'The flood time value is too small.',
'TOO_LARGE_FLOOD_TIME' => 'The flood time value is too large.',
'TOO_SMALL_MAX_MESSAGE_LNGTH' => 'The max message length value is too small.',
'TOO_LARGE_MAX_MESSAGE_LNGTH' => 'The max message length value is too large.',
'TOO_SMALL_MAX_WORDS_LNGTH' => 'The max words length value is too small.',
'TOO_LARGE_MAX_WORDS_LNGTH' => 'The max words length value is too large.',
'TOO_SMALL_WHOIS_REFRESH' => 'The whois refresh value is too small.',
'TOO_LARGE_WHOIS_REFRESH' => 'The whois refresh value is too large.',
'TOO_SMALL_INDEX_HEIGHT' => 'The index height value is too small.',
'TOO_LARGE_INDEX_HEIGHT' => 'The index height value is too large.',
'TOO_SMALL_CUSTOM_HEIGHT' => 'The custom height value is too small.',
'TOO_LARGE_CUSTOM_HEIGHT' => 'The custom height value is too large.',
'TOO_SHORT_STATIC_MESSAGE' => 'The static message value is too short.',
'TOO_LONG_STATIC_MESSAGE' => 'The static message value is too long.',
'TOO_SMALL_TIMEOUT' => 'The user timeout value is too small.',
'TOO_LARGE_TIMEOUT' => 'The user timeout value is too large.',
'UCP_CAT_MCHAT' => 'mChat',
'UCP_MCHAT_CONFIG' => 'mChat', //Preferences
'LOG_MCHAT_TABLE_PRUNED' => 'mChat tabelle cancellate',
'ACP_USER_MCHAT' => 'mChat Opzioni',
'LOG_DELETED_MCHAT' => '<strong>Cancella 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>',
'LOG_MCHAT_TABLE_PRUNED' => 'mChat Table was pruned',
'ACP_USER_MCHAT' => 'mChat Settings',
'LOG_DELETED_MCHAT' => '<strong>Deleted 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_TOP_POSTERS' => 'Miglior Spammer',
'MCHAT_NEW_CHAT' => 'Nuovo messaggio in Chat !',
'FONT_COLOR' => 'Font colore',

View File

@@ -97,63 +97,63 @@ $lang = array_merge($lang, array(
'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_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_OVERRIDE_SMILIE_LIMIT' => 'Limite smile',
'MCHAT_OVERRIDE_SMILIE_LIMIT_EXPLAIN' => 'Impostare su Si per ignorare le smile impostazione messaggi di limite in chat',
'MCHAT_OVERRIDE_MIN_POST_CHARS' => 'Ignora limite minimo caratteri',
'MCHAT_OVERRIDE_MIN_POST_CHARS_EXPLAIN' => 'Impostare su SI per ignorare i caratteri minimi impostazione per i messaggi di chat',
'MCHAT_NEW_POSTS' => 'Visualizza nuovi post',
'MCHAT_NEW_POSTS_EXPLAIN' => 'Impostare su SI per consentire ai nuovi messaggi del forum di esser pubblicati in area messaggio chat<br /><strong>È necessario che questo add-on per le nuove notifiche sia installato</strong> (nella directory contrib estensione di download).',
'MCHAT_MAIN' => 'Configurazione principale',
'MCHAT_STATS' => 'Chat Whois',
'MCHAT_STATS_INDEX' => 'Statistiche Index',
'MCHAT_STATS_INDEX_EXPLAIN' => 'Mostra chi sta chattando nella sezione statistiche del forum',
'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 setting for sessions%s which is currently set to %s seconds</em>',
'MCHAT_OVERRIDE_SMILIE_LIMIT' => 'Override smilie limit',
'MCHAT_OVERRIDE_SMILIE_LIMIT_EXPLAIN' => 'Set to yes to override the forums smilie limit setting for chat messages',
'MCHAT_OVERRIDE_MIN_POST_CHARS' => 'Override minimum characters limit',
'MCHAT_OVERRIDE_MIN_POST_CHARS_EXPLAIN' => 'Set to yes to override the forums minimum characters setting for chat messages',
'MCHAT_NEW_POSTS' => 'Display New Posts',
'MCHAT_NEW_POSTS_EXPLAIN' => 'Set to yes to allow new posts from the forum to be posted into the chat message area<br /><strong>You must have the add-on for new post notifications installed</strong> (within the contrib directory of the extension download).',
'MCHAT_MAIN' => 'Main Configuration',
'MCHAT_STATS' => 'Whois Chatting',
'MCHAT_STATS_INDEX' => 'Stats on Index',
'MCHAT_STATS_INDEX_EXPLAIN' => 'Show who is chatting with in the stats section of the forum',
'MCHAT_MESSAGES' => 'Opzioni Messaggi',
'MCHAT_PAUSE_ON_INPUT' => 'Pausa in ingresso',
'MCHAT_PAUSE_ON_INPUT_EXPLAIN' => 'Se impostato Sì, allora la chat non verrà aggiornata automaticamente se un utente inserisce un messaggio in area di immissione',
'MCHAT_PAUSE_ON_INPUT' => 'Pause on input',
'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
'MCHAT_NEEDS_UPDATING' => 'Questa estensione mChat necessita di un aggiornamento. Si prega di visitare il fondatore per eseguire il programma di installazione.',
'MCHAT_WRONG_VERSION' => 'È installata una versione errata di questa estensione. Eseguire il %sinstaller%s per la nuova versione.',
'WARNING' => 'Attenzione',
'TOO_LONG_DATE' => 'Il formato della data immessa è troppo lunga.',
'TOO_SHORT_DATE' => 'Il formato della data immessa è troppo corta.',
'TOO_SMALL_REFRESH' => 'Il valore di aggiornamento è troppo piccolo.',
'TOO_LARGE_REFRESH' => 'Il valore di aggiornamento è troppo grande.',
'TOO_SMALL_MESSAGE_LIMIT' => 'Il valore di limite messaggio è troppo piccolo.',
'TOO_LARGE_MESSAGE_LIMIT' => 'Il valore di limite messaggio è troppo grande.',
'TOO_SMALL_ARCHIVE_LIMIT' => 'Il valore limite archivio è troppo piccolo.',
'TOO_LARGE_ARCHIVE_LIMIT' => 'Il valore limite archivio è troppo grande.',
'TOO_SMALL_FLOOD_TIME' => 'Il valore di tempo è troppo breve.',
'TOO_LARGE_FLOOD_TIME' => 'Il valore di tempo è troppo grande.',
'TOO_SMALL_MAX_MESSAGE_LNGTH' => 'Il valore massimo della lunghezza del messaggio è troppo piccolo.',
'TOO_LARGE_MAX_MESSAGE_LNGTH' => 'Il valore massimo della lunghezza del messaggio è troppo grande.',
'TOO_SMALL_MAX_WORDS_LNGTH' => 'Il valore della lunghezza massima delle parole è troppo piccolo.',
'TOO_LARGE_MAX_WORDS_LNGTH' => 'Il valore della lunghezza massima delle parole è troppo grande.',
'TOO_SMALL_WHOIS_REFRESH' => 'Il valore di aggiornamento whois è troppo piccolo.',
'TOO_LARGE_WHOIS_REFRESH' => 'Il valore di aggiornamento whois è troppo grande.',
'TOO_SMALL_INDEX_HEIGHT' => 'Il valore di altezza indice è troppo piccolo.',
'TOO_LARGE_INDEX_HEIGHT' => 'Il valore di altezza indice è troppo grande.',
'TOO_SMALL_CUSTOM_HEIGHT' => 'Il valore di altezza personalizzato è troppo piccolo.',
'TOO_LARGE_CUSTOM_HEIGHT' => 'Il valore di altezza personalizzato è troppo grande.',
'TOO_SHORT_STATIC_MESSAGE' => 'Il valore di messaggio statico è troppo corto.',
'TOO_LONG_STATIC_MESSAGE' => 'Il valore di messaggio statico è troppo grande.',
'TOO_SMALL_TIMEOUT' => 'Il valore di timeout utente è troppo piccolo.',
'TOO_LARGE_TIMEOUT' => 'Il valore di timeout utente è troppo grande.',
'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.',
'WARNING' => 'Warning',
'TOO_LONG_DATE' => 'The date format you entered is too long.',
'TOO_SHORT_DATE' => 'The date format you entered is too short.',
'TOO_SMALL_REFRESH' => 'The refresh value is too small.',
'TOO_LARGE_REFRESH' => 'The refresh value is too large.',
'TOO_SMALL_MESSAGE_LIMIT' => 'The message limit value is too small.',
'TOO_LARGE_MESSAGE_LIMIT' => 'The message limit value is too large.',
'TOO_SMALL_ARCHIVE_LIMIT' => 'The archive limit value is too small.',
'TOO_LARGE_ARCHIVE_LIMIT' => 'The archive limit value is too large.',
'TOO_SMALL_FLOOD_TIME' => 'The flood time value is too small.',
'TOO_LARGE_FLOOD_TIME' => 'The flood time value is too large.',
'TOO_SMALL_MAX_MESSAGE_LNGTH' => 'The max message length value is too small.',
'TOO_LARGE_MAX_MESSAGE_LNGTH' => 'The max message length value is too large.',
'TOO_SMALL_MAX_WORDS_LNGTH' => 'The max words length value is too small.',
'TOO_LARGE_MAX_WORDS_LNGTH' => 'The max words length value is too large.',
'TOO_SMALL_WHOIS_REFRESH' => 'The whois refresh value is too small.',
'TOO_LARGE_WHOIS_REFRESH' => 'The whois refresh value is too large.',
'TOO_SMALL_INDEX_HEIGHT' => 'The index height value is too small.',
'TOO_LARGE_INDEX_HEIGHT' => 'The index height value is too large.',
'TOO_SMALL_CUSTOM_HEIGHT' => 'The custom height value is too small.',
'TOO_LARGE_CUSTOM_HEIGHT' => 'The custom height value is too large.',
'TOO_SHORT_STATIC_MESSAGE' => 'The static message value is too short.',
'TOO_LONG_STATIC_MESSAGE' => 'The static message value is too long.',
'TOO_SMALL_TIMEOUT' => 'The user timeout value is too small.',
'TOO_LARGE_TIMEOUT' => 'The user timeout value is too large.',
// User perms
'ACL_U_MCHAT_USE' => 'Puoi usare mchat',
'ACL_U_MCHAT_VIEW' => 'Puoi vedere mChat mchat',
'ACL_U_MCHAT_EDIT' => 'Puoi modificare i messaggi in mChat',
'ACL_U_MCHAT_DELETE' => 'Puoi cancellare i messaggi in mchat',
'ACL_U_MCHAT_IP' => 'Puoi visualizzare indirizzi IP in mChat',
'ACL_U_MCHAT_FLOOD_IGNORE' => 'Puoi ignorare limite flood in mChat',
'ACL_U_MCHAT_ARCHIVE' => 'Puoi visualizzare archivio mchat',
'ACL_U_MCHAT_BBCODE' => 'Puoi usare bbcode in mChat',
'ACL_U_MCHAT_SMILIES' => 'Puoi usare smile in mChat',
'ACL_U_MCHAT_URLS' => 'Puoi postare url in mChat',
'ACL_U_MCHAT_IP' => 'Can use view mChat IP addresses mchat',
'ACL_U_MCHAT_FLOOD_IGNORE' => 'Can ignore mChat flood mchat',
'ACL_U_MCHAT_ARCHIVE' => 'Can view the Archive mchat',
'ACL_U_MCHAT_BBCODE' => 'Can use bbcode in mChat mchat',
'ACL_U_MCHAT_SMILIES' => 'Can use smilies in mChat mchat',
'ACL_U_MCHAT_URLS' => 'Can post urls in mChat mchat',
// Admin perms
'ACL_A_MCHAT' => array('lang' => 'Puoi modificare impostazioni mChat', 'cat' => 'permessi'), // Using a phpBB category here
'ACL_A_MCHAT' => array('lang' => 'Can manage mChat settings', 'cat' => 'permissions'), // Using a phpBB category here
));

View File

@@ -20,7 +20,7 @@ class mchat_schema extends \phpbb\db\migration\migration
array('config.add', array('mchat_on_index', true)),
array('config.add', array('mchat_new_posts', false)),
array('config.add', array('mchat_stats_index', false)),
array('config.add', array('mchat_version','0.0.2')),
array('config.add', array('mchat_version','0.0.3')),
array('permission.add', array('u_mchat_use')),
array('permission.add', array('u_mchat_view')),

View File

@@ -62,7 +62,7 @@ class mchat_schema_3 extends \phpbb\db\migration\migration
),
array(
'config_name' => 'whois',
'config_value' => '0',
'config_value' => '1',
),
array(
'config_name' => 'bbcode_disallowed',

View File

@@ -426,8 +426,9 @@ var mChat={
$jQ('#mChatRefresh').hide()
}
},
success:function(stats){
$jQ('#mChatStats').replaceWith(stats);
success: function (data) {
var json = $.parseJSON(data);
$('#mChatStats').replaceWith(json.message);
if(mChatCustomPage){
setTimeout(function(){
$jQ('#mChatRefreshN').hide();

View File

@@ -175,7 +175,7 @@
<h3>{L_WHO_IS_CHATTING}</h3>
<div class="mChatStats" id="mChatStats"><!-- IF MCHAT_USERS_LIST --><a href="#" onclick="mChat.toggle('UserList'); return false;">{MCHAT_USERS_COUNT}</a><!-- ELSE -->{MCHAT_USERS_COUNT}<!-- ENDIF -->&nbsp;{L_MCHAT_ONLINE_EXPLAIN}<br /><span id="mChatUserList">{MCHAT_USERS_LIST}</span></div>
<div class="mChatRefresh"><span id="mChatRefresh">{L_MCHAT_WHOIS_REFRESH_EXPLAIN}</span><span id="mChatRefreshN" style="display: none;">{L_MCHAT_REFRESHING}</span>
<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></div>
<!-- IF LEGEND --><br /><em>{L_LEGEND}{L_COLON} {LEGEND}</em><!-- ENDIF --></div>
<!-- ENDIF -->
<!-- IF MCHAT_ARCHIVE_MODE or MCHAT_CUSTOM_PAGE -->
<!-- INCLUDE overall_footer.html -->