Update version 0.0.13
Update version 0.0.13
This commit is contained in:
@@ -62,7 +62,6 @@ class acp_mchat_module
|
||||
$this->config = $config;
|
||||
$this->config_text = $phpbb_container->get('config_text');
|
||||
$this->db = $db;
|
||||
|
||||
$this->request = $request;
|
||||
$this->template = $template;
|
||||
$this->user = $user;
|
||||
@@ -160,19 +159,19 @@ class acp_mchat_module
|
||||
$config->set('mchat_enable', $request->variable('mchat_enable', 0));
|
||||
// update setting in config table for allowing on index or not
|
||||
$config->set('mchat_on_index', $request->variable('mchat_on_index', 0));
|
||||
// update setting in config table to allow new posts to display or not
|
||||
// update setting in config table to enable posts to display or not
|
||||
$config->set('mchat_new_posts', $request->variable('mchat_new_posts', 0));
|
||||
// update setting in config table to allow new posts to display or not
|
||||
// update setting in config table to allow topic to display or not
|
||||
$config->set('mchat_new_posts_topic', $request->variable('mchat_new_posts_topic', 0));
|
||||
// update setting in config table to allow new replies to display or not
|
||||
// update setting in config table to allow replies to display or not
|
||||
$config->set('mchat_new_posts_reply', $request->variable('mchat_new_posts_reply', 0));
|
||||
// update setting in config table to allow new edit posts to display or not
|
||||
// update setting in config table to allow edit posts to display or not
|
||||
$config->set('mchat_new_posts_edit', $request->variable('mchat_new_posts_edit', 0));
|
||||
// update setting in config table to allow quoted posts to display or not
|
||||
$config->set('mchat_new_posts_quote', $request->variable('mchat_new_posts_quote', 0));
|
||||
// update setting in config table for stats on index
|
||||
$config->set('mchat_stats_index', $request->variable('mchat_stats_index', 0));
|
||||
// update setting in config table for message om top
|
||||
// update setting in config table for message on top
|
||||
$config->set('mchat_message_top', $request->variable('mchat_message_top', 0));
|
||||
|
||||
// and an entry into the log table
|
||||
@@ -206,9 +205,7 @@ class acp_mchat_module
|
||||
$mchat_new_posts_reply = isset($config['mchat_new_posts_reply']) ? $config['mchat_new_posts_reply'] : 0;
|
||||
$mchat_new_posts_edit = isset($config['mchat_new_posts_edit']) ? $config['mchat_new_posts_edit'] : 0;
|
||||
$mchat_new_posts_quote = isset($config['mchat_new_posts_quote']) ? $config['mchat_new_posts_quote'] : 0;
|
||||
|
||||
$mchat_stats_index = isset($config['mchat_stats_index']) ? $config['mchat_stats_index'] : 0;
|
||||
|
||||
$mchat_message_top = isset($config['mchat_message_top']) ? $config['mchat_message_top'] : 0;
|
||||
|
||||
$dateformat_options = '';
|
||||
@@ -263,12 +260,9 @@ class acp_mchat_module
|
||||
'MCHAT_NEW_POSTS_REPLY' => ($mchat_new_posts_reply) ? true : false,
|
||||
'MCHAT_NEW_POSTS_EDIT' => ($mchat_new_posts_edit) ? true : false,
|
||||
'MCHAT_NEW_POSTS_QUOTE' => ($mchat_new_posts_quote) ? true : false,
|
||||
|
||||
'MCHAT_PAUSE_ON_INPUT' => !empty($mchat_row['pause_on_input']) ? $mchat_row['pause_on_input'] : $mchat_config['pause_on_input'],
|
||||
|
||||
'L_MCHAT_BBCODES_DISALLOWED_EXPLAIN' => sprintf($user->lang['MCHAT_BBCODES_DISALLOWED_EXPLAIN'], '<a href="' . append_sid("{$phpbb_admin_path}index.$phpEx", 'i=bbcodes', true, $user->session_id) . '">', '</a>'),
|
||||
'L_MCHAT_TIMEOUT_EXPLAIN' => sprintf($user->lang['MCHAT_USER_TIMEOUT_EXPLAIN'],'<a href="' . append_sid("{$phpbb_admin_path}index.$phpEx", 'i=board&mode=load', true, $user->session_id) . '">', '</a>', $config['session_length']),
|
||||
|
||||
'S_MCHAT_DATEFORMAT_OPTIONS' => $dateformat_options,
|
||||
'S_CUSTOM_DATEFORMAT' => $s_custom,
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"type": "phpbb-extension",
|
||||
"description": "mChat Extension for phpbb 3.1.x",
|
||||
"homepage": "http://www.dmzx-web.net",
|
||||
"version": "0.0.12",
|
||||
"version": "0.0.13",
|
||||
"time": "2015-03-10",
|
||||
"keywords": ["phpbb", "extension", "mchat"],
|
||||
"license": "GPL-2.0",
|
||||
|
||||
@@ -86,6 +86,7 @@ class render_helper
|
||||
|
||||
// Add lang file
|
||||
//$this->user->add_lang(array('mods/mchat_lang', 'viewtopic', 'posting'));
|
||||
$this->user->add_lang('posting');
|
||||
|
||||
//chat enabled
|
||||
if (!$this->config['mchat_enable'])
|
||||
@@ -114,6 +115,9 @@ class render_helper
|
||||
$mchat_smilies = ($this->config['allow_smilies'] && $this->auth->acl_get('u_mchat_smilies')) ? true : false;
|
||||
$mchat_urls = ($this->config['allow_post_links'] && $this->auth->acl_get('u_mchat_urls')) ? true : false;
|
||||
$mchat_ip = ($this->auth->acl_get('u_mchat_ip')) ? true : false;
|
||||
$mchat_pm = ($this->auth->acl_get('u_mchat_pm')) ? true : false;
|
||||
$mchat_like = ($this->auth->acl_get('u_mchat_like')) ? true : false;
|
||||
$mchat_quote = ($this->auth->acl_get('u_mchat_quote')) ? true : false;
|
||||
$mchat_add_mess = ($this->auth->acl_get('u_mchat_use')) ? true : false;
|
||||
$mchat_view = ($this->auth->acl_get('u_mchat_view')) ? true : false;
|
||||
$mchat_no_flood = ($this->auth->acl_get('u_mchat_flood_ignore')) ? true : false;
|
||||
@@ -254,11 +258,11 @@ class render_helper
|
||||
|
||||
meta_refresh(3, $mchat_redirect);
|
||||
// Return for: \$this->helper->error(error_text, error_type);
|
||||
return array(
|
||||
'error' => true,
|
||||
'error_type' => E_USER_NOTICE,
|
||||
'error_text' => $this->user->lang['MCHAT_CLEANED'].'<br /><br />'.sprintf($this->user->lang['RETURN_PAGE'], '<a href="'.$mchat_redirect.'">', '</a>'),
|
||||
);
|
||||
// return array(
|
||||
// 'error' => true,
|
||||
// 'error_type' => E_USER_NOTICE,
|
||||
// 'error_text' => $this->user->lang['MCHAT_CLEANED'].'<br /><br />'.sprintf($this->user->lang['RETURN_PAGE'], '<a href="'.$mchat_redirect.'">', '</a>'),
|
||||
// );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -341,7 +345,7 @@ class render_helper
|
||||
'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->user->data['user_id'] != $row['user_id']) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
|
||||
'U_USER_IDS' => ($row['user_id'] != ANONYMOUS && $this->user->data['user_id'] != $row['user_id']) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
|
||||
'BOT_USER_ID' => $row['user_id'] != '1',
|
||||
'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'] != '1' && ($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,
|
||||
@@ -460,7 +464,7 @@ class render_helper
|
||||
'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->user->data['user_id'] != $row['user_id']) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
|
||||
'U_USER_IDS' => ($row['user_id'] != ANONYMOUS && $this->user->data['user_id'] != $row['user_id']) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
|
||||
'BOT_USER_ID' => $row['user_id'] != '1',
|
||||
'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'] != '1' && ($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,
|
||||
@@ -770,7 +774,7 @@ class render_helper
|
||||
'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->user->data['user_id'] != $row['user_id']) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
|
||||
'U_USER_IDS' => ($row['user_id'] != ANONYMOUS && $this->user->data['user_id'] != $row['user_id']) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
|
||||
'BOT_USER_ID' => $row['user_id'] != '1',
|
||||
'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'] != '1' && ($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'],
|
||||
@@ -1003,7 +1007,7 @@ class render_helper
|
||||
'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->user->data['user_id'] != $row['user_id']) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
|
||||
'U_USER_IDS' => ($row['user_id'] != ANONYMOUS && $this->user->data['user_id'] != $row['user_id']) ? append_sid("{$this->phpbb_root_path}ucp.{$this->phpEx}", 'i=pm&mode=compose&u=' . $row['user_id']) : '',
|
||||
'BOT_USER_ID' => $row['user_id'] != '1',
|
||||
'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'] != '1' && ($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,
|
||||
@@ -1101,6 +1105,9 @@ class render_helper
|
||||
'MCHAT_RULES' => $mchat_rules,
|
||||
'MCHAT_ALLOW_SMILES' => $mchat_smilies,
|
||||
'MCHAT_ALLOW_IP' => $mchat_ip,
|
||||
'MCHAT_ALLOW_PM' => $mchat_pm,
|
||||
'MCHAT_ALLOW_LIKE' => $mchat_like,
|
||||
'MCHAT_ALLOW_QUOTE' => $mchat_quote,
|
||||
'MCHAT_NOMESSAGE_MODE' => $mchat_no_message,
|
||||
'MCHAT_ALLOW_BBCODES' => ($mchat_allow_bbcode && $this->config['allow_bbcode']) ? true : false,
|
||||
'MCHAT_MESSAGE_TOP' => $this->config['mchat_message_top'] ? true : false,
|
||||
|
||||
@@ -151,7 +151,7 @@ class listener implements EventSubscriberInterface
|
||||
}
|
||||
|
||||
// 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'] . ' Section[/url] ');
|
||||
$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
|
||||
generate_text_for_storage($message, $uid, $bitfield, $options, true, false, false);
|
||||
|
||||
@@ -40,7 +40,9 @@ $lang = array_merge($lang, array(
|
||||
|
||||
'MCHAT_TITLE' => 'Mini-Chat',
|
||||
'MCHAT_ADD' => 'Senden',
|
||||
'MCHAT_IN' => 'In',
|
||||
'MCHAT_IN' => 'in',
|
||||
'MCHAT_IN_SECTION' => 'section',
|
||||
'MCHAT_LIKES' => 'Likes this post',
|
||||
'MCHAT_ANNOUNCEMENT' => 'Ankündigen',
|
||||
'MCHAT_ARCHIVE' => 'Archiv',
|
||||
'MCHAT_ARCHIVE_PAGE' => 'Mini-Chat Archiv',
|
||||
@@ -124,17 +126,8 @@ $lang = array_merge($lang, array(
|
||||
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Characters remaining: <span class="charsLeft error"><strong>%d</strong></span>',
|
||||
'MCHAT_TOP_POSTERS' => 'Top Poster',
|
||||
'MCHAT_NEW_CHAT' => 'Neue mChat Nachricht!',
|
||||
'FONT_COLOR' => 'Schriftfarbe',
|
||||
'FONT_COLOR_HIDE' => 'Schriftfarbe ausblenden',
|
||||
'FONT_HUGE' => 'Riesig',
|
||||
'FONT_LARGE' => 'Groß',
|
||||
'FONT_NORMAL' => 'Normal',
|
||||
'FONT_SIZE' => 'Schriftgröße',
|
||||
'FONT_SMALL' => 'Klein',
|
||||
'FONT_TINY' => 'Tiny',
|
||||
'MCHAT_SEND_PM' => 'Sende private Nachricht',
|
||||
'MCHAT_PM' => '(PN)',
|
||||
'MORE_SMILIES' => 'Mehr Smilies',
|
||||
|
||||
//Custom edits
|
||||
'REPLY_WITH_LIKE' =>'Like This Post',
|
||||
|
||||
@@ -40,7 +40,9 @@ $lang = array_merge($lang, array(
|
||||
|
||||
'MCHAT_TITLE' => 'Mini-Chat',
|
||||
'MCHAT_ADD' => 'Send',
|
||||
'MCHAT_IN' => 'In',
|
||||
'MCHAT_IN' => 'in',
|
||||
'MCHAT_IN_SECTION' => 'section',
|
||||
'MCHAT_LIKES' => 'Likes this post',
|
||||
'MCHAT_ANNOUNCEMENT' => 'Announcement',
|
||||
'MCHAT_ARCHIVE' => 'Archive',
|
||||
'MCHAT_ARCHIVE_PAGE' => 'Mini-Chat Archive',
|
||||
@@ -124,17 +126,8 @@ $lang = array_merge($lang, array(
|
||||
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Characters remaining: <span class="charsLeft error"><strong>%d</strong></span>',
|
||||
'MCHAT_TOP_POSTERS' => 'Top Spammers',
|
||||
'MCHAT_NEW_CHAT' => 'New Chat Message!',
|
||||
'FONT_COLOR' => 'Font colour',
|
||||
'FONT_COLOR_HIDE' => 'Hide font colour',
|
||||
'FONT_HUGE' => 'Huge',
|
||||
'FONT_LARGE' => 'Large',
|
||||
'FONT_NORMAL' => 'Normal',
|
||||
'FONT_SIZE' => 'Font size',
|
||||
'FONT_SMALL' => 'Small',
|
||||
'FONT_TINY' => 'Tiny',
|
||||
'MCHAT_SEND_PM' => 'Send Private Message',
|
||||
'MCHAT_PM' => '(PM)',
|
||||
'MORE_SMILIES' => 'More Smilies',
|
||||
|
||||
//Custom edits
|
||||
'REPLY_WITH_LIKE' =>'Like This Post',
|
||||
|
||||
@@ -158,6 +158,9 @@ $lang = array_merge($lang, array(
|
||||
'ACL_U_MCHAT_EDIT' => 'Can edit mChat messages mchat',
|
||||
'ACL_U_MCHAT_DELETE' => 'Can delete mChat messages mchat',
|
||||
'ACL_U_MCHAT_IP' => 'Can use view mChat IP addresses mchat',
|
||||
'ACL_U_MCHAT_PM' => 'Can use private message in mchat',
|
||||
'ACL_U_MCHAT_LIKE' => 'Can use like message in mchat',
|
||||
'ACL_U_MCHAT_QUOTE' => 'Can use quote message in 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',
|
||||
|
||||
@@ -40,7 +40,9 @@ $lang = array_merge($lang, array(
|
||||
|
||||
'MCHAT_TITLE' => 'Mini-Chat',
|
||||
'MCHAT_ADD' => 'Envoyer',
|
||||
'MCHAT_IN' => 'In',
|
||||
'MCHAT_IN' => 'in',
|
||||
'MCHAT_IN_SECTION' => 'section',
|
||||
'MCHAT_LIKES' => 'Likes this post',
|
||||
'MCHAT_ANNOUNCEMENT' => 'Annonce',
|
||||
'MCHAT_ARCHIVE' => 'Archives',
|
||||
'MCHAT_ARCHIVE_PAGE' => 'Archives du mini-chat',
|
||||
@@ -124,17 +126,8 @@ $lang = array_merge($lang, array(
|
||||
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caractères restants: <span class="charsLeft error"><strong>%d</strong></span>',
|
||||
'MCHAT_TOP_POSTERS' => 'Top Spammers',
|
||||
'MCHAT_NEW_CHAT' => 'Nouveau Message Dans Mchat!',
|
||||
'FONT_COLOR' => 'Couleur de fond',
|
||||
'FONT_COLOR_HIDE' => 'Cacher la couleur de fond',
|
||||
'FONT_HUGE' => 'Énorme',
|
||||
'FONT_LARGE' => 'Large',
|
||||
'FONT_NORMAL' => 'Normal',
|
||||
'FONT_SIZE' => 'Taille de la police',
|
||||
'FONT_SMALL' => 'Petite',
|
||||
'FONT_TINY' => 'Minuscule',
|
||||
'MCHAT_SEND_PM' => 'Envoyer un message privé',
|
||||
'MCHAT_PM' => '(MP)',
|
||||
'MORE_SMILIES' => 'Plus de smileys',
|
||||
|
||||
//Custom edits
|
||||
'REPLY_WITH_LIKE' =>'Like This Post',
|
||||
|
||||
@@ -40,7 +40,9 @@ $lang = array_merge($lang, array(
|
||||
|
||||
'MCHAT_TITLE' => 'Mini-Chat',
|
||||
'MCHAT_ADD' => 'Invia',
|
||||
'MCHAT_IN' => 'In',
|
||||
'MCHAT_IN' => 'in',
|
||||
'MCHAT_IN_SECTION' => 'section',
|
||||
'MCHAT_LIKES' => 'Likes this post',
|
||||
'MCHAT_ANNOUNCEMENT' => 'Announcio',
|
||||
'MCHAT_ARCHIVE' => 'Archivio',
|
||||
'MCHAT_ARCHIVE_PAGE' => 'Mini-Chat Archivio',
|
||||
@@ -124,17 +126,8 @@ $lang = array_merge($lang, array(
|
||||
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Caratteri: <span class="charsLeft error"><strong>%d</strong></span>',
|
||||
'MCHAT_TOP_POSTERS' => 'Miglior Spammer',
|
||||
'MCHAT_NEW_CHAT' => 'Nuovo messaggio in Chat !',
|
||||
'FONT_COLOR' => 'Font colore',
|
||||
'FONT_COLOR_HIDE' => 'Nascondi colore font',
|
||||
'FONT_HUGE' => 'Enorme',
|
||||
'FONT_LARGE' => 'Grande',
|
||||
'FONT_NORMAL' => 'Normale',
|
||||
'FONT_SIZE' => 'Grandezza Font',
|
||||
'FONT_SMALL' => 'Piccolo',
|
||||
'FONT_TINY' => 'Molto Piccolo',
|
||||
'MCHAT_SEND_PM' => 'Invia messaggio privato',
|
||||
'MCHAT_PM' => '(PM)',
|
||||
'MORE_SMILIES' => 'Altre Smile',
|
||||
|
||||
//Custom edits
|
||||
'REPLY_WITH_LIKE' =>'Like This Post',
|
||||
|
||||
@@ -40,7 +40,9 @@ $lang = array_merge($lang, array(
|
||||
|
||||
'MCHAT_TITLE' => 'Mini-Chat',
|
||||
'MCHAT_ADD' => 'Versturen',
|
||||
'MCHAT_IN' => 'In',
|
||||
'MCHAT_IN' => 'in',
|
||||
'MCHAT_IN_SECTION' => 'section',
|
||||
'MCHAT_LIKES' => 'Likes this post',
|
||||
'MCHAT_ANNOUNCEMENT' => 'Aankondiging',
|
||||
'MCHAT_ARCHIVE' => 'Archief',
|
||||
'MCHAT_ARCHIVE_PAGE' => 'Mini-Chat Archief',
|
||||
@@ -124,17 +126,8 @@ $lang = array_merge($lang, array(
|
||||
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Overgebleven karakters: <span class="charsLeft error"><strong>%d</strong></span>',
|
||||
'MCHAT_TOP_POSTERS' => 'Top Spammers',
|
||||
'MCHAT_NEW_CHAT' => 'Nieuw Chat bericht!',
|
||||
'FONT_COLOR' => 'letterkleur',
|
||||
'FONT_COLOR_HIDE' => 'verberg letterkleur',
|
||||
'FONT_HUGE' => 'Zeer Groot',
|
||||
'FONT_LARGE' => 'Groot',
|
||||
'FONT_NORMAL' => 'Normaal',
|
||||
'FONT_SIZE' => 'Letter grootte',
|
||||
'FONT_SMALL' => 'Klein',
|
||||
'FONT_TINY' => 'zeer klein',
|
||||
'MCHAT_SEND_PM' => 'Stuur prive bericht',
|
||||
'MCHAT_PM' => '(PM)',
|
||||
'MORE_SMILIES' => 'Meer Smilies',
|
||||
|
||||
//Custom edits
|
||||
'REPLY_WITH_LIKE' =>'Like This Post',
|
||||
|
||||
@@ -40,7 +40,9 @@ $lang = array_merge($lang, array(
|
||||
|
||||
'MCHAT_TITLE' => 'Mini-Chat',
|
||||
'MCHAT_ADD' => 'Wyślij',
|
||||
'MCHAT_IN' => 'In',
|
||||
'MCHAT_IN' => 'in',
|
||||
'MCHAT_IN_SECTION' => 'section',
|
||||
'MCHAT_LIKES' => 'Likes this post',
|
||||
'MCHAT_ANNOUNCEMENT' => 'Ogłoszenie',
|
||||
'MCHAT_ARCHIVE' => 'Archiwum',
|
||||
'MCHAT_ARCHIVE_PAGE' => 'Mini-Chat Archiwum',
|
||||
@@ -124,17 +126,8 @@ $lang = array_merge($lang, array(
|
||||
'MCHAT_MESSAGE_LNGTH_EXPLAIN' => 'Pozostało znaków: <span class="charsLeft error"><strong>%d</strong></span>',
|
||||
'MCHAT_TOP_POSTERS' => 'Top Spammerzy',
|
||||
'MCHAT_NEW_CHAT' => 'Nowa wiadomośc na mChacie!',
|
||||
'FONT_COLOR' => 'Kolor czcionki',
|
||||
'FONT_COLOR_HIDE' => 'Ukryj kolor czcionki',
|
||||
'FONT_HUGE' => 'Ogromne',
|
||||
'FONT_LARGE' => 'Duże',
|
||||
'FONT_NORMAL' => 'Normalne',
|
||||
'FONT_SIZE' => 'Rozmiar czcionki',
|
||||
'FONT_SMALL' => 'Mały',
|
||||
'FONT_TINY' => 'Malutki',
|
||||
'MCHAT_SEND_PM' => 'Wyślij prywatną wiadomość',
|
||||
'MCHAT_PM' => '(PM)',
|
||||
'MORE_SMILIES' => 'Więcej emotikon',
|
||||
|
||||
//Custom edits
|
||||
'REPLY_WITH_LIKE' =>'Like This Post',
|
||||
|
||||
@@ -25,13 +25,16 @@ class mchat_schema extends \phpbb\db\migration\migration
|
||||
array('config.add', array('mchat_new_posts_quote', false)),
|
||||
array('config.add', array('mchat_message_top', true)),
|
||||
array('config.add', array('mchat_stats_index', false)),
|
||||
array('config.add', array('mchat_version','0.0.12')),
|
||||
array('config.add', array('mchat_version','0.0.13')),
|
||||
|
||||
array('permission.add', array('u_mchat_use')),
|
||||
array('permission.add', array('u_mchat_view')),
|
||||
array('permission.add', array('u_mchat_edit')),
|
||||
array('permission.add', array('u_mchat_delete')),
|
||||
array('permission.add', array('u_mchat_ip')),
|
||||
array('permission.add', array('u_mchat_pm')),
|
||||
array('permission.add', array('u_mchat_like')),
|
||||
array('permission.add', array('u_mchat_quote')),
|
||||
array('permission.add', array('u_mchat_flood_ignore')),
|
||||
array('permission.add', array('u_mchat_archive')),
|
||||
array('permission.add', array('u_mchat_bbcode')),
|
||||
@@ -45,6 +48,9 @@ class mchat_schema extends \phpbb\db\migration\migration
|
||||
array('permission.permission_set', array('ADMINISTRATORS', 'u_mchat_edit', 'group')),
|
||||
array('permission.permission_set', array('ADMINISTRATORS', 'u_mchat_delete', 'group')),
|
||||
array('permission.permission_set', array('ADMINISTRATORS', 'u_mchat_ip', 'group')),
|
||||
array('permission.permission_set', array('ADMINISTRATORS', 'u_mchat_pm', 'group')),
|
||||
array('permission.permission_set', array('ADMINISTRATORS', 'u_mchat_like', 'group')),
|
||||
array('permission.permission_set', array('ADMINISTRATORS', 'u_mchat_quote', 'group')),
|
||||
array('permission.permission_set', array('ADMINISTRATORS', 'u_mchat_flood_ignore', 'group')),
|
||||
array('permission.permission_set', array('ADMINISTRATORS', 'u_mchat_archive', 'group')),
|
||||
array('permission.permission_set', array('ADMINISTRATORS', 'u_mchat_bbcode', 'group')),
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
<div class="mChatAvatars"><!-- IF mchatrow.U_VIEWPROFILE --><a href="{mchatrow.U_VIEWPROFILE}" title="{L_READ_PROFILE}"><!-- ENDIF --><!-- IF mchatrow.MCHAT_USER_AVATAR -->{mchatrow.MCHAT_USER_AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" width="40px;" height="40px;" alt="" /><!-- ENDIF --><!-- IF mchatrow.U_VIEWPROFILE --></a><!-- ENDIF -->
|
||||
</div>
|
||||
<div>
|
||||
<span style="float:left;"><!-- IF not MCHAT_ARCHIVE_MODE and MCHAT_ADD_MESSAGE --><!-- IF MCHAT_ALLOW_BBCODES --><!-- IF mchatrow.MCHAT_USERNAME_COLOR --><a class="mChatScriptLink" href="#" onclick="insert_text('@ [b][color={mchatrow.MCHAT_USERNAME_COLOR}]{mchatrow.MCHAT_USERNAME}[/color][/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><span style="color: {mchatrow.MCHAT_USERNAME_COLOR}"><strong>@</strong></span></a><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('@ [b]{mchatrow.MCHAT_USERNAME}[/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><strong>@</strong></a><!-- ENDIF --><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('@ {mchatrow.MCHAT_USERNAME}, ', false);return false;" title="{L_MCHAT_RESPOND}">@</a><!-- ENDIF --> <!-- ENDIF -->{mchatrow.MCHAT_USERNAME_FULL} <!-- IF mchatrow.U_USER_ID and mchatrow.BOT_USER_ID --><a href="{mchatrow.U_USER_ID}" title="{L_MCHAT_SEND_PM}">{L_MCHAT_PM}</a><!-- ENDIF --> - {mchatrow.MCHAT_TIME}</span>
|
||||
<span style="float:right;"><!-- IF mchatrow.U_USER_ID and mchatrow.BOT_USER_ID --><a href="#" onclick="insert_like('{mchatrow.MCHAT_USERNAME}','{mchatrow.MCHAT_MESSAGE_EDIT}'); return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/like.png" alt="{L_REPLY_WITH_LIKE}" title="{L_REPLY_WITH_LIKE}" class="mChatImage" /></a><!-- ENDIF --> <!-- IF mchatrow.U_USER_ID and mchatrow.BOT_USER_ID --><a href="#" onclick="insert_quote('{mchatrow.MCHAT_USERNAME}','{mchatrow.MCHAT_MESSAGE_EDIT}'); return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/quota.png" alt="{L_REPLY_WITH_QUOTE}" title="{L_REPLY_WITH_QUOTE}" class="mChatImage" /></a><!-- ENDIF --> <!-- IF MCHAT_ALLOW_IP --><a href="{mchatrow.MCHAT_U_WHOIS}" onclick="popup(this.href, 750, 500); return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/ip.gif" alt="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" title="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_BAN --> <a href="{mchatrow.MCHAT_U_BAN}"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/ban.gif" alt="{L_MCHAT_PERMISSIONS}" title="{L_MCHAT_PERMISSIONS}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_EDIT --> <a href="#" onclick="mChat.edit('{mchatrow.MCHAT_MESSAGE_ID}');return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/edit.gif" alt="{L_MCHAT_EDIT}" title="{L_MCHAT_EDIT}" class="mChatImage" /></a><!-- ENDIF --><input type="hidden" id="edit{mchatrow.MCHAT_MESSAGE_ID}" value="{mchatrow.MCHAT_MESSAGE_EDIT}" /><!-- IF mchatrow.MCHAT_ALLOW_DEL --> <a href="#" onclick="mChat.del('{mchatrow.MCHAT_MESSAGE_ID}');return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/del.gif" alt="{L_MCHAT_DELITE}" title="{L_MCHAT_DELITE}" class="mChatImage" /></a><!-- ENDIF --></span><br /><div class="avatarMessage mChatMessage">{mchatrow.MCHAT_MESSAGE}</div>
|
||||
<span style="float:left;"><!-- IF not MCHAT_ARCHIVE_MODE and MCHAT_ADD_MESSAGE --><!-- IF MCHAT_ALLOW_BBCODES --><!-- IF mchatrow.MCHAT_USERNAME_COLOR --><a class="mChatScriptLink" href="#" onclick="insert_text('@ [b][color={mchatrow.MCHAT_USERNAME_COLOR}]{mchatrow.MCHAT_USERNAME}[/color][/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><span style="color: {mchatrow.MCHAT_USERNAME_COLOR}"><strong>@</strong></span></a><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('@ [b]{mchatrow.MCHAT_USERNAME}[/b], ', false);return false;" title="{L_MCHAT_RESPOND}"><strong>@</strong></a><!-- ENDIF --><!-- ELSE --> <a href="#" class="mChatScriptLink" onclick="insert_text('@ {mchatrow.MCHAT_USERNAME}, ', false);return false;" title="{L_MCHAT_RESPOND}">@</a><!-- ENDIF --> <!-- ENDIF -->{mchatrow.MCHAT_USERNAME_FULL} - {mchatrow.MCHAT_TIME}</span>
|
||||
<span style="float:right;"><!-- IF mchatrow.U_USER_ID and mchatrow.BOT_USER_ID and MCHAT_ALLOW_PM --><a href="{mchatrow.U_USER_ID}" title="{L_MCHAT_SEND_PM}" return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/message.gif" alt="{L_MCHAT_SEND_PM}" title="{L_MCHAT_SEND_PM}" class="mChatImage" /></a> <!-- ENDIF --><!-- IF mchatrow.U_USER_IDS and MCHAT_ALLOW_LIKE --><a href="#" onclick="insert_like('{mchatrow.MCHAT_USERNAME}','{mchatrow.MCHAT_MESSAGE_EDIT}'); return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/like.png" alt="{L_REPLY_WITH_LIKE}" title="{L_REPLY_WITH_LIKE}" class="mChatImage" /></a><!-- ENDIF --> <!-- IF mchatrow.U_USER_IDS and MCHAT_ALLOW_QUOTE --><a href="#" onclick="insert_quote('{mchatrow.MCHAT_USERNAME}','{mchatrow.MCHAT_MESSAGE_EDIT}'); return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/quota.png" alt="{L_REPLY_WITH_QUOTE}" title="{L_REPLY_WITH_QUOTE}" class="mChatImage" /></a><!-- ENDIF --> <!-- IF MCHAT_ALLOW_IP --><a href="{mchatrow.MCHAT_U_WHOIS}" onclick="popup(this.href, 750, 500); return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/ip.gif" alt="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" title="{L_MCHAT_IP} {mchatrow.MCHAT_USER_IP}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_BAN --> <a href="{mchatrow.MCHAT_U_BAN}"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/ban.gif" alt="{L_MCHAT_PERMISSIONS}" title="{L_MCHAT_PERMISSIONS}" class="mChatImage" /></a><!-- ENDIF --><!-- IF mchatrow.MCHAT_ALLOW_EDIT --> <a href="#" onclick="mChat.edit('{mchatrow.MCHAT_MESSAGE_ID}');return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/edit.gif" alt="{L_MCHAT_EDIT}" title="{L_MCHAT_EDIT}" class="mChatImage" /></a><!-- ENDIF --><input type="hidden" id="edit{mchatrow.MCHAT_MESSAGE_ID}" value="{mchatrow.MCHAT_MESSAGE_EDIT}" /><!-- IF mchatrow.MCHAT_ALLOW_DEL --> <a href="#" onclick="mChat.del('{mchatrow.MCHAT_MESSAGE_ID}');return false;"><img src="{BOARD_URL}ext/dmzx/mchat/styles/prosilver/theme/images/del.gif" alt="{L_MCHAT_DELITE}" title="{L_MCHAT_DELITE}" class="mChatImage" /></a><!-- ENDIF --></span><br /><div class="avatarMessage mChatMessage">{mchatrow.MCHAT_MESSAGE}</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END mchatrow -->
|
||||
|
||||
@@ -72,6 +72,7 @@
|
||||
var mChatRefreshYes = '{MCHAT_REFRESH_YES}';
|
||||
var mChatRefreshNo = '{LA_MCHAT_REFRESH_NO}';
|
||||
var mChatMssgLngthLong = '{MCHAT_MESS_LONG}';
|
||||
var mChatLikes = '{LA_MCHAT_LIKES}';
|
||||
<!-- IF MCHAT_MESSAGE_LNGTH -->
|
||||
var mChatMssgLngth = '{MCHAT_MESSAGE_LNGTH}';
|
||||
<!-- ELSE -->
|
||||
@@ -133,7 +134,7 @@
|
||||
username = username.replace(/./g, '.');
|
||||
username = username.replace(/&/g, '&');
|
||||
username = username.replace(/"/g, '"');
|
||||
document.getElementById('mChatMessage').value += 'Like\'s this post.[quote="' + username + '"]' + ' ' + quote + '[/quote]';
|
||||
document.getElementById('mChatMessage').value += '' + mChatLikes + '[quote="' + username + '"]' + ' ' + quote + '[/quote]';
|
||||
document.getElementById('mChatMessage').focus();
|
||||
}
|
||||
// ]]>
|
||||
|
||||
BIN
styles/prosilver/theme/images/message.gif
Normal file
BIN
styles/prosilver/theme/images/message.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 576 B |
@@ -275,3 +275,9 @@ div.avatarMessage {
|
||||
filter:alpha(opacity=70);
|
||||
opacity:0.70;
|
||||
}
|
||||
|
||||
/* Change buttons height
|
||||
------------ */
|
||||
.mChatImage {
|
||||
margin-top: -4px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user