Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Countdown hack Details »»
Countdown hack
Version: 1.00, by Kentaurus Kentaurus is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.4 Rating:
Released: 12-30-2006 Last Update: Never Installs: 43
 
No support by the author.

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:

[countdown=Apocalypsis]30s[/countdown]


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

[countdown=EVENT]1d23h59m59s[/countdown]

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 at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-01-2007, 01:28 PM
basilrath's Avatar
basilrath basilrath is offline
 
Join Date: Apr 2006
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works pretty good.................on mine nice countdown





Upload the Countdown.js to your forum root

just add this code wherever you want the countdown to whatever your counting down to and it will display the message you wish at the end of it ie "happy new year" etc

works well
Reply With Quote
  #13  
Old 01-01-2007, 05:31 PM
buileminh buileminh is offline
 
Join Date: Jan 2005
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack! Thank you and installed
Reply With Quote
  #14  
Old 01-07-2007, 03:53 PM
jluerken's Avatar
jluerken jluerken is offline
 
Join Date: Aug 2003
Location: Germany
Posts: 1,016
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I make this working on the vbAdvanced Portal Page?
Reply With Quote
  #15  
Old 01-07-2007, 10:28 PM
Kentaurus's Avatar
Kentaurus Kentaurus is offline
 
Join Date: Dec 2001
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jluerken View Post
How can I make this working on the vbAdvanced Portal Page?
There is no support for vbAdvanced as that is a differente product, you might want to try asking the vbAdvanced developers for help.
Reply With Quote
  #16  
Old 06-25-2007, 02:26 PM
heavy1 heavy1 is offline
 
Join Date: Nov 2004
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

something is wrong on my forum
i put [countdown=Eureka]50d[/countdown]
and it says 2 weeks 2 days 2 Hours 23 minutes 50 seconds

what is wrong?

//edit
nevermind - i tried to edit old post and its taking post date.
Reply With Quote
  #17  
Old 06-26-2007, 12:08 PM
PinkDaisy's Avatar
PinkDaisy PinkDaisy is offline
 
Join Date: Sep 2006
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work for signatures??
Reply With Quote
  #18  
Old 07-09-2007, 12:08 PM
Censtudios Censtudios is offline
 
Join Date: Jun 2007
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to change the text. the "minutes" and "seconds" left are annoying and make the text very long... how do I do this? I searched in phrases, couldnt find anything
Reply With Quote
  #19  
Old 07-29-2007, 05:25 AM
Fabsboards Fabsboards is offline
 
Join Date: May 2007
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want a countdown timer that will allow you to enter a date of the event, not the time remaining until the event.

Does one exist?

AJAX would be nice too....
Reply With Quote
  #20  
Old 02-19-2008, 03:13 AM
rotor rotor is offline
 
Join Date: Jul 2007
Location: Qld, Australia
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looked at other countdowns that have more options ... like "Permissions" and date entry etc etc ...

But none of them work ....

At least this works

Thanks for puttin the time in :up:

marked ...
Reply With Quote
  #21  
Old 02-19-2008, 03:51 AM
WEBDosser's Avatar
WEBDosser WEBDosser is offline
 
Join Date: Oct 2001
Location: @ MyPC
Posts: 824
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

marked..
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07320 seconds
  • Memory Usage 2,298KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete