[CDB] mChat

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
Locked
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3789
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [RC] mChat

Post by kasimi » Mon Feb 15, 2016 9:54 pm

Thanks David, good to know. It will be adjusted in RC2.

User avatar
Darva
Registered User
Posts: 58
Joined: Tue Jan 01, 2013 8:10 pm

Re: [RC] mChat

Post by Darva » Tue Feb 16, 2016 1:49 am

This is the most awesome extension EVER!
Thank you guys for all the hard work!

sanjayrup
Registered User
Posts: 1
Joined: Tue Feb 16, 2016 10:21 am

Re: [RC] mChat

Post by sanjayrup » Tue Feb 16, 2016 10:26 am

To fix avatar relative path, without editing htaccess with 301:

Open ext/dmzx/mchat/core/mchat.php

ligne 596 we have

Code: Select all

$user_avatars[$row['user_id']] = !$display_avatar ? '' : phpbb_get_user_avatar(array(
	'avatar'		=> $row['user_avatar'],
	'avatar_type'	=> $row['user_avatar_type'],
	'avatar_width'	=> $row['user_avatar_width'] >= $row['user_avatar_height'] ? 40 : 0,
	'avatar_height'	=> $row['user_avatar_width'] >= $row['user_avatar_height'] ? 0 : 40,
));
Add just after

Code: Select all

            
$user_avatars[$row['user_id']] = str_replace("../","", $user_avatars[$row['user_id']]);
If need, i have french language for 1.0.0 RC1

Jeleus
Registered User
Posts: 56
Joined: Wed May 07, 2014 5:48 pm

Re: [RC] mChat

Post by Jeleus » Tue Feb 16, 2016 5:49 pm

Hello, it doesn't let me to write anything in the chatbox.
Link to forum: http://metin2av.ro/forum/

User avatar
Talonos
Registered User
Posts: 51
Joined: Tue Jul 08, 2008 2:43 pm

Re: [RC] mChat

Post by Talonos » Tue Feb 16, 2016 6:08 pm

Jeleus wrote:Hello, it doesn't let me to write anything in the chatbox.
Link to forum: http://metin2av.ro/forum/
"NetworkError: 404 Not Found - http://metin2av.ro/forum/app.php/mchat-refresh

for some reason i just recieved a 500 error trying to goto http://metin2av.ro/forum/app.php

that must be where the error orignates from and not mChat itself.
Last edited by Talonos on Tue Feb 16, 2016 6:10 pm, edited 1 time in total.
Creating a world of warcraft website? check the sites out below for board3 compatable mods
Talonos: Pretereo Guild on stormrage EU

Jeleus
Registered User
Posts: 56
Joined: Wed May 07, 2014 5:48 pm

Re: [RC] mChat

Post by Jeleus » Tue Feb 16, 2016 6:10 pm

Talonos wrote:
Jeleus wrote:Hello, it doesn't let me to write anything in the chatbox.
Link to forum: http://metin2av.ro/forum/
"NetworkError: 404 Not Found - http://metin2av.ro/forum/app.php/mchat-refresh
Hi. Image

User avatar
Talonos
Registered User
Posts: 51
Joined: Tue Jul 08, 2008 2:43 pm

Re: [RC] mChat

Post by Talonos » Tue Feb 16, 2016 6:10 pm

check my edited post above.
Creating a world of warcraft website? check the sites out below for board3 compatable mods
Talonos: Pretereo Guild on stormrage EU

Jeleus
Registered User
Posts: 56
Joined: Wed May 07, 2014 5:48 pm

Re: [RC] mChat

Post by Jeleus » Tue Feb 16, 2016 6:13 pm

Talonos wrote:check my edited post above.
Well, that was because of Enable URL Rewriting. It wasn't enabled. I enabled it and now it works.

Jeleus
Registered User
Posts: 56
Joined: Wed May 07, 2014 5:48 pm

Re: [RC] mChat

Post by Jeleus » Wed Feb 17, 2016 5:29 am

Hi. I also want to know how to move "MINI-CHAT" text on the middle: Image . Thanks.

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3789
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [RC] mChat

Post by kasimi » Wed Feb 17, 2016 4:46 pm

Add this to your CSS:

Code: Select all

#mChat + div.forabg dt {
	text-align: center;
}

chfs
Registered User
Posts: 231
Joined: Mon Feb 04, 2013 10:01 am

Re: [RC] mChat

Post by chfs » Wed Feb 17, 2016 6:14 pm

Hi
He could be like as facebook private friends chat
Image

Thaaaaanks!!! 8-)
I'm sorry for my english. :?

sgtevmckay
Registered User
Posts: 200
Joined: Tue Apr 27, 2010 4:32 am
Contact:

Re: [RC] mChat

Post by sgtevmckay » Wed Feb 17, 2016 6:14 pm

I am noticing that this the mChat style seems to be fixed to variants of white and Blue, this is not an appropriate match for my styles overall schema

How can I go about changing , background, Panel Background, Text input area, text, etc. colors to match my overall style.

Is this something that is screwed up in my chosen style, or do I need to modify code in the Extension CSS

???

Be gentle, very small home server.
Last edited by sgtevmckay on Wed Feb 17, 2016 6:58 pm, edited 1 time in total.

User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 3789
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [RC] mChat

Post by kasimi » Wed Feb 17, 2016 6:31 pm

