+
+
{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 @@
+
+
+
+
+
+
+
{MCHAT_CHARACTER_COUNT}
+
+
+
+
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 0000000..49ae377
Binary files /dev/null and b/styles/prosilver/theme/images/message_icons.png differ
diff --git a/styles/all/theme/images/ok.gif b/styles/prosilver/theme/images/ok.gif
similarity index 100%
rename from styles/all/theme/images/ok.gif
rename to styles/prosilver/theme/images/ok.gif
diff --git a/styles/all/theme/images/paused.gif b/styles/prosilver/theme/images/paused.gif
similarity index 100%
rename from styles/all/theme/images/paused.gif
rename to styles/prosilver/theme/images/paused.gif
diff --git a/styles/all/theme/mchat.css b/styles/prosilver/theme/mchat.css
similarity index 50%
rename from styles/all/theme/mchat.css
rename to styles/prosilver/theme/mchat.css
index 36747e5..d1c1d03 100644
--- a/styles/all/theme/mchat.css
+++ b/styles/prosilver/theme/mchat.css
@@ -13,13 +13,17 @@
}
#mChat + .inner li.header dd {
- width: 0;
+ width: 0;
}
.icon-mchat {
background-image: url("./images/icon_mchat.png");
}
+.mchat-ucp fieldset hr:first-child, .mchat-ucp fieldset hr:last-child, .mchat-ucp fieldset hr + hr {
+ display: none;
+}
+
#mchat-body {
width: 100% !important;
}
@@ -29,7 +33,7 @@
height: 100px;
}
-.mchat-row-limit {
+#mchat-messages {
overflow: auto;
width: 100%;
}
@@ -42,12 +46,8 @@
float: left;
}
-.mchat-message-icons {
- float: right;
-}
-
.mchat-message {
- padding: 5px;
+ padding: 5px !important;
overflow: hidden;
}
@@ -58,23 +58,80 @@
}
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) {
- .mchat-avatar {
- display: none;
+
+ .mchat-buttons > 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);
}
}