• Welcome to Simple Machines Community Forum. Please login or sign up.
December 08, 2021, 07:19:22 PM

News:

Wondering if this will always be free?  See why free is better.


Priority timezones plus

Started by wintstar, October 26, 2021, 02:29:18 PM

Previous topic - Next topic

wintstar

Link to the mod

Priority timezones plus

This mod displays in the profile of the member (Time zone) and in the Admin Center in the setting "Forum default timezone" (Configuration => Features and Options) shows the timezone with city names. By entering the 2-character ISO country code (Show timezones of these countries first) they will be displayed first in the dropdown
of the server's time zone.

With this mod it will be easier for those who are not so often on the Internet to set the correct time zone.

Live Demo click here.

Many thanks to Sesquipedalian

Requirement for the installation is SMF 2.1.RC4 and php 7.2 or higher

Changelog
v1.1
Bug missing globale $txt solved. Many thanks to Sesquipedalian
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

Shambles

Quote from: wintstar... for those who are not so often on the Internet ...

Who are these people?   ???  :o

wintstar

Quote from: Shambles on October 26, 2021, 04:50:25 PM
Quote from: wintstar... for those who are not so often on the Internet ...

Who are these people?   ???  :o

Is this an error message? Please post here only sensibly useful contributions and post your question in another topic.
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

Sesquipedalian

You might want to make this change, @wintstar:

Code (Find) Select
global $tztxt;
Code (Replace) Select
global $tztxt, $txt;
That will display the localized version of the city name rather than the raw TZID value. For example:
Before: [UTC+02:00] - Europe/Busingen (CEST/CET)
After:  [UTC+02:00] - Büsingen (CEST/CET)
I promise you nothing.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

wintstar

Quote from: Sesquipedalian on October 30, 2021, 02:05:24 PMCode (Find) Select Expand
global $tztxt;Code (Replace) Select Expand
global $tztxt, $txt;

Thank you @Sesquipedalian for pointing this out. Will create an update for the mod.
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

wintstar

Priority timezones plus Mod updated to v1.1.

Changelog
v1.1
Bug missing globale $txt solved. Many thanks to Sesquipedalian
Regards Stephan

,,In order for the possible to come into being, the impossible must be attempted again and again."
Hermann Hesse (1877-1962)

My HomepageMy Board - My Atelier

Advertisement: