[1.0.1] mChat User Time

Add local time, time zone and time difference relative to you to each mChat message
Post Reply
User avatar
kasimi
mChat developer
Posts: 701
Joined: 06 Oct 2016, 09:56
Location: Germany
Contact:

[1.0.1] mChat User Time

#1

Post by kasimi » 09 Feb 2018, 10:58

mChat add-on
User Time


Inspired by nou nou who shared the idea in the support section, this extension will let you know how many hours away the other users are. Additionally, when hovering the time difference, it displays the user's local time when the message was sent, the user's timezone and the timezone's offset to UTC, in hours. Example: Local time: 05 Feb 2018, 13:27 • America/Toronto • UTC-05:00

The time difference is only displayed for logged in user. For guests there is no time difference displayed.

For a demo, register an account on this board if you haven't already, and take a look at mChat. :+1:

Requirements
  • PHP at least 5.4.0
  • phpBB at least 3.2.0. It might work with 3.1.x, but no support is provided.
  • mChat at least 2.0.0

Download

This extension is only available to Donors. How to get access.
phpbb-ext-mchatusertime-1.0.1.zip

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

Changelog
  • v1.0.1 - 2018-02-10
    • Added version check
  • v1.0.0 - 2018-02-09
    • First release
Old versions:
You do not have the required permissions to view the files attached to this post.

User avatar
lopoto
Donor
Posts: 22
Joined: 03 Jun 2017, 19:20

Re: [1.0.0] mChat User Time

#2

Post by lopoto » 09 Feb 2018, 18:08

THX Kasimi :beer:

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

Re: [1.0.1] mChat User Time

#3

Post by kasimi » 10 Feb 2018, 12:33

The first update to version 1.0.1 is already available. It adds a version check to the extension. There are no other changes.

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

Re: [1.0.1] mChat User Time

#4

Post by terry2 » 10 Feb 2018, 22:57

:+1: perfect.

nou nou
Donor
Posts: 56
Joined: 10 Oct 2017, 19:38

Re: [1.0.1] mChat User Time

#5

Post by nou nou » 17 Feb 2018, 07:07

Finally installed it - works really well! Thanks kasimi! :)

User avatar
andares
Donor
Posts: 8
Joined: 30 Dec 2016, 17:22
Location: Barcelona (Spain)

Re: [1.0.1] mChat User Time

#6

Post by andares » 01 Mar 2018, 22:30

phpBB at least 3.2.0. It might work with 3.1.x, but no support is provided.
Confirmed, don't work with 3.1.12:

Code: Select all

- This code is only accessible to donors -

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

Re: [1.0.1] mChat User Time

#7

Post by kasimi » 24 Apr 2018, 08:54

andares wrote:
01 Mar 2018, 22:30
Confirmed, don't work with 3.1.12
If you're up for a small challenge:
  • Remove the @language dependency from the service.yml file.
  • Remove the language $lang parameter from the event listener's constructor. Also remove the trailing comma in the line above.
  • Remove the line $this->lang = $lang;
  • Find

    Code: Select all

    - This code is only accessible to donors -
    Replace with

    Code: Select all

    - This code is only accessible to donors -
  • Find

    Code: Select all

    - This code is only accessible to donors -
    Replace with

    Code: Select all

    - This code is only accessible to donors -

User avatar
andares
Donor
Posts: 8
Joined: 30 Dec 2016, 17:22
Location: Barcelona (Spain)

Re: [1.0.1] mChat User Time

#8

Post by andares » 27 Apr 2018, 15:32

Perfect, now works!

Thanks @kasimi :+1:

Fonzi
Donor
Posts: 17
Joined: 25 Feb 2017, 09:28

Re: [1.0.1] mChat User Time

#9

Post by Fonzi » 07 Sep 2018, 18:07

will be compatible with phpBB 3.2.3? Thanks.
Thank you Kasimi, is a great developer!
I weigh his work and devoted time. 8-)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest