From 5f8c5d3f09db01e477f89b22f4996f6617ddd738 Mon Sep 17 00:00:00 2001
From: dmzx
Date: Sat, 26 Mar 2016 09:15:07 +0100
Subject: [PATCH] Version 2.0.0-RC3
---
README.md | 6 +-
acp/acp_mchat_info.php | 9 +-
acp/acp_mchat_module.php | 8 +-
...hat.html => acp_mchat_globalsettings.html} | 135 +++-----
adm/style/acp_mchat_globalusersettings.html | 28 ++
.../acp_mchat_globalusersettings_content.html | 102 ++++++
adm/style/event/acp_users_prefs_append.html | 51 +--
composer.json | 10 +-
config/config_2_0_0.yml | 174 ++++++++++
config/services.yml | 27 +-
config/user_config_keys.yml | 9 -
controller/acp_controller.php | 189 ++++++-----
controller/main_controller.php | 2 +-
controller/ucp_controller.php | 108 ++++--
core/functions.php | 77 +++--
core/mchat.php | 314 ++++++++++--------
core/settings.php | 159 +++++++++
event/acp_listener.php | 195 ++++++-----
event/main_listener.php | 23 +-
ext.php | 27 ++
language/en/common.php | 9 +-
language/en/info_acp_mchat.php | 6 +-
language/en/mchat.php | 11 +-
language/en/mchat_acp.php | 74 ++---
language/en/mchat_ucp.php | 33 +-
language/en/permissions_mchat.php | 17 +-
...{install_mchat.php => mchat_2_0_0_rc3.php} | 163 +++++----
.../event/index_body_block_online_append.html | 4 -
.../index_body_forumlist_body_after.html | 1 -
.../event/index_body_markforums_before.html | 1 -
.../overall_footer_copyright_append.html | 9 -
.../overall_header_navigation_append.html | 3 -
styles/all/template/javascript/mchat.js | 125 ++++---
styles/all/template/mchat_body.html | 224 -------------
styles/all/template/mchat_header.html | 4 -
styles/all/template/mchat_messages.html | 27 --
styles/all/template/mchat_navlink.html | 1 -
styles/all/template/ucp_mchat.html | 77 -----
styles/all/theme/images/ban.gif | Bin 3176 -> 0 bytes
styles/all/theme/images/bg_button.gif | Bin 182 -> 0 bytes
styles/all/theme/images/del.gif | Bin 928 -> 0 bytes
styles/all/theme/images/edit.gif | Bin 404 -> 0 bytes
styles/all/theme/images/ip.gif | Bin 941 -> 0 bytes
styles/all/theme/images/like.png | Bin 784 -> 0 bytes
styles/all/theme/images/message.gif | Bin 576 -> 0 bytes
styles/all/theme/images/quota.png | Bin 306 -> 0 bytes
styles/black/theme/images/message_icons.png | Bin 0 -> 1939 bytes
styles/black/theme/mchat_custom.css | 60 ++--
styles/elegance/theme/mchat_custom.css | 60 ++--
styles/latte/theme/mchat_custom.css | 60 ++--
.../event/overall_header_head_append.html | 0
styles/metro_blue/template/mchat_navlink.html | 1 +
.../theme/images/tab-icon-mchat.svg | 1 +
.../theme/mchat_custom.css | 4 +-
styles/pbtech/template/mchat_header.html | 2 +-
styles/pbtech/theme/mchat_custom.css | 6 +-
styles/pbwow3/template/mchat_header.html | 2 +-
styles/pbwow3/theme/images/message_icons.png | Bin 0 -> 1939 bytes
styles/pbwow3/theme/mchat_custom.css | 8 +-
.../event/index_body_block_online_append.html | 7 +
.../index_body_forumlist_body_after.html | 1 +
.../event/index_body_markforums_before.html | 1 +
.../overall_footer_copyright_append.html | 3 +
.../event/overall_header_head_append.html | 0
.../overall_header_navigation_append.html | 3 +
styles/prosilver/template/mchat_body.html | 107 ++++++
styles/prosilver/template/mchat_header.html | 4 +
styles/prosilver/template/mchat_messages.html | 16 +
.../template/mchat_messages_icons.html | 20 ++
styles/prosilver/template/mchat_navlink.html | 5 +
styles/prosilver/template/mchat_panel.html | 74 +++++
.../template/mchat_rules.html | 0
.../prosilver/template/mchat_script_data.html | 53 +++
.../template/mchat_whois.html | 0
styles/prosilver/template/ucp_mchat.html | 161 +++++++++
.../{all => prosilver}/theme/images/error.gif | Bin
.../theme/images/icon_mchat.png | Bin
.../{all => prosilver}/theme/images/load.gif | Bin
.../prosilver/theme/images/message_icons.png | Bin 0 -> 1927 bytes
styles/{all => prosilver}/theme/images/ok.gif | Bin
.../theme/images/paused.gif | Bin
styles/{all => prosilver}/theme/mchat.css | 183 +++++++---
styles/simplicity/theme/mchat_custom.css | 60 ++--
ucp/ucp_mchat_module.php | 2 +-
84 files changed, 2046 insertions(+), 1300 deletions(-)
rename adm/style/{acp_mchat.html => acp_mchat_globalsettings.html} (50%)
create mode 100644 adm/style/acp_mchat_globalusersettings.html
create mode 100644 adm/style/acp_mchat_globalusersettings_content.html
create mode 100644 config/config_2_0_0.yml
delete mode 100644 config/user_config_keys.yml
create mode 100644 core/settings.php
create mode 100644 ext.php
rename migrations/{install_mchat.php => mchat_2_0_0_rc3.php} (52%)
delete mode 100644 styles/all/template/event/index_body_block_online_append.html
delete mode 100644 styles/all/template/event/index_body_forumlist_body_after.html
delete mode 100644 styles/all/template/event/index_body_markforums_before.html
delete mode 100644 styles/all/template/event/overall_footer_copyright_append.html
delete mode 100644 styles/all/template/event/overall_header_navigation_append.html
delete mode 100644 styles/all/template/mchat_body.html
delete mode 100644 styles/all/template/mchat_header.html
delete mode 100644 styles/all/template/mchat_messages.html
delete mode 100644 styles/all/template/mchat_navlink.html
delete mode 100644 styles/all/template/ucp_mchat.html
delete mode 100644 styles/all/theme/images/ban.gif
delete mode 100644 styles/all/theme/images/bg_button.gif
delete mode 100644 styles/all/theme/images/del.gif
delete mode 100644 styles/all/theme/images/edit.gif
delete mode 100644 styles/all/theme/images/ip.gif
delete mode 100644 styles/all/theme/images/like.png
delete mode 100644 styles/all/theme/images/message.gif
delete mode 100644 styles/all/theme/images/quota.png
create mode 100644 styles/black/theme/images/message_icons.png
rename styles/{we_universal => metro_blue}/template/event/overall_header_head_append.html (100%)
create mode 100644 styles/metro_blue/template/mchat_navlink.html
create mode 100644 styles/metro_blue/theme/images/tab-icon-mchat.svg
rename styles/{we_universal => metro_blue}/theme/mchat_custom.css (64%)
create mode 100644 styles/pbwow3/theme/images/message_icons.png
create mode 100644 styles/prosilver/template/event/index_body_block_online_append.html
create mode 100644 styles/prosilver/template/event/index_body_forumlist_body_after.html
create mode 100644 styles/prosilver/template/event/index_body_markforums_before.html
create mode 100644 styles/prosilver/template/event/overall_footer_copyright_append.html
rename styles/{all => prosilver}/template/event/overall_header_head_append.html (100%)
create mode 100644 styles/prosilver/template/event/overall_header_navigation_append.html
create mode 100644 styles/prosilver/template/mchat_body.html
create mode 100644 styles/prosilver/template/mchat_header.html
create mode 100644 styles/prosilver/template/mchat_messages.html
create mode 100644 styles/prosilver/template/mchat_messages_icons.html
create mode 100644 styles/prosilver/template/mchat_navlink.html
create mode 100644 styles/prosilver/template/mchat_panel.html
rename styles/{all => prosilver}/template/mchat_rules.html (100%)
create mode 100644 styles/prosilver/template/mchat_script_data.html
rename styles/{all => prosilver}/template/mchat_whois.html (100%)
create mode 100644 styles/prosilver/template/ucp_mchat.html
rename styles/{all => prosilver}/theme/images/error.gif (100%)
rename styles/{all => prosilver}/theme/images/icon_mchat.png (100%)
rename styles/{all => prosilver}/theme/images/load.gif (100%)
create mode 100644 styles/prosilver/theme/images/message_icons.png
rename styles/{all => prosilver}/theme/images/ok.gif (100%)
rename styles/{all => prosilver}/theme/images/paused.gif (100%)
rename styles/{all => prosilver}/theme/mchat.css (50%)
diff --git a/README.md b/README.md
index 79d6457..52d794d 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# mChat Extension for phpBB 3.1
+# mChat Extension
[](https://travis-ci.org/dmzx/mChat-Extension)
@@ -9,12 +9,12 @@
3. In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
4. Copy the `mchat` folder to `/ext/dmzx/` (if done correctly, you'll have the main extension class at (your forum root)/ext/dmzx/mchat/composer.json).
5. Navigate in the ACP to `Customise -> Manage extensions`.
-6. Look for `mChat Extension for phpBB 3.1` under the Disabled Extensions list, and click its `Enable` link.
+6. Look for `mChat Extension` under the Disabled Extensions list, and click its `Enable` link.
## Uninstall
1. Navigate in the ACP to `Customise -> Extension Management -> Extensions`.
-2. Look for `mChat Extension for phpBB 3.1` under the Enabled Extensions list, and click its `Disable` link.
+2. Look for `mChat Extension` under the Enabled Extensions list, and click its `Disable` link.
3. To permanently uninstall, click `Delete Data` and then delete the `/ext/dmzx/mchat` folder.
## License
diff --git a/acp/acp_mchat_info.php b/acp/acp_mchat_info.php
index f18ee57..2777549 100644
--- a/acp/acp_mchat_info.php
+++ b/acp/acp_mchat_info.php
@@ -19,8 +19,13 @@ class acp_mchat_info
'filename' => '\dmzx\mchat\acp\acp_mchat_module',
'title' => 'ACP_CAT_MCHAT',
'modes' => array(
- 'configuration' => array(
- 'title' => 'ACP_MCHAT_CONFIG',
+ 'globalsettings' => array(
+ 'title' => 'ACP_MCHAT_GLOBALSETTINGS',
+ 'auth' => 'ext_dmzx/mchat && acl_a_mchat',
+ 'cat' => array('ACP_CAT_MCHAT'),
+ ),
+ 'globalusersettings' => array(
+ 'title' => 'ACP_MCHAT_GLOBALUSERSETTINGS',
'auth' => 'ext_dmzx/mchat && acl_a_mchat',
'cat' => array('ACP_CAT_MCHAT'),
),
diff --git a/acp/acp_mchat_module.php b/acp/acp_mchat_module.php
index 243c9d2..7d062eb 100644
--- a/acp/acp_mchat_module.php
+++ b/acp/acp_mchat_module.php
@@ -20,14 +20,14 @@ class acp_mchat_module
global $phpbb_container, $user;
// Add the ACP lang file
- $user->add_lang_ext('dmzx/mchat', 'mchat_acp');
+ $user->add_lang_ext('dmzx/mchat', array('mchat_acp', 'mchat_ucp'));
// Set template
- $this->tpl_name = 'acp_mchat';
- $this->page_title = 'MCHAT_ACP_TITLE';
+ $this->tpl_name = 'acp_mchat_' . strtolower($mode);
+ $this->page_title = 'MCHAT_ACP_' . strtoupper($mode) . '_TITLE';
// Get an instance of the ACP controller and display the options
$controller = $phpbb_container->get('dmzx.mchat.acp.controller');
- $controller->display_options($this->u_action);
+ $controller->$mode($this->u_action);
}
}
diff --git a/adm/style/acp_mchat.html b/adm/style/acp_mchat_globalsettings.html
similarity index 50%
rename from adm/style/acp_mchat.html
rename to adm/style/acp_mchat_globalsettings.html
index 3c875b8..6ba3c16 100644
--- a/adm/style/acp_mchat.html
+++ b/adm/style/acp_mchat_globalsettings.html
@@ -4,6 +4,13 @@
{L_MCHAT_VERSION}{L_COLON} {MCHAT_VERSION}
+
+
+
{L_WARNING}
+
{MCHAT_ERROR}
+
+
+
+
+
+
+
{MCHAT_USERS_COUNT} {MCHAT_ONLINE_EXPLAIN}
{MCHAT_USERS_LIST}
+
diff --git a/styles/prosilver/template/event/index_body_forumlist_body_after.html b/styles/prosilver/template/event/index_body_forumlist_body_after.html
new file mode 100644
index 0000000..6ce9680
--- /dev/null
+++ b/styles/prosilver/template/event/index_body_forumlist_body_after.html
@@ -0,0 +1 @@
+
diff --git a/styles/prosilver/template/event/index_body_markforums_before.html b/styles/prosilver/template/event/index_body_markforums_before.html
new file mode 100644
index 0000000..1d1501c
--- /dev/null
+++ b/styles/prosilver/template/event/index_body_markforums_before.html
@@ -0,0 +1 @@
+
diff --git a/styles/prosilver/template/event/overall_footer_copyright_append.html b/styles/prosilver/template/event/overall_footer_copyright_append.html
new file mode 100644
index 0000000..878e6ca
--- /dev/null
+++ b/styles/prosilver/template/event/overall_footer_copyright_append.html
@@ -0,0 +1,3 @@
+
+
{MCHAT_DISPLAY_NAME} © {L_POST_BY_AUTHOR} {MCHAT_AUTHOR_HOMEPAGES}
+
diff --git a/styles/all/template/event/overall_header_head_append.html b/styles/prosilver/template/event/overall_header_head_append.html
similarity index 100%
rename from styles/all/template/event/overall_header_head_append.html
rename to styles/prosilver/template/event/overall_header_head_append.html
diff --git a/styles/prosilver/template/event/overall_header_navigation_append.html b/styles/prosilver/template/event/overall_header_navigation_append.html
new file mode 100644
index 0000000..924f28d
--- /dev/null
+++ b/styles/prosilver/template/event/overall_header_navigation_append.html
@@ -0,0 +1,3 @@
+
+
+
diff --git a/styles/prosilver/template/mchat_body.html b/styles/prosilver/template/mchat_body.html
new file mode 100644
index 0000000..02680b5
--- /dev/null
+++ b/styles/prosilver/template/mchat_body.html
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{L_CONFIRM}
+
+
+
+
+
+
+
+
+
+
+
style="height:{MCHAT_CUSTOM_HEIGHT}{MCHAT_INDEX_HEIGHT}px">
+
+
+
+ - {L_MCHAT_NOMESSAGE}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{L_MCHAT_WHO_IS_CHATTING}
+
+
+ {MCHAT_WHOIS_REFRESH_EXPLAIN}
+ {L_MCHAT_REFRESHING}
+
+
+
+
+
+ {L_LEGEND}{L_COLON} {LEGEND}
+
+
+
+
+
+
diff --git a/styles/prosilver/template/mchat_header.html b/styles/prosilver/template/mchat_header.html
new file mode 100644
index 0000000..68c4d52
--- /dev/null
+++ b/styles/prosilver/template/mchat_header.html
@@ -0,0 +1,4 @@
+
+ - {L_MCHAT_ARCHIVE_PAGE}{L_MCHAT_TITLE}{L_MCHAT_TITLE}
+ -
+
diff --git a/styles/prosilver/template/mchat_messages.html b/styles/prosilver/template/mchat_messages.html
new file mode 100644
index 0000000..c0e346f
--- /dev/null
+++ b/styles/prosilver/template/mchat_messages.html
@@ -0,0 +1,16 @@
+
+
data-mchat-usercolor="{mchatrow.MCHAT_USERNAME_COLOR}" data-mchat-message="{mchatrow.MCHAT_MESSAGE_EDIT}" data-mchat-message-time="{mchatrow.MCHAT_MESSAGE_TIME}" data-mchat-edit-time="{mchatrow.MCHAT_EDIT_TIME}" data-mchat-edit-delete-limit="1">
+
+
+
+
+
+
+
{mchatrow.MCHAT_MESSAGE}
+
+
+
diff --git a/styles/prosilver/template/mchat_messages_icons.html b/styles/prosilver/template/mchat_messages_icons.html
new file mode 100644
index 0000000..3e2db71
--- /dev/null
+++ b/styles/prosilver/template/mchat_messages_icons.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/styles/prosilver/template/mchat_navlink.html b/styles/prosilver/template/mchat_navlink.html
new file mode 100644
index 0000000..462589b
--- /dev/null
+++ b/styles/prosilver/template/mchat_navlink.html
@@ -0,0 +1,5 @@
+
class="small-icon icon-mchat"data-last-responsive="true">
+
+ class="icon fa fa-weixin" aria-hidden="true">{L_MCHAT_TITLE}
+
+
diff --git a/styles/prosilver/template/mchat_panel.html b/styles/prosilver/template/mchat_panel.html
new file mode 100644
index 0000000..109c587
--- /dev/null
+++ b/styles/prosilver/template/mchat_panel.html
@@ -0,0 +1,74 @@
+
diff --git a/styles/all/template/mchat_rules.html b/styles/prosilver/template/mchat_rules.html
similarity index 100%
rename from styles/all/template/mchat_rules.html
rename to styles/prosilver/template/mchat_rules.html
diff --git a/styles/prosilver/template/mchat_script_data.html b/styles/prosilver/template/mchat_script_data.html
new file mode 100644
index 0000000..90968ad
--- /dev/null
+++ b/styles/prosilver/template/mchat_script_data.html
@@ -0,0 +1,53 @@
+
diff --git a/styles/all/template/mchat_whois.html b/styles/prosilver/template/mchat_whois.html
similarity index 100%
rename from styles/all/template/mchat_whois.html
rename to styles/prosilver/template/mchat_whois.html
diff --git a/styles/prosilver/template/ucp_mchat.html b/styles/prosilver/template/ucp_mchat.html
new file mode 100644
index 0000000..59642ab
--- /dev/null
+++ b/styles/prosilver/template/ucp_mchat.html
@@ -0,0 +1,161 @@
+
+
+
{L_MCHAT_PREFERENCES}
+
+
+
+
diff --git a/styles/all/theme/images/error.gif b/styles/prosilver/theme/images/error.gif
similarity index 100%
rename from styles/all/theme/images/error.gif
rename to styles/prosilver/theme/images/error.gif
diff --git a/styles/all/theme/images/icon_mchat.png b/styles/prosilver/theme/images/icon_mchat.png
similarity index 100%
rename from styles/all/theme/images/icon_mchat.png
rename to styles/prosilver/theme/images/icon_mchat.png
diff --git a/styles/all/theme/images/load.gif b/styles/prosilver/theme/images/load.gif
similarity index 100%
rename from styles/all/theme/images/load.gif
rename to styles/prosilver/theme/images/load.gif
diff --git a/styles/prosilver/theme/images/message_icons.png b/styles/prosilver/theme/images/message_icons.png
new file mode 100644
index 0000000000000000000000000000000000000000..49ae37772a93fb46405e0484e2873cbc4aaaee2a
GIT binary patch
literal 1927
zcmV;22YC32P)
000yS1^@s63Y0cZ000M0NklrN#2`3GjGbdW$yeEDoRm0QA#>{
z07Y55B}BmO7^g8#Vr#rnJnDB_QlUHRrRP9fRgD|GF$NEgQ6j4h}@madFtjExw7=3EyD
z_Ii{)KSHv<9VYIEV=<*34Eo
z4q`k`;!f&Ftm2A{112iC-Lxb`yjX;S$
z*D&j$q8x=c7n0iEBN+VDw|uYJF&R+RcRw(1qWggm}9#ZX=23nka6qChM9%8L5YU
zuVM_(Ft#C#*^DWSv$gCdlDHDTy&Y)}MV+T>yHwjfPr?;=D-d!W#z4k(jJ>p73k9|}
z1u+%~_aftd5<(88mgK+$u~C)!(e7G*V1|h&Sw8!{B+%|e#`TOnNfaa`eMw@k^BDIg
z^gCM@8u4sWYzc*1q|e={5PPK+#EY<=Ah2;icQQ`4>ckEaHUY68-;o#xxM#$DhzSvs
z!XRWJAjt6pNt{1b#{s#8#G)Rztj#u_1(97AHnpsX*DaOr)932H
z6eu6YILn!+Ax10?43W$g88IiNwA8+9*wF(yzU_UrAeQHxFah_Sye{OgoV2;>2As<~O;VL?_<+yb_ie5MbZ
z=xB2ZiBgyaM1JyV#x>TrVgz&rZeuvLB%muG#?RwrE*7+_nF&-9bDsc>^fArOA*YAS@(OAiV;0
z+M0lfOP5eKLCWoq6!qY7rYDpmjM>T8$leshd=HSY8L=N2i+~w
zC*OS%+Kf%H&RAb$Okkvt&Vq}FXM(cUhZ@;}#z+(3gouFD!~-y;=ab~cs!3v-he*;d
zzD2gL*YX@XTtR$>w94{~?R<&o_97r$5jHVKz;j6g_{Rcu3;}0QA)Y;)B&~zIB4RC^
zWMKqi1jK=1K|*;A6-bA$Vvwh8UCQ-_a=<_#mpmy}*(HI=|Bco~_7Mmv0UYB)$8`68
zH|>?1Pc9^h?efS)jB69d=abeD5Fr5qak%l2yF*>vGKFq->@S#hE{~w?nK|1ACA671Y`}8ZS8)jNVTGWPY0@rPzSq&R4avVtY!V{0ID-l|JJ4h(
zVY#ygxXDQKuMwPZ4 li {
+ padding: 0 8px !important;
}
+
}
-.mchat-avatar a {
- unicode-bidi: normal;
-}
-
-.mchat-avatar img {
+.mchat-avatar a, .mchat-avatar img {
display: block;
}
+.mchat-message .mchat-buttons li {
+ opacity: .3;
+}
+
+.mchat-message:hover .mchat-buttons li {
+ opacity: .6;
+}
+
+.mchat-message .mchat-buttons li:hover {
+ opacity: 1;
+}
+
+.mchat-buttons {
+ float: right;
+ list-style: none;
+ margin-top: 1px;
+}
+
+.mchat-message-wrapper .mchat-buttons > li {
+ float: left;
+ margin: 0 3px;
+}
+
+.mchat-button {
+ margin-left: 3px;
+}
+
+.mchat-button.fa {
+ font-size: 12pt;
+}
+
+.mchat-button span {
+ display: block;
+ height: 0;
+ overflow: hidden;
+ position: absolute;
+ width: 1px;
+}
+
+.mchat-icon:before {
+ content: '';
+ background-image: url("./images/message_icons.png");
+ background-repeat: no-repeat;
+ width: 16px;
+ height: 16px;
+ display: block;
+ float: right;
+}
+
+.mchat-icon-mention:before { background-position: -2px -2px; }
+.mchat-icon-edit:before { background-position: -22px -2px; }
+.mchat-icon-pm:before { background-position: -42px -2px; }
+.mchat-icon-quote:before { background-position: -62px -2px; }
+.mchat-icon-like:before { background-position: -82px -2px; }
+.mchat-icon-delete:before { background-position: -102px -2px; }
+.mchat-icon-permissions:before { background-position: -122px -2px; }
+.mchat-icon-ip:before { background-position: -142px -2px; }
+
.mchat-text {
clear: both;
+ overflow: hidden;
padding: 0 5px 2px;
- font-size: 1.1em;
+ font-size: 1.2em;
}
.mchat-text li {
@@ -104,6 +161,7 @@
}
.mchat-text blockquote, .mchat-text .codebox, .mchat-text ul, .mchat-text ol {
+ margin-top: 5px;
margin-left: 1em;
}
@@ -111,21 +169,29 @@
color: inherit !important;
}
-.mchat-mention, .mchat-message-icons > * {
+.mchat-mention {
cursor: pointer;
+ width: 16px;
+ height: 16px;
}
#mchat-no-message {
font-size: 1.2em;
}
+#mchat-character-count {
+ float: right;
+ visibility: hidden;
+ padding: 5px 0 0;
+}
+
#mchat-panel {
text-align: center;
max-height: initial;
+ overflow-y: auto;
padding: 0 5px 5px 5px;
margin: 0;
- border-top-left-radius: 0;
- border-top-right-radius: 0;
+ border-radius: 0;
}
#mchat-form {
@@ -136,7 +202,7 @@
cursor: text;
width: 50%;
font-size: 1.1em;
- padding: 5px;
+ padding: 5px 5px 4px;
margin: 5px 20px;
}
@@ -150,11 +216,7 @@
}
#mchat-bbcodes #format-buttons {
- margin: 0;
-}
-
-#mchat-bbcodes #format-buttons input, #mchat-bbcodes #format-buttons select {
- margin-bottom: 5px;
+ margin: 0 0 5px;
}
#mchat-bbcodes #colour_palette label {
@@ -169,32 +231,73 @@
padding: 0;
}
-#mchat-refresh-ok, #mchat-refresh-load, #mchat-refresh-error, #mchat-refresh-paused {
- vertical-align: middle;
+#mchat-status-icons {
+ position: relative;
+ display: inline-block;
+ vertical-align: text-top;
}
-#mchat-refresh-ok, #mchat-refresh-load, #mchat-refresh-error {
+#mchat-status-icons i {
+ top: 0;
+ left: 0;
+ width: 16px;
+ height: 16px;
+ float: left;
+}
+
+#mchat-status-icons i.fa {
+ font-size: 12pt;
+}
+
+#mchat-status-error {
display: none;
+ cursor: help;
}
-#mchat-refresh-load {
+.mchat-status-error {
+ background-image: url("./images/error.gif");
+}
+
+#mchat-status-ok {
+ display: none;
+ cursor: help;
+}
+
+.mchat-status-ok {
+ background-image: url("./images/ok.gif");
+}
+
+#mchat-status-load {
+ display: none;
cursor: wait;
}
-#mchat-refresh-ok, #mchat-refresh-error, #mchat-refresh-paused {
+.mchat-status-load {
+ background-image: url("./images/load.gif");
+}
+
+#mchat-status-paused {
cursor: help;
}
+.mchat-status-paused {
+ background-image: url("./images/paused.gif");
+}
+
#mchat-legend {
clear: both;
}
.mchat-static, #mchat-stats, #mchat-whois, #mchat-refresh, #mchat-legend {
- padding: 5px 0;
+ padding: 5px 0 0;
text-align: left;
font-size: 1.1em;
}
+#mchat-panel > #mchat-whois {
+ float: left;
+}
+
.mchat-copyright {
position: relative;
top: 1px;
@@ -203,22 +306,6 @@
cursor: help;
}
-#mchat-copyright-footer {
- display: inline;
-}
-
-#mchat-copyright-footer li {
- display: inline;
-}
-
-#mchat-copyright-footer li:first-child:before{
- content: "";
-}
-
-#mchat-copyright-footer li:before{
- content: "• ";
-}
-
.mchat-static {
padding: 5px 5px 7px !important;
}
@@ -229,11 +316,11 @@
/* Compatibility with Advanced BBCode Box extension */
-#abbc3_buttons {
+#mchat-panel #abbc3_buttons {
margin: 0 !important;
padding-bottom: 5px;
}
-#abbc3_buttons .abbc3_buttons_row {
+#mchat-panel #abbc3_buttons .abbc3_buttons_row {
margin: 0 auto !important;
}
diff --git a/styles/simplicity/theme/mchat_custom.css b/styles/simplicity/theme/mchat_custom.css
index d222458..f4f5c3b 100644
--- a/styles/simplicity/theme/mchat_custom.css
+++ b/styles/simplicity/theme/mchat_custom.css
@@ -8,32 +8,32 @@
*/
.icon-mchat {
- position: relative;
+ position: relative;
}
.icon-mchat:after {
- content: '\f086';
- font-family: 'FontAwesome';
- width: 18px;
- text-align: center;
- position: absolute;
- top: 50%;
- left: 0;
- height: 14px;
- margin-top: -7px;
- font-size: 12px;
- line-height: 14px;
- vertical-align: baseline;
- font-weight: normal;
- font-style: normal;
- text-transform: none;
- text-indent: 0;
- pointer-events: none;
+ content: '\f086';
+ font-family: 'FontAwesome';
+ width: 18px;
+ text-align: center;
+ position: absolute;
+ top: 50%;
+ left: 0;
+ height: 14px;
+ margin-top: -7px;
+ font-size: 12px;
+ line-height: 14px;
+ vertical-align: baseline;
+ font-weight: normal;
+ font-style: normal;
+ text-transform: none;
+ text-indent: 0;
+ pointer-events: none;
}
.navbar .nav-tabs .mchat .nav-link {
position: relative;
- text-indent: 999px;
+ text-indent: 999px;
width: 15px;
padding: 0 8px;
overflow: hidden;
@@ -41,7 +41,7 @@
.navbar .nav-tabs .mchat .nav-link:after {
content: '\f086';
- font-family: 'FontAwesome';
+ font-family: 'FontAwesome';
position: absolute;
top: 50%;
margin-top: -7.5px;
@@ -51,31 +51,17 @@
font-weight: normal;
font-style: normal;
text-indent: 0;
- text-align: center;
+ text-align: center;
font-size: 15px;
left:8px
}
.rtl .navbar .nav-tabs .mchat .nav-link {
- padding-left: 12px;
+ padding-left: 12px;
padding-right: 30px;
}
.rtl .navbar .nav-tabs .mchat .nav-link:after {
- left: auto;
+ left: auto;
right: 8px;
}
-
-li.mchat-message {
- padding: 5px !important;
-}
-
-li.mchat-message:first-child {
- border-top-width: 1px !important;
- padding-top: 5px !important;
-}
-
-li.mchat-message:last-child {
- border-bottom-width: 1px !important;
- padding-bottom: 5px !important;
-}
diff --git a/ucp/ucp_mchat_module.php b/ucp/ucp_mchat_module.php
index a8b15f4..f6a1bb1 100644
--- a/ucp/ucp_mchat_module.php
+++ b/ucp/ucp_mchat_module.php
@@ -28,6 +28,6 @@ class ucp_mchat_module
// Get an instance of the UCP controller and display the options
$controller = $phpbb_container->get('dmzx.mchat.ucp.controller');
- $controller->display_options($this->u_action);
+ $controller->$mode($this->u_action);
}
}