Orbiter-Forum is proud to introduce the addition of custom event timers (aka countdown/countup timers). This being a spaceflight forum, countdown clocks hold a special place in our hearts, so we have written a custom solution for this board (nothing else suitable was available). We hope you all find it useful. Also, feel free to tell other vBulletin users/admins etc about it. There is a download package, wiki, and source code all available on my bitbucket page.
Use and Formatting:
The event timers will show the time remaining to, or time passed since, an event. Typical usage would be...
...which looks like: [eventTimer]2009-12-25 06:00[/eventTimer]
Times are in UTC and the format complies with ISO 8601 (24 hour format), ie, "yyyy-mm-dd hh:mm[:ss]" (seconds are optional, all other fields must be provided).
The time remaining will be displayed as "dd/hh:mm:ss" by default. A custom format string may be added using the following macros:
An example usage is (note the semi-colon separating the event date/time and the format string)...
...which looks like: [eventTimer]2009-12-31 23:59;%dd% Days %hh% Hours %mm% Minutes %ss% Seconds[/eventTimer]
Standard bb formatting (size, bold, italic, etc) maybe applied to get something like:
Hovering the mouse over the timer will display the event time in a tooltip box.
Known Issues:
When using the vBulletin inline editor, the timer will not automatically start after the edit is saved (you will see a message "*Click here to restart the timer*". Refreshing the page or clicking on the timer will restart the timer.
Copyright Notice:
Copyright 2009 by tblaxland.
Event Timer is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Event Timer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with Event Timer. If not, see http://www.gnu.org/licenses/.
Credits:
Prototype.js - Sam Stephenson http://www.conio.net/
NTP for Javascript - jehiah http://jehiah.cz/archive/ntp-for-javascript
Use and Formatting:
The event timers will show the time remaining to, or time passed since, an event. Typical usage would be...
HTML:
[eventTimer]2009-12-25 06:00[/eventTimer]
Times are in UTC and the format complies with ISO 8601 (24 hour format), ie, "yyyy-mm-dd hh:mm[:ss]" (seconds are optional, all other fields must be provided).
The time remaining will be displayed as "dd/hh:mm:ss" by default. A custom format string may be added using the following macros:
Code:
%dd% - days
%hh% - hours
%mm% - minutes
%ss% - seconds
HTML:
[eventTimer]2009-12-31 23:59;%dd% Days %hh% Hours %mm% Minutes %ss% Seconds[/eventTimer]
Standard bb formatting (size, bold, italic, etc) maybe applied to get something like:
[eventTimer]2010-04-01 12:00[/eventTimer]
Hovering the mouse over the timer will display the event time in a tooltip box.
Known Issues:
When using the vBulletin inline editor, the timer will not automatically start after the edit is saved (you will see a message "*Click here to restart the timer*". Refreshing the page or clicking on the timer will restart the timer.
Copyright Notice:
Copyright 2009 by tblaxland.
Event Timer is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Event Timer is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with Event Timer. If not, see http://www.gnu.org/licenses/.
Credits:
Prototype.js - Sam Stephenson http://www.conio.net/
NTP for Javascript - jehiah http://jehiah.cz/archive/ntp-for-javascript