[1.4.0] mChat Sticky Footer

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

[1.4.0] mChat Sticky Footer

#1

Post by kasimi » 13 Oct 2016, 20:04

Image This mChat addon extension displays mChat at the bottom of every page* of your board. It allows the user to resize the mChat window and it adds a new UCP option so that users can turn it on/off. It integrates with mChat's existing UCP permissions. Furthermore it supports the Collapsible Categories extension.

Only for phpBB 3.1.10 or earlier: Note that currently there are some pages where mChat cannot be displayed, for example when composing a reply, composing a PM, changing settings in the UCP. The technical reason behind this is that mChat uses phpBB's form key functions to prevent CSRF attacks. These functions are limited to one key per page. When you visit a page on which phpBB uses the form key functions, mChat can't use them and thus would be vulnerable to CSRF attacks. • Update Oct 23: viewtopic.php?p=24#p24 • Update Nov 2: viewtopic.php?p=127#p127

You can test this extension by enabling it in the mChat settings in your UCP.

Screenshots
  • mChat on every page of your board:

    Image
  • Resizable mChat window:

    Image
  • Supports Collapsible Categories extension:

    Image
Requirements

For version 1.4.0 and later:
  • PHP at least 5.4.7
  • phpBB at least 3.2.0
  • mChat at least 2.1.0
For version 1.3.3 and earlier:
  • PHP at least 5.4.7
  • phpBB at least 3.1.8-RC1 or 3.2.0-RC2
  • mChat at least 2.0.0-RC7
This extension is compatible with all mChat add-on extensions from kasimi.net!

Demo

Register an account on this board, visit your UCP and set Display mChat at the bottom of every page to Yes.

Download

This extension is only available to Donors. How to get access.

phpbb-ext-mchat-stickyfooter-1.4.0.zip

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

Changelog
  • v1.4.0 - 2018-08-05
    • Dropped support for phpBB 3.1. You need at least phpBB 3.2.0.
    • Dropped support for mChat 2.0.x. You need at least mChat 2.1.0.
    • Fixed centering mChat header
    • Fixed mChat rooms list taking up all of mChat container space
    • Fixed compatibility with mChat Rooms Toggle add-on
    • Removed form token workaround that could break submitting forms (such as polls)
    • Added prefixed CSS rules
    • Minor HTML and Twig cleanup
  • v1.3.3 - 2018-03-16
    • Fixed compatibility with Rooms add-on and Collapsible Categories extension
    • Don't display sticky footer if board is disabled and user is not admin or moderator
    • Increased minimum PHP version to 5.4.7
    • Minor code style fixes
  • v1.3.2 - 2017-09-26
    • Don't overlap with notification dropdown box
    • Added JS events to enable support for other styles
  • v1.3.1 - 2017-07-16
    • Fixed version check
  • v1.3.0 - 2017-07-15
    • Fixed flickering when setting container size on reloading page. mChat doesn't jump around anymore!
    • New ACP setting to display number of chatting users in the header
    • Using Twig template syntax
  • v1.2.3 - 2017-04-09
    • Fixed editing & deleting archived messages
  • v1.2.2 - 2017-02-23
    • Updated drag icon, increased draggable area
  • v1.2.1 - 2016-11-04
    • Fixed vertical resizing on long pages
  • v1.2.0 - 2016-11-02
    • Support custom form token template data in phpBB 3.1.11 allowing Sticky Footer to display an all pages, no exceptions
  • v1.1.1 - 2016-10-28
    • Fixed restoring mChat size
  • v1.1.0 - 2016-10-27
    • Support resizing mChat on mobile devices
    • Increased size of resize arrow on screens smaller than 700px
    • Improved performance while resizing
    • Improved performance when collapsing mChat in Chrome
  • v1.0.2 - 2016-10-25
    • Fixed display issues for guests
    • Fixed misplaced resize arrow
    • Fixed detecting resize click
    • Fixed resize cursor not displaying correctly
  • v1.0.1 - 2016-10-20
    • Added missing config value
  • v1.0.0 - 2016-10-13
    • First release
Old versions:
You do not have the required permissions to view the files attached to this post.

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

Re: mChat Sticky Footer

#2

Post by kasimi » 20 Oct 2016, 11:37

Updated to version 1.0.1

There were some config values missing in the phpbb_config table.

See first post for the latest download. The usual update procedure applies. :)

Tarantino
Distinguished Donor
Posts: 69
Joined: 21 Oct 2016, 12:59

Re: mChat Sticky Footer

#3

Post by Tarantino » 21 Oct 2016, 13:05