chfs wrote:facebook private friends chat
mChat does not and most likely will not offer private chats.
sgtevmckay wrote:he mChat style seems to be fixed to variants of white and Blue
It's not your style's fault, the colours are hard coded. If you do adjust them in /ext/dmzx/mchat/styles/prosilver/theme/mchat.css, please post your adjustments here or in a new issue/PR at Github so that they can be included in the next release. :)

sgtevmckay
Registered User
Posts: 200
Joined: Tue Apr 27, 2010 4:32 am
Contact:

Re: [RC] mChat

Post by sgtevmckay » Wed Feb 17, 2016 6:48 pm

kasimi wrote:
sgtevmckay wrote:the mChat style seems to be fixed to variants of white and Blue
It's not your style's fault, the colours are hard coded. If you do adjust them in /ext/dmzx/mchat/styles/prosilver/theme/mchat.css, please post your adjustments here or in a new issue/PR at Github so that they can be included in the next release. :)
I will do as suggested, once the work is completed.

Is it possible then in a future build of mChat to than add in ACP area where the Hex colors can be user input in the mChat Extension Options.

I can Modify eh CSS, but for many (myself included) it would be a lot easier to use a color picker, and enter in the appropriate Hex code in the ACP, over modifying the CSS.
Especially when next time mChat has an Update, I will need to go in and remake all my changes to the .css if there has been any changes to it, where as hex code input by user to the ACP can then be cached, regardless of changes to mChat extension overall :D

Additions to extension settings to acount for color may need to be considered for all extensions, especially as we are just now starting to see styles that are way outside of the Prosilver Blues and whites.
The ability to adjust extension color styles and fonts and the like, would be of great use to the end user, in order to have the extension match their styles color schema.
I am sure this si ia huge undertaking by the generous extensions writers who usually get little support and cheers for their great works, but it would be greatly appreciated.

Jeleus
Registered User
Posts: 56
Joined: Wed May 07, 2014 5:48 pm

Re: [RC] mChat

Post by Jeleus » Wed Feb 17, 2016 7:04 pm

kasimi wrote:Add this to your CSS:

Code: Select all

#mChat + div.forabg dt {
	text-align: center;
}
You mean in /ext/dmzx/mchat/styles/prosilver/theme/mchat.css?
If so where exactly ?
This is mchat.css file

Code: Select all

/**
 *
 * @package phpBB Extension - mChat
 * @copyright (c) 2015 dmzx - http://www.dmzx-web.net
 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
 *
 */
.mchat-message {
	background-color: #FBFBFB;
	padding: 5px 5px 5px 5px;
	border-bottom: 1px dotted #DDDDDD;
	overflow: hidden;
}

.mchat-message:hover {
	background-color: #F6F4D0;
}

.mchat-bg-1 {
	color: #333333;
}

.mchat-bg-2 {
	color: #444444;
}

.mchat-row-limit {
	overflow: auto;
	width: 100%;
}

.mchat-panel {
	text-align: center;
	padding: 3px;
	clear: both;
}

#mchat-input {
	cursor: text;
	width: 50%;
	background-color: #FFFFFF;
	border: 1px solid #B4BAC0;
	color: #333333;
	font-size: 1.1em;
	padding: 5px 5px 3px 5px;
	margin: 3px 0px 3px 5px;
}

#mchat-input:hover {
	border-color: #11A3EA;
}

#mchat-body {
	width: 100% !important;
	background-color: #E9F0F5 !important;
}

#mchat-static, #mchat-stats, #mchat-whois, .mchat-refresh {
	padding-left: 5px;
	text-align: left;
	font-size: 1.1em;
}

#mchat-static {
	color: #990000;
}

#mchat-stats, #mchat-whois {
	margin-top: 2px;
	min-height: 1.3em;
	height: auto !important;
}

.mchat-refresh {
	margin-top: 1.5em;
	clear: both;
}

.mchat-text {
	padding: 3px;
	font-size: 1.1em;
	width: 98%;
}

.mchat-text ul {
	margin-left: 10px;
}

.mchat-text blockquote {
	margin: 5px 0 0 10px
}

.mchat-panel-image {
	margin-top: -4px;
	vertical-align: middle;
}

.mchat-message-header {
	float: left;
}

.mchat-message-icons {
	float: right;
}

.mchat-mention, .mchat-message-icons > * {
	cursor: pointer;
}

#mchat-smilies {
	padding: 5px;
}

#mchat-refresh-load {
	vertical-align: middle;
	cursor: wait;
	display: none;
}

#mchat-refresh-ok {
	vertical-align: middle;
	cursor: help;
}

#mchat-refresh-error, #mchat-refresh-paused {
	vertical-align: middle;
	cursor: help;
	display: none;
}

#mchat-status {
	padding: 5px;
}

.mchat-alert {
	color: #7E2217;
	padding: 10px;
}

#mchat-userlist {
	float: left;
}

.mchat-avatar {
	float: left;
    width: 40px;
	padding-right: 5px;
}

.mchat-message-avatar .mchat-text {
	margin-left: 50px;
	width: 90%;
	margin-right: 5px;
}

#mchat-confirm textarea {
	width: 100%;
	height: 100px;
}

#mchat-colour {
	margin-top: 5px;
}

#mchat-colour table {
	margin: 0 auto;
	border-collapse: separate;
	border-spacing: 1px;
}

#mchat-bbcodes {
	padding: 5px;
	display: none;
}
Thanks.

Locked

Return to “Extensions in Development”