[1.0.0] mChat Stop Media Embed

Disables all media embedding in mChat messages and displays a regular clickable link instead
Post Reply
User avatar
kasimi
mChat developer
Posts: 642
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

[1.0.0] mChat Stop Media Embed

#1

Post by kasimi » 22 Apr 2018, 13:43

mChat Stop Media Embed

Image Image



This mChat addon extension disables all media embedding in mChat messages done by the phpBB Media Embed PlugIn and s9e/mediaembed extensions and displays a regular clickable link instead. There are no settings: enable the extension, done.

Important: There is a small manual edit required for mChat 2.0.3 and earlier:
  • Open ext/dmzx/mchat/core/mchat.php
  • Find: (https://github.com/kasimi/mChat/blob/2. ... .php#L1555)

    Code: Select all

    generate_text_for_storage($message, $uid, $bitfield, $options, $mchat_bbcode, $mchat_magic_urls, $mchat_smilies, $mchat_img, $mchat_flash, $mchat_quote, $mchat_url);
  • Replace with:

    Code: Select all

    generate_text_for_storage($message, $uid, $bitfield, $options, $mchat_bbcode, $mchat_magic_urls, $mchat_smilies, $mchat_img, $mchat_flash, $mchat_quote, $mchat_url, 'mchat');
Requirements
  • PHP at least 5.4.7
  • phpBB at least 3.2.0
  • mChat at least 2.0.0
Download

https://github.com/kasimi/phpbb-ext-mch ... ses/latest

How to install, update and uninstall extensions: https://www.phpbb.com/extensions/installing/
Install path: ext/kasimi/mchatstopmediaembed/

terry2
Donor
Posts: 127
Joined: 22 Oct 2016, 18:22
Location: My castle

Re: [1.0.0] mChat Stop Media Embed

#2

Post by terry2 » 23 Apr 2018, 13:47

Nice it works a treat i wrote an ext to resize any media posted into mchat but i found with lots of media posted mchat slowed down so this is perfect.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest