[1.0.1] mChat User Time

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

[1.0.1] mChat User Time

Post by kasimi »

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
Posts: 30
Joined: 03 Jun 2017, 19:20

Re: [1.0.0] mChat User Time

Post by lopoto »

THX Kasimi :beer:
User avatar
kasimi
mChat developer
Posts: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: [1.0.1] mChat User Time

Post by kasimi »

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
Posts: 242
Joined: 22 Oct 2016, 18:22
Location: My castle

Re: [1.0.1] mChat User Time

Post by terry2 »

:+1: perfect.
nou nou
Donor
Posts: 64
Joined: 10 Oct 2017, 19:38

Re: [1.0.1] mChat User Time

Post by nou nou »

Finally installed it - works really well! Thanks kasimi! :)
User avatar
andares
Posts: 8
Joined: 30 Dec 2016, 17:22
Location: Barcelona (Spain)

Re: [1.0.1] mChat User Time

Post by andares »

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: 1173
Joined: 06 Oct 2016, 09:56
Location: Germany

Re: [1.0.1] mChat User Time

Post by kasimi »

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
Posts: 8
Joined: 30 Dec 2016, 17:22
Location: Barcelona (Spain)

Re: [1.0.1] mChat User Time

Post by andares »

Perfect, now works!

Thanks @kasimi :+1:
Fonzi
Posts: 28
Joined: 25 Feb 2017, 09:28

Re: [1.0.1] mChat User Time

Post by Fonzi »

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

Who is online

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