Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Scandal's] Countdown Timer BBCode Details »»
[Scandal's] Countdown Timer BBCode
Version: 1.0, by Scandal Scandal is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 4.2.x Rating:
Released: 08-22-2015 Last Update: Never Installs: 13
DB Changes Uses Plugins Auto-Templates
Additional Files  
No support by the author.

Description
This product add two new BBCodes as follows:
Quote:
[COUNTDOWN]00:00:00:00[/COUNTDOWN]
... and
Quote:
[ECOUNTDOWN]00:00:00:00[/ECOUNTDOWN]
The string inside the BBCode is:
DAYS:HOURS:MINUTES:SECONDS, that you specify when make a post.

The results is a live countdown timer based on a specified Timezone! See screenshots!

But what's the difference between [COUNTDOWN] and [ECOUNTDOWN]?
COUNTDOWN has a start date-time, the date-time the item is posted.
As many times you edit the message, countdown timer will not change its start date.

ECOUNTDOWN is a countdown timer which will restart each time you edit a post! See it in action!


::EXAMPLE::

Quote:
Let's say you make a post at: 1:00PM with bbcode:
Quote:
[COUNTDOWN]00:02:00:00[/COUNTDOWN]

When the post saved, the countdown timer will start from:
00:02:00:00
and will countdown...
00:01:59:59...
00:01:59:58... etc
and will end at 3:00PM.

So the countdown timer will run at post time + the value you set inside the bbcode.
As times you edit the post, the countdown timer will end at 3:00PM 'cause is [COUNTDOWN], not [ECOUNTDOWN].



The same if at 1:00PM you make a post with bbcode:
Quote:
[ECOUNTDOWN]00:02:00:00[/ECOUNTDOWN]
.. but if for example you edit the post at 2:00PM and hit save, the countdown timer will start again:
00:01:59:59...
00:01:59:58... etc
... and will end at 4:00PM

So in "E" case, we have the edit time (if an edit exists, otherwise we have the initial post time) + the value you set inside the bbcode. As many times you edit a post with "E", the timer will start again.
This bbcode can work on display of:
  • Forum Posts
  • Forum Announcements
  • Social Group Messages
  • Private Messages
  • Profile Visitor Messages

Installation
1. Upload all files of /upload folder to your forum root.
2. Import *xml product and check Settings.
Done!!

Credits to akz645 on vbulletin.org for his idea and his paid support for the development of this product!!

Download Now

File Type: zip product-sc_countdowntimer_bbcode_v1.0.zip (53.2 KB, 141 views)

Screenshots

File Type: jpg countdowntimer1.jpg (119.7 KB, 0 views)
File Type: png countdowntimer2.png (33.0 KB, 0 views)
File Type: png countdowntimer3.png (25.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
akz645, netzoner

Comments
  #2  
Old 08-23-2015, 08:46 PM
akz645 akz645 is offline
 
Join Date: Jul 2015
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the Mod
Works on vBulletin 4.2.3

@Members
If the countdown timer is a few hours off from what you intended when you post, that means you have to adjust the timezone from the adminCP settings until it is correct.

Note:
I tried it on 2 different servers. One of them isn't very fast, so the timer often doesn't work properly- it shows sometimes when I refresh, but most of the times it doesn't. However, it did work most of the time on VM. I'm assuming that's because the thread has too many images (design/post heavy), so the timer stays stuck at 00:00:00:00 due to the server not processing the page cache correctly (something along those lines).
Edit: It turns out it was because I had activated cloudflare on my webhost, which doubled the cache of the entire forum. Hence that caused the entire forum to slow down/not load correctly.

However on my quicker webhost server, it worked without any problems. I doubt anybody here will have any problems, if you aren't a free user on a webhost. Just thought I'd mention it, incase somebody has this problem in the future.
Reply With Quote
  #3  
Old 08-24-2015, 12:04 PM
Alan_SP's Avatar
Alan_SP Alan_SP is offline
 
Join Date: Nov 2009
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When you write about start time, do you mean end time, time when timer will reach end (ie. 00:00:00:00)?
Reply With Quote
  #4  
Old 08-24-2015, 12:55 PM
Scandal's Avatar
Scandal Scandal is offline
 
Join Date: Dec 2005
Location: Athens / Greece
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Alan_SP View Post
When you write about start time, do you mean end time, time when timer will reach end (ie. 00:00:00:00)?
hmm yes,
let's say you make a post at: 1:00PM with bbcode:
Quote:
[COUNTDOWN]00:02:00:00[/COUNTDOWN]
When the post saved, the countdown timer will start from:
00:02:00:00
and will countdown...
00:01:59:59...
00:01:59:58... etc
and will end at 3:00PM.

So the countdown timer will run at post time + the value you set inside the bbcode.
As times you edit the post, the countdown timer will end at 3:00PM 'cause is [COUNTDOWN], not [ECOUNTDOWN].



The same if at 1:00PM you make a post with bbcode:
Quote:
[ECOUNTDOWN]00:02:00:00[/ECOUNTDOWN]
.. but if for example you edit the post at 2:00PM and hit save, the countdown timer will start again:
00:01:59:59...
00:01:59:58... etc
... and will end at 4:00PM

So in "E" case, we have the edit time (if an edit exists, otherwise we have the initial post time) + the value you set inside the bbcode. As many times you edit a post with "E", the timer will start again.

Hope now its more clear.
Reply With Quote
Благодарность от:
Alan_SP
  #5  
Old 08-24-2015, 01:40 PM
Bastien's Avatar
Bastien Bastien is offline
 
Join Date: May 2015
Location: France
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If activated on my board, I can't post any new thread/post because the texatarea disappear (WYSIWYG mode activated !)
Reply With Quote
  #6  
Old 08-24-2015, 02:03 PM
Scandal's Avatar
Scandal Scandal is offline
 
Join Date: Dec 2005
Location: Athens / Greece
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bastien View Post
If activated on my board, I can't post any new thread/post because the texatarea disappear (WYSIWYG mode activated !)
Be sure you have upload all necessary files. There are an *xml product to import and a /upload folder, on the package with files. You do not upload the "upload" folder as it is, but its contents, to your forum root. :up:
Reply With Quote
  #7  
Old 08-24-2015, 02:42 PM
Bastien's Avatar
Bastien Bastien is offline
 
Join Date: May 2015
Location: France
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It seems Filezilla didn't upload the content whereas I asked it to do ...

Sorry for the unpleasantness and thank you for your answer
It works
Reply With Quote
  #8  
Old 08-24-2015, 02:51 PM
Scandal's Avatar
Scandal Scandal is offline
 
Join Date: Dec 2005
Location: Athens / Greece
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great!

No prob
Reply With Quote
  #9  
Old 09-06-2015, 07:37 PM
SkepticalGaming SkepticalGaming is offline
 
Join Date: May 2013
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can i put any code into a forum block to work in there?
Reply With Quote
  #10  
Old 12-10-2015, 11:46 AM
tim.liton tim.liton is offline
 
Join Date: Dec 2012
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@scandal thank you for the great plugin. Is there a option to show the ecounter in the threads where are listed? This will be perfect!
Reply With Quote
Reply


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 02:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05247 seconds
  • Memory Usage 2,334KB
  • Queries Executed 24 (?)
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
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete