[1.4.1] mChat Sticky Footer

Display mChat at the bottom of every page, configurable in the UCP
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: [1.4.0] mChat Sticky Footer

Post by kasimi »

In ext/kasimi/mchatstickyfooter/event/listener.php find the display_mchat() function and at the end of it, add this:

Code: Select all

- This code is only accessible to donors -
aklabs
Posts: 6
Joined: 13 Jul 2019, 11:17

Re: [1.4.0] mChat Sticky Footer

Post by aklabs »

Hi, thank you for extension, but this prevents me from using it on my board:

Having 3 issues:

1. It conflicts with QuickReply Reloaded: after sticky footer installation all message actions (like quoting or nickname ref) go to mchat window instead of main one.
2. It have "show mchat on all pages" option in ACP, but this option is missed in UCP. So users who don't like chat can't switch it off and it's very annoying.
3. it's good to have option to disable mchat sticky popup on mobile browsers because it works slow enough + it looks almost the same as mchat page. So better to show collapsed view at the bootom, but when vistior click it - redirect to mchat page.

Is there any thoughts regarding this? Thanks.
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: [1.4.0] mChat Sticky Footer

Post by kasimi »

Thanks for your feedback. :+1:
  • Unfortunately this is a limitation of prosilver and can't be fixed. Also reported here: viewtopic.php?f=7&t=3&start=10#p390 and here: viewtopic.php?f=4&t=256&p=1675
  • You need to give your users the permission to edit this setting, have a look at the mChat in UCP user permission tab in the ACP.
  • That's a good idea, I'll look into it!
aklabs
Posts: 6
Joined: 13 Jul 2019, 11:17

Re: [1.4.0] mChat Sticky Footer

Post by aklabs »

Hi. thanks, but disabling bbcodes and smiles in mchat not helps (at least with quickreply enabled): when user click "smile" or "quote" on main form it continue insert it to mchat input field anyway. So I have modified phpbb code a little (works well with standard full reply form as well):

in editor.js:

Code: Select all

- This code is only accessible to donors -
may be it's possible to do this without core code modification? Not sure, but this one works for my forum.
aklabs
Posts: 6
Joined: 13 Jul 2019, 11:17

Re: [1.4.0] mChat Sticky Footer

Post by aklabs »

btw, what about adding some way to see that chat have "new unread messages" ? Actual for messages added when popup is in collapsed state.
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: [1.4.0] mChat Sticky Footer

Post by kasimi »

aklabs wrote: 14 Jul 2019, 09:32 may be it's possible to do this without core code modification? Not sure, but this one works for my forum.
Create a new file ext/dmzx/mchat/styles/all/template/event/overall_footer_body_after.html and add this code:

Code: Select all

- This code is only accessible to donors -
No core edits required. Only works with core phpBB, mChat and QuickReply Reloaded. If you know any other extension that should be supported, let me know.

The color palette is still broken. Maybe you know a solution?
aklabs
Posts: 6
Joined: 13 Jul 2019, 11:17

Re: [1.4.0] mChat Sticky Footer

Post by aklabs »

Your method have two additional problems:

1. "quote" button located in each post header does not work
2. quickreply reloaded have a "ref" link below avatar. This link not works too.

Really, it's the same problem: because user click outside any form.
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: [1.4.0] mChat Sticky Footer

Post by kasimi »

Getting mChat's quote button and other BBCode buttons on each message to work was easy.

QuickReply's "ref" link isn't working for me, even if the mChat Sticky Footer add-on is disabled. Any idea how to fix this? Edit: I was running an outdated version of QR Reloaded, it works now.

Try this updated piece of code:

Code: Select all

- This code is only accessible to donors -
aklabs
Posts: 6
Joined: 13 Jul 2019, 11:17

Re: [1.4.0] mChat Sticky Footer

Post by aklabs »

Still not works for me when this quote button pressed:
zz1.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: [1.4.0] mChat Sticky Footer

Post by kasimi »

Another update:

Code: Select all

- This code is only accessible to donors -

Who is online

Users browsing this forum: CCBot [Bot] and 0 guests