mChat

s9e compatibility - mChat

s9e compatibility

by BioLogIn » Tue Jan 09, 2018 4:21 pm

Hello

Would anyone to be nice enough to figure out an option or a patch for mchat, so it would allow to disable parsing some or all of media handled by s9e extension?

While both mchat and s9e work wonders separately, with s9e installed each time a user makes an mchat post with a link to youtube url or twitter or something like that, this post turns into a multi-line monster that screws entire mchat view.
BioLogIn
Registered User
Posts: 167
Joined: Sun Jan 06, 2008 10:51 am
Contact:

Re: s9e compatibility

by BioLogIn » Thu Apr 12, 2018 4:35 pm

Soooo.

Previously media in the mchat box merely messed with mchat view / scroll to the last message (as described in the previous post), which irritated a bit, but was bearable.

A month or so after the Chrome version update an unpleasant bug was introduced - the media embed in mchat was kinda flickering and clipping out of the mchat box, like this: https://imgur.com/ntuCZcM.

I tried changing the embed implementation and moved from s9e/mediaembed to official phpbb/mediaembed, but that didn't help much (in an afterthought, it did had to, but...).

So the question remains - would you kindly look at the possibility of disallowing mediaembed in mchat? Thanks!
BioLogIn
Registered User
Posts: 167
Joined: Sun Jan 06, 2008 10:51 am
Contact:

Re: s9e compatibility

by vader696 » Sat Apr 21, 2018 6:21 pm

I had the same problem on my forum, so found a solution. Add at the bottom of file \ext\dmzx\mchat\styles\all\template\javascript\mchat.js

Code: Select all

$('iframe').each( function() {
    var url = $(this).attr("src")
    $(this).attr({
        "src" : url.replace('?rel=0', '')+"?wmode=transparent",
        "wmode" : "opaque"
	})
});
Then refresh cache or reload browser ctrl+f5. Works fine on up to date IE11, Firefox, Chrome
User avatar
vader696
Translator
Posts: 50
Joined: Sat Jan 21, 2017 11:38 am
Location: Krakow, Poland
Contact:

Re: s9e compatibility

by kasimi » Sun Apr 22, 2018 1:45 pm

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

Re: s9e compatibility

by BioLogIn » Sun Apr 22, 2018 4:48 pm

@vader696
Thanks!

@kasimi
Thanks for looking into this!

Just to clarify for future readers - this extension only affects posts submitted while this extension was installed. Your previous media links in mchat still will be rendered as media.
BioLogIn
Registered User
Posts: 167
Joined: Sun Jan 06, 2008 10:51 am
Contact: