Kentaurus
12-30-2006, 10:00 PM
Just in time for new year in my forums :)
Tested with vb3.6.4
Description
---------------------------------------------------------------------
This is a countdown hack, a user enters a simple bbcode tag in any post and a counter starts, supported inside a post, for example:
30s
The text that would appear is:
"Apocalypsis is in 30 seconds"
(or 29, 28, seconds... depending on the time that you load the post)
When the counter expires then..
"The counter to Apocalypsis has expired"
will be shown. This phrases are editable.
The counter is live, any time the user refreshes the page the counter is updated. (screenshots below)
The following syntax is supported
1d23h59m59s
That is, EVENT for the event name
then any combination of a number, followed by a "d", for days
a number, followed by an "h", for hours
a number, followed by an "m", for minutes
a number, followed by a "s", for seconds
The order is important, seconds cannot appear before days. You can only include hours and minutes, or days and minutes... or only days. Any combination as long as the order is correct.
How does it work?
---------------------------------------------------------------------
The post's dateline is taken as the date baseline to calculate the time difference, this means that if you edit the post and change the counter, it will always start from the date that the post was published. If you hover over the counter a popup will show when the counter started.
Installation instructions
---------------------------------------------------------------------
1. Login to your admin control panel
2. Go to "Plugins & Products" -> "Manage products"
3. Click on "Add/Import product"
4. Browse for "product-cz_countdown.xml" (included in the zip file), and click "Import"
That's it. You can start using [countdown] bbcode tags in any post
Info for hackers:
---------------------------------------------------------------------
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org (http://www.vbulletin.org) at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.
Tested with vb3.6.4
Description
---------------------------------------------------------------------
This is a countdown hack, a user enters a simple bbcode tag in any post and a counter starts, supported inside a post, for example:
30s
The text that would appear is:
"Apocalypsis is in 30 seconds"
(or 29, 28, seconds... depending on the time that you load the post)
When the counter expires then..
"The counter to Apocalypsis has expired"
will be shown. This phrases are editable.
The counter is live, any time the user refreshes the page the counter is updated. (screenshots below)
The following syntax is supported
1d23h59m59s
That is, EVENT for the event name
then any combination of a number, followed by a "d", for days
a number, followed by an "h", for hours
a number, followed by an "m", for minutes
a number, followed by a "s", for seconds
The order is important, seconds cannot appear before days. You can only include hours and minutes, or days and minutes... or only days. Any combination as long as the order is correct.
How does it work?
---------------------------------------------------------------------
The post's dateline is taken as the date baseline to calculate the time difference, this means that if you edit the post and change the counter, it will always start from the date that the post was published. If you hover over the counter a popup will show when the counter started.
Installation instructions
---------------------------------------------------------------------
1. Login to your admin control panel
2. Go to "Plugins & Products" -> "Manage products"
3. Click on "Add/Import product"
4. Browse for "product-cz_countdown.xml" (included in the zip file), and click "Import"
That's it. You can start using [countdown] bbcode tags in any post
Info for hackers:
---------------------------------------------------------------------
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org (http://www.vbulletin.org) at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.