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
  #72  
Old 10-16-2014, 03:04 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 jasff View Post
Thanks midnz,

Yes, the height is what I can't get to adjust. I wanted to know where to get into the coding to adjust.

I saw Ba'al where he mentioned changing the height in coding.
I don't know where to access that.

I'll still try and play around in the paddings, but seems to cut the numbers off and the cell height doesn't expand.
1. AdminCP > 2. Styles & Templates > 3. Search in templates > 4. ... type... block_VC_Countdown ... and press the "Find" button > 5. ... double click on that result to bring the template in to view. You can make edits to the font sizes in there.


If you screw it up you can depress the "Revert" button to reset that template back to the original one. You'll find that "Revert" button at 4. in the above directions. Good luck
Reply With Quote
  #73  
Old 10-18-2014, 08:23 PM
jasff jasff is offline
 
Join Date: Oct 2011
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you! I found where to change the box to 220.

Next questions is how to allign and adjust font? Here are the couple things I want to do:

1. When I expand the box from 80 to 220, the text is top center alligned. Where and how can I center the text in the coding?

2. I want to bold the font so that it stands out more. Possible to change the font size? I would need specifics if possible on how to do this.

This would be a great start. Thanks again micnz.
Reply With Quote
  #74  
Old 10-20-2014, 11:48 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 jasff View Post
1. When I expand the box from 80 to 220, the text is top center alligned. Where and how can I center the text in the coding?
The following HTML code is just one part of the CSS code (code within the STYLE tags) that affects one part of the Counter. You'll find the below piece of CSS code between the STYLE tags within the HEAD of the document.
HTML Code:
  #period {
    font-size: 10px;
    color: {vb:raw vboptions.vccountdown_period_fontcolour};
    font-family: Arial,sans-serif;
    font-weight: normal;
    letter-spacing: 0;
    margin-right: 1px;
    text-transform: uppercase;
    text-align: center;
}
Check the text-align: center; part. That allows you to center any text where you include id="period" in the coding between the BODY tags.

Using the CSS code above you can understand what part of the Countdown Timer it affects by looking at the DIV tags to find the code that has <div id="period" included.
NB: See the beginning of the above CSS code that says #period { ? That's your clue.

So, using the example above you can find the following part of the Countdown Timer that it affects. Whatever is in the CSS code above affects the HTML code below because it begins with <div id="period"

HTML Code:
<div id="period">days&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hrs&nbsp;&nbsp;&nbsp;&nbsp; mins&nbsp;&nbsp;&nbsp; secs&nbsp;</div>
Using that logic you can find the DIV that you want to affect (<div id="name") and look in between the STYLE tags for the CSS code that begins with that same #name or .name and then edit, delete or add to that CSS code to change what you want.

Quote:
Originally Posted by jasff View Post
2. I want to bold the font so that it stands out more. Possible to change the font size? I would need specifics if possible on how to do this.
Look again in the CSS code for the following:
font-size: 10px; (increase or decrease the number 10 to make your text bigger or smaller)

font-weight: bold; (add this line to the CSS code that relates to the <div> that you want to affect by making all text bold)
Reply With Quote
  #75  
Old 07-09-2015, 11:44 PM
mapleleaffans's Avatar
mapleleaffans mapleleaffans is offline
 
Join Date: Apr 2011
Location: Toronto, ON Canada
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod! I was thinking about adding something like this for a bit! Thank you midnz!
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 12:57 AM.


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.04504 seconds
  • Memory Usage 2,286KB
  • Queries Executed 22 (?)
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
  • (2)bbcode_html
  • (3)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
  • (5)post_thanks_box
  • (2)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (3)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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