A plug-in to display the time of an item and/or comment in Internet Beats (Swatch Internet Time).
| General Plugin info | |
|---|---|
| Author: | Jeroen Budts (TeRanEX) |
| Current Version: | 0.1.1 |
| Download: | np_internettime_v0.1.1.zip |
| Code: | NP_InternetTime code |
| Demo: | http://budts.be/weblog/ (?) |
| Forum Thread: | here |
Home: http://wiki2.budts.gluefish.net/nucleus:plugins:internet_time
Code: http://wiki2.budts.gluefish.net/nucleus:plugins:internet_time:code
example: http://budts.be/weblog/
Forum Thread: http://forum.nucleuscms.org/viewtopic.php?p=14578
This plugin brings the Swatch Internet Time (.beat) to Nucleus. Swatch has divided a day into 1000 eqaul beats, so every beat is the equivalent of 86.4 seconds. Also there are no timezones, so wherever you are, it is always the same Internet Time (by example: while i'm writing this it is 12:28+0200 or @478). More info about Swatch Internet Time at http://swatch.com/internettime/home.php
The plugin can be used as a TemplateVar to show the time at which an item or comment was posted in the Swatch Internet Time. To do so simply add <%InternetTime%> somewhere in your template. (In the 'Items'-part of your template if you want the .beat of your item and somewhere in the 'Comments (if any)'-part of your template to show the .beat of every comment.)
The plugin can also be used as a SkinVar, to print the actual .beat time (this is the time the blogpage is parsed on the server)
To install NP_InternetTime simply copy the following code and save it in a file called NP_InternetTime.php, upload it to the plugins folder of your Nucleus installation and install.
The plugin has only one option:
You can get the code of the plugin http://wiki.budts.be/NpInternetTime/Code
NP_InternetTime version 0.1.1 works with Nucleus CMS version 3.31 - 2007-11-13 kg