PDA

View Full Version : Forum Display Enhancements - GMT time on your forumpages


LaCN
11-04-2006, 10:00 PM
Description:
Show GMT time anywhere on your forum.
This is handy if you have members from all over the world (or in different timezones), and you sometimes schedule something they can see or do..
For example, in your news area under your forum-menu, or a sentence above the forum-time in the bottom of the pages.
What is GMT ?
GMT is the central earth time. Greenwich Mean Time (http://wwp.greenwichmeantime.com/)
It's the central timezone. Some countries have a timezone earlier or later.
Their time is for example 15:00 GMT+3 or 09:00 GMT-3 if the gmt-time was 12:00 :cool:


VB versions
I think the phrase-types didn't change much since 3.5.4, thus might be usuable on 3.5.4-3.6.3 versions.


Installation

add the new product: gmt.xml
If you don't like the way the time is displayed in my screenshot, edit the plugin: GMT time
For information on how to write time/date formats, see here (http://www.php.net/manual-lookup.php?function=date).
Go to the template u like to add the date in.
Could be Navigation breadcrump templates / navbar
Could be FORUMDISPLAY
Could be somewhere else...
Add this code in the area u whish: $vbphrase[gmt_phrase] $gmt


It's a small, but handy feature.
But I needed to learn how to make a product, to give something back to the comunity :)

Please hit https://vborg.vbsupport.ru/external/2010/11/2.gif https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=130818)


Version 2
New version released on 30/5/2007

Since someone asked me to mention the day names in French, I added some language support.

This is how the language support works:
The script will check which language setting the visitor has. (language set in windows, or w/e OS the visitor has)
If it's Dutch, French or German, the script will use that language.
Else it will use the standard server setting, which probably is english.

LaCN
11-05-2006, 10:57 AM
< reserved >

shadowevil
11-05-2006, 11:12 AM
where is the download file? I cannot see it :(

LaCN
11-05-2006, 11:21 AM
it's here now ;)

:Judge:
11-05-2006, 02:20 PM
Very nice thank you!

LaCN
11-05-2006, 05:53 PM
Thanx.

Please click https://vborg.vbsupport.ru/ (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=130818)
if you're using it :)

Snake
11-06-2006, 09:48 AM
Thanks!

drupy
02-08-2007, 12:40 PM
I am using 3.6.4
The seconds works alright, but the hours is not correct, it is showing 8.00 GMT when it should be 15.00 GMT
Could you please help?
Thank you, I really need this mod.

LaCN
05-19-2007, 06:09 PM
I am using 3.6.4
The seconds works alright, but the hours is not correct, it is showing 8.00 GMT when it should be 15.00 GMT
Could you please help?
Thank you, I really need this mod.
That's a big difference o_0

Is the time on ur server correct ?
if not, ssh into it, and adjust the date and timezone.

You could try to edit your plugin
and make it:
$gmt = gmdate($format);
in there, but I doubt that will do any big changes.

LaCN
05-30-2007, 08:47 PM
New version released.

Since someone asked me to mention the day names in French, I added some language support.


This is how the language support works:

The script will check which language setting the visitor has. (language set in windows, or w/e OS the visitor has)

If it's Dutch, French or German, the script will use that language.
Else it will use the standard server setting, which probably is english.

If you'd like to add your own language setting, next to the Dutch, French and German one, you can do that in the GMT plugin.

See the GMT2.xml file in the 1st post

;)

Shawn Yue
03-29-2008, 03:47 AM
How To Set To HK Tiem Our HK Time Is gmt +8 Is Same With Sg

How To Make It 12HRS Format

co0kz
03-31-2008, 05:36 PM
Is there anyway to offset the time this uses by 1 hour? It's currently showing me a time 1 hour behind current GMT due to daylight saving! Can this be done?