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
VC_Countdown (FORUM BLOCK) Details »»
VC_Countdown (FORUM BLOCK)
Version: 1.0.5, by midnz midnz is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Category: vBulletin Forum Sideblocks - Version: 4.0.8 Rating:
Released: 10-09-2011 Last Update: 03-09-2012 Installs: 65
Translations  
No support by the author.

D E S C R I P T I O N

Countdown timer for forum sidebars that is configurable from the admin control panel. This countdown timer will calculate the remaining time left to reach your targeted event according to the GMT Time Zone Offset that you have pre-set in the admincp (VC_Countdown options). This countdown will expire at the same moment in time for all viewers, regardless of their separate time zones.

You can count down to any future month/day/time within the next 12 months.

This countdown timer is ideal for counting down to:
- have competitors meet at the same time for tournaments on gaming servers (which is what I have used it for)
- for fixed term offers
- for items available in X days
- for sale begins in X days time
or for whatever else tickles your fancy.

This is a no-frills countdown timer but there are no files to upload to your server and there is no need to fiddle around with templates and codes to adjust the countdown expiry date.
You can easily adjust this countdown display to suit forum sidebar widths from 165px to 300px.

I N S T R U C T I O N S

1. Import Product
Plugins & Products / Manage Products / Add/Import Product
Import: product-vc_countdown.xml

2. Create Forum Block
Forums & Moderators / Forum Blocks Manager / Add Block

Select Block Type: Custom HTML/PHP
Title: Event Timer (or whatever you prefer)
Description: VC_Countdown Event Timer
Content Type: HTML
Content: <div></div>
Template to use: block_VC_Countdown

3. Configure VC_Countdown
Admincp / Settings / Options / VC_Countdown

________________________________________

PLEASE NOTE: I have only tested this as working on 4.0.8 PL4.
Confirmed working well on 4.1.3 by rammieone
________________________________________