Thanks for your work. Interested on this :)

Tarantino
Distinguished Donor
Posts: 69
Joined: 21 Oct 2016, 12:59

Re: mChat Sticky Footer

#4

Post by Tarantino » 21 Oct 2016, 14:59

EDIT: Sorry for the double post.

Do I need to configure anything for this to work? I've installed on a 3.1.9 version with prosilver just for testing, but I can't see any option on UCP neither on ACP. I'm using mchat 2.0.0-RC7 too. And PHP Version 5.6.25.
Last edited by Tarantino on 21 Oct 2016, 15:08, edited 2 times in total.

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

Re: mChat Sticky Footer

#5

Post by kasimi » 21 Oct 2016, 15:06

This extension adds a permission to allow better control over who can use the chat as sticky footer. There are two possibilities, just like with the regular mChat user settings:
  1. Enable the Display at the bottom of every page option in the ACP -> Extensions -> mChat -> Global User Settings. This will enable it for all users without giving them the chance to disable it in their UCP. Or:
  2. Give permission to the users who you want to be able to use this feature. Have a look at the Standard features role. You can find the permission Can customise <Display at the bottom of every page> in the "mChat in UCP" tab.

Tarantino
Distinguished Donor
Posts: 69
Joined: 21 Oct 2016, 12:59

Re: mChat Sticky Footer

#6

Post by Tarantino » 21 Oct 2016, 15:08

Ok, I saw an option "Display mChat at the bottom of every page" I suppost its this for this extension to work.

But I found a bug. Because setting this to yes, on the index page this extension doesnt work and appears at the top. If I put "Display on the index page:" to off with "Display mChat at the bottom of every page" ON, it will still appear on index on the top.

What I wanted is to have on all pages including index at the bottom side. I've seen that this is working good on viewforum and viewtopic at least.
And if I wanted to have on all pages except index, then putting the Display on the index page: to NO should do that exception. But it has some bug on it.

best regards

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

Re: mChat Sticky Footer

#7

Post by kasimi » 21 Oct 2016, 15:12

Tarantino wrote:What I wanted is to have on all pages including index at the bottom side.
This is how it's intended to work so it sounds like a bug. I will look into it shortly.

Tarantino
Distinguished Donor
Posts: 69
Joined: 21 Oct 2016, 12:59

Re: mChat Sticky Footer

#8

Post by Tarantino » 21 Oct 2016, 15:25

Ok, thank you.

EDIT: I did a lot of more tests, and found my issue. My primary theme is inherit from prosilver, so the all folder was creating a bug.
What I did to solve was to move the all folder content inside the prosilver and delete the all folder. After that no more problems with my primary theme.
And I tested to with style=1 (prosilver) on the url, but I would say the error was related since now it works perfectly.


The only thing that could be done it if I wanted to have on all pages except index, then putting the "Display on the index page" to NO could do that exception.
But I saw that the normal behavior is If I put "Display on the index page" to ON it will appear on normal mode, If I disable that option, then if the "Display mChat at the bottom of every page" is on it will appear at the side even on index. If I disable that one, then no chat appears.
So, it's fine enough already. :P

Btw, how can I add the resize option that appears on prosilver on others themes?
EDIT2: I saw that I need to edit the .css and add a z-index: ?? on ".mchat-wrapper:before" at least on my side, or else it will be hidden.

Thanks again!


EDIT3:
LOL now I've another a REAL issue that i don't know how to solve :lol: :lol: all works well when i'm registered. But If I logout. All crash, because of .js errors.
In my special theme the forum doesn't open and on prosilver I got this error (only as guest of course):
Image

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

Re: mChat Sticky Footer

#9

Post by kasimi » 21 Oct 2016, 19:26

Okay so you're problems with displaying it on the index are solved, correct? Let me know if there are still any issues. For reference, if you want mChat to be displayed at the bottom even if "Display on the index page" is enabled, do this:
  • Open ext/kasimi/mchatstickyfooter/event/listener.php
  • Find 'index',
  • Replace with // 'index',
Tarantino wrote:how can I add the resize option that appears on prosilver on others themes?
What style are you using? I tested this extension only with prosilver but I'll add support for any style that needs extra adjustments, so that you won't have to apply the changes next time you update the extension.

Tarantino wrote:But If I logout. All crash, because of .js errors.]
I was able to reproduce this, please test this development version: [removed]

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

Re: mChat Sticky Footer

#10

Post by terry2 » 22 Oct 2016, 20:25

Any way to bump it up the page a few px ?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest