Is it possible to have a button to close/open mChat?

Support area for phpBB's mChat extension
User avatar
kaptangula
Posts: 22
Joined: 17 Oct 2018, 07:47

Is it possible to have a button to close/open mChat?

#1

Post by kaptangula » 30 Jan 2019, 12:17

Is it possible to have a button to close/open mChat?

User avatar
kasimi
mChat developer
Posts: 1004
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: Is it possible to have a button to close/open mChat?

#2

Post by kasimi » 30 Jan 2019, 19:15

You can achieve this by using the Collapsible Forum Categories extension. mChat is fully compatible with it. :+1:

By the way, some styles come with a collapse forum feature built-in, for example Simplicity. mChat tries to fully integrate with these styles and is therefore collapsible too, without having to use any additional extension.

User avatar
kaptangula
Posts: 22
Joined: 17 Oct 2018, 07:47

Re: Is it possible to have a button to close/open mChat?

#3

Post by kaptangula » 30 Jan 2019, 19:49

to close the text field members of the

User avatar
kasimi
mChat developer
Posts: 1004
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: Is it possible to have a button to close/open mChat?

#4

Post by kasimi » 30 Jan 2019, 19:53

Sorry, I don't understand.

User avatar
kaptangula
Posts: 22
Joined: 17 Oct 2018, 07:47

Re: Is it possible to have a button to close/open mChat?

#5

Post by kaptangula » 30 Jan 2019, 19:56

IMG_20190130_225435.jpg
IMG_20190130_225435.jpg (8.13 KiB) Viewed 100 times
IMG_20190130_225435.jpg
IMG_20190130_225435.jpg (8.13 KiB) Viewed 100 times


Mchat Close members to box

User avatar
kasimi
mChat developer
Posts: 1004
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: Is it possible to have a button to close/open mChat?

#6

Post by kasimi » 30 Jan 2019, 20:05

It's still not clear to me what you want. You can't close members.

Wild guess: do you want a button that collapses the orange area?

mchattoggle.png
mchattoggle.png (4.9 KiB) Viewed 98 times
mchattoggle.png
mchattoggle.png (4.9 KiB) Viewed 98 times

User avatar
kaptangula
Posts: 22
Joined: 17 Oct 2018, 07:47

Re: Is it possible to have a button to close/open mChat?

#7

Post by kaptangula » 30 Jan 2019, 20:11

box closed open

User avatar
kasimi
mChat developer
Posts: 1004
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: Is it possible to have a button to close/open mChat?

#8

Post by kasimi » 30 Jan 2019, 20:33

  • Open ext/dmzx/mchat/styles/all/template/javascript/mchat.js
  • Find the very last line in the file:

    Code: Select all

    });
    
  • Add before:

    Code: Select all

    $('<div>').attr({
        class: 'cp-mini',
        style: 'padding: 0; margin: 0; border-radius: 0;'
    }).append($('<i>').attr({
        class: 'icon fa fa-exchange',
        style :'float: left; cursor: pointer;'
    }).on('click', function() {
        mChat.cached('panel').slideToggle();
    })).insertBefore(mChat.cached('panel'));
    

User avatar
kaptangula
Posts: 22
Joined: 17 Oct 2018, 07:47

Re: Is it possible to have a button to close/open mChat?

#9

Post by kaptangula » 30 Jan 2019, 20:43

no i'm not saying it

It's hard to tell
Last edited by kaptangula on 30 Jan 2019, 20:46, edited 1 time in total.

User avatar
kasimi
mChat developer
Posts: 1004
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

Re: Is it possible to have a button to close/open mChat?

#10

Post by kasimi » 30 Jan 2019, 20:45

So we are back at the beginning. Please use a translator such as Google and explain in detail what you're looking for.

Post Reply

Who is online

Users browsing this forum: Yandex [Bot] and 2 guests