Updates:
v1.0.3
Removed superfluous css
Added css to enable proper font-color control over all four strings of text
Added ability to include background image
v1.0.4
Added 4 levels of bgimage transparency
Added bgimage 100% height & width of forum block container
Removed option for image:repeat
Added padding options for between (Event Name & top of forum block) and (Event Name & Countdown Numbers)
v1.0.5
Removed "X Days from Now" option (If you don't experience save/default problems using version 1.0.4 there is no need to update to 1.0.5)

Download Now

File Type: xml product-vc_countdown.xml (23.3 KB, 248 views)

Screenshots

File Type: gif bgimage_fading.gif (71.9 KB, 0 views)
File Type: jpg admincp.jpg (134.6 KB, 0 views)

Show Your Support

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

Comments
  #22  
Old 02-13-2012, 11:59 AM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I have it installed.
I had read that post but forgot about it. Thanks

I have installed others mods with the Latest Status Block enabled.
VC_Countdown was first mod I had seen the warning displayed.

Installed.
Cheers,
Reply With Quote
Благодарность от:
midnz
  #23  
Old 02-13-2012, 05:49 PM
Merjawy's Avatar
Merjawy Merjawy is offline
 
Join Date: Sep 2002
Location: USA
Posts: 505
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on 4.1.10 and works great, only one issue for RTL boards, the numbers don't align with the tags..

seconds numbers are aligned with Days which is really weird to see the number of days change by the second

I guess I will have to edit the code


EDIT: Fixed the issue by editing the template to align the numbers with the right tags.. Works great so it looks...

Thanks
Reply With Quote
Благодарность от:
midnz
  #24  
Old 02-13-2012, 06:34 PM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

TARGET DAY

When selecting
of the month
it works but when going back to the settings it defaults to
days from now

It Appears it may not take Daylight Saving Time into effect?
and
what about a leap year? 2012
Reply With Quote
  #25  
Old 02-13-2012, 11:17 PM
midnz's Avatar
midnz midnz is offline
 
Join Date: Jul 2010
Location: New Zealand
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr_Running View Post
TARGET DAY
When selecting
of the month
it works but when going back to the settings it defaults to
days from now
Yes, I did notice that too. Eg; When selecting 24th of the month it defaults to 24 days from now (after saving the settings). The countdown isn't affected unless you press the save button again after it defaults to that different option. I don't know why it does that yet but it annoys me enough that I'll look in to it further when time permits.
Quote:
Originally Posted by Mr_Running View Post
It Appears it may not take Daylight Saving Time into effect?
and what about a leap year? 2012
Daylight Saving Time:
I haven't tried counting down from standard time to a period within daylight savings time. Have you tried doing this and found the calculation not to be accurate?
Leap Years:
Calculations made, prior to Feb 29th of a leap year, that expire beyond Feb 29th should still be accurate.
Reply With Quote
  #26  
Old 02-17-2012, 03:58 PM
Mr_Running Mr_Running is offline
 
Join Date: May 2010
Posts: 536
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, it appears to be off by one day and one hour.
Reply With Quote
  #27  
Old 02-17-2012, 07:40 PM
midnz's Avatar
midnz midnz is offline
 
Join Date: Jul 2010
Location: New Zealand
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr_Running View Post
Yes, it appears to be off by one day and one hour.
Cheers for that.
Changing your GMT Offset option to that which will be accurate at the completion of the countdown should work. Maybe it would be wise for me to simply add that instruction.
Likewise, an instruction advising the consideration of an extra day to compensate for a calculation made prior to Feb 29th of a leap year and expiring after Feb 29th of a leap year should fix that issue. I'll look at adding an option that adds one day to the calculation where Feb 29th becomes an issue, knowing that I will need to do that before 2016.
Reply With Quote
  #28  
Old 03-08-2012, 07:04 AM
tommyxv tommyxv is offline
 
Join Date: Feb 2005
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by midnz View Post
Yes, I did notice that too. Eg; When selecting 24th of the month it defaults to 24 days from now (after saving the settings). The countdown isn't affected unless you press the save button again after it defaults to that different option. I don't know why it does that yet but it annoys me enough that I'll look in to it further when time permits.

Daylight Saving Time:
I haven't tried counting down from standard time to a period within daylight savings time. Have you tried doing this and found the calculation not to be accurate?
Leap Years:
Calculations made, prior to Feb 29th of a leap year, that expire beyond Feb 29th should still be accurate.
Any fix for this yet...It gets me everytime, when i edit it.
Reply With Quote
  #29  
Old 03-08-2012, 07:29 AM
midnz's Avatar
midnz midnz is offline
 
Join Date: Jul 2010
Location: New Zealand
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tommyxv View Post
Any fix for this yet...It gets me everytime, when i edit it.
No sorry, I haven't had the opportunity to look at it yet. I'll try to make some time this weekend (it's Thursday night at the time of posting this) to resolve the issue.
Reply With Quote
  #30  
Old 03-08-2012, 10:03 PM
tommyxv tommyxv is offline
 
Join Date: Feb 2005
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, cool. Thanks
Reply With Quote
  #31  
Old 03-10-2012, 08:24 PM
midnz's Avatar
midnz midnz is offline
 
Join Date: Jul 2010
Location: New Zealand
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mr_Running View Post
TARGET DAY
When selecting
of the month
it works but when going back to the settings it defaults to
days from now
Quote:
Originally Posted by tommyxv View Post
Any fix for this yet...It gets me everytime, when i edit it.
Version 1.0.5
Removed the "X Days from Now" option to fix this issue.
Reply With Quote
2 благодарности(ей) от:
Mr_Running, tommyxv
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 06:09 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.06732 seconds
  • Memory Usage 2,355KB
  • Queries Executed 28 (?)
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
  • (7)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (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_postinfo_query
  • fetch_postinfo
  • 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