Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Countdown (Forum, Sideblock, vBa CMPS, Multiple Countdowns) Details »
Countdown (Forum, Sideblock, vBa CMPS, Multiple Countdowns)
Mod Version: 1.0.4, by Gemma (Coder/Designer) Gemma is offline
Developer Last Online: Jul 2016 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (19 votes - 4.89 average) Installs: 146
Released: 12 Jul 2011 Last Update: 22 Oct 2011 Downloads: 867
Not Supported Template Edits Additional Files Re-usable Code  

Someone PM'd me last week asking for the code I use for my countdown sideblock. So here is the basic countdown (doesn't include the images/blurb that screenshots/demo show)

This countdown uses the users PC clock and calendar to count down to a time and date.

What is it?
A sideblock on your forum index to countdown to a specific date/event.

1. Upload the contents on the zip archive to your server. Keeping the file structure as is.

countdown/js/jquery-1.4.1.js
countdown/js/jquery.lwtCountdown-1.0.js
countdown/js/misc.js
countdown/style/main.css

Change the settings of the countdown/js folder to CHMOD 775

2. Go to AdminCP > Forums and Moderators > Forum Block Manager > Add Block

Title - Countdown
Description - whatever you want
Content Type - HTML
Content - <div></div>
Template to use - block_countdown

3. Go to AdminCP > Styles and Templates > Style Manager > Add New Template

Title - block_countdown

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change this part to set the countdown target date


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save the block.

4. Go to AdminCP > Style and Templates > Style Manager > StyleVars > forum_sidebar_width and change the width to atleast 270px

You can change the colour of the digits/text to suit your forum by changing references to #5C7099 in the main.css file

If you are using vBOptimise go to AdminCP > vBOptimise > Flush Cache

To have more than one countdown

Create a new template called block_countdown2


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Set the targetDate data and save

For reference if making more blocks - (jq('#countdownX').countDown({ and <div id="countdownX"> are used to call additional countdowns).

Create a new forum block in the same way as before but make the template to use: block_countdown2

To Display on vB Advanced CMPS - http://www.vbulletin.org/forum/showp...&postcount=122

To show multiple countdowns on forumhome (screenshots) - http://www.vbulletin.org/forum/showp...&postcount=158

If you want to add images/videos etc to your countdown all you need to do is add some basic code to the template. Search for </script><div> and after that you would add something like.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If you are upgrading from a previous version, upload the contents of the zip file and replace the template(s) you are using (ie block_countdown, block_countdown2, adv_portal_countdown etc). Set the targetDate.

History
1.0.4 - Reverted back to using jquery-1.4.1.js
1.0.3 - Now using jquery-1.6.1.min.js and added noConflict to script
1.0.2 - Cleaned up code, added instructions to zip. Also instruction within thread on how to make CMS widget or have more than one countdown.

If anyone wants to further develop any of my addons, you are free to do so.


Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	sideblock.jpg
Views:	2457
Size:	68.7 KB
ID:	130953   Click image for larger version

Name:	arcade_count.jpg
Views:	1304
Size:	137.3 KB
ID:	133705   Click image for larger version

Name:	count.jpg
Views:	1022
Size:	70.8 KB
ID:	133706   Click image for larger version

Name:	countdown2.jpg
Views:	1161
Size:	43.9 KB
ID:	133714  

Click image for larger version

Name:	countdowns.jpg
Views:	1233
Size:	78.4 KB
ID:	133751  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
vBulletin Forum Sideblocks Show Poll In Forum Sideblock Badshah93 vBulletin 4.x Add-ons 169 03 Apr 2017 07:27
vBulletin Forum Sideblocks Tinypic Uploader Forum SideBlock desi-boy vBulletin 4.x Add-ons 22 15 Oct 2015 11:49
vBulletin CMS Widgets IMDb Search Forum SideBlock desi-boy vBulletin 4.x Add-ons 8 19 Dec 2012 09:42
vBulletin Forum Sideblocks MegaUpload FileBOx Forum Sideblock desi-boy vBulletin 4.x Add-ons 9 15 Mar 2012 01:20
vBulletin Forum Sideblocks Imageshack Uploader Forum SideBlock desi-boy vBulletin 4.x Add-ons 3 22 Feb 2010 20:45

  #46  
Old 02 Aug 2011, 23:19
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by MagicTallGuy View Post
Small problem:
how do i make the widget appear on the main page of the CMS!
Did you see this post? http://www.vbulletin.org/forum/showp...1&postcount=19
__________________
Reply With Quote
  #47  
Old 03 Aug 2011, 03:59
MagicTallGuy MagicTallGuy is offline
 
Join Date: Jan 2010
yes, I believe that I followed those instructions properly, but the countdown is showing up inside some of the section widgets - not on the home page.
Reply With Quote
  #48  
Old 03 Aug 2011, 08:11
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Ah got you, you will need to add the widget to the 'Home' layout.

Go to AdminCP > vBulletin CMS > Layout Manager

Choose edit 'Home', add the countdown from the widget selections then drag it to where you want it on the grid layout. Save.
__________________
Reply With Quote
  #49  
Old 04 Aug 2011, 23:03
MagicTallGuy MagicTallGuy is offline
 
Join Date: Jan 2010
works perfect now - Thanks alot Gemma
Reply With Quote
  #50  
Old 05 Aug 2011, 05:02
westy543 westy543 is offline
 
Join Date: Apr 2011
Works fantastic, looks great on my forums.
Reply With Quote
  #51  
Old 05 Aug 2011, 10:46
K4GAP K4GAP is offline
 
Join Date: Mar 2008
In my admin cp under Styles & Templates, there is no selection to create new template.

I'm running 4.1.5
Reply With Quote
  #52  
Old 05 Aug 2011, 12:25
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by GaryT View Post
In my admin cp under Styles & Templates, there is no selection to create new template.

I'm running 4.1.5
Sorry GaryT, I missed a bit out

Go to AdminCP > Styles and Templates > Style Manager > Add New Template
__________________
Reply With Quote
  #53  
Old 19 Aug 2011, 19:38
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Real name: Daniel
Curious if this could be adapted to work with the poll forum block having the settings taken automatically from when the poll ends....

I'm using this one here. http://www.vbulletin.org/forum/showt...highlight=poll
__________________
ScaleMotorcars.com Large scale model building at its best. Check it out.
Reply With Quote
  #54  
Old 20 Aug 2011, 17:59
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by Scalemotorcars View Post
Curious if this could be adapted to work with the poll forum block having the settings taken automatically from when the poll ends....

I'm using this one here. http://www.vbulletin.org/forum/showt...highlight=poll
Sorry, not something I've looked at or considering.
__________________
Reply With Quote
  #55  
Old 21 Aug 2011, 12:53
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Real name: Daniel
Thanks Gemma. Ill put in a mod request. Maybe someone can figure it out.
__________________
ScaleMotorcars.com Large scale model building at its best. Check it out.
Reply With Quote
  #56  
Old 22 Aug 2011, 22:45
tidus78's Avatar
tidus78 tidus78 is offline
 
Join Date: Sep 2009
Hi Gemma.

Countdown is working on my 4.1.5. but not the content....
I would like to display an image on the countdown, but nothing appears by inserting the contents between the tags <div></div>
Reply With Quote
  #57  
Old 22 Aug 2011, 22:56
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by tidus78 View Post
Hi Gemma.

Countdown is working on my 4.1.5. but not the content....
I would like to display an image on the countdown, but nothing appears by inserting the contents between the tags <div></div>
Add it to the block_template after </script>

So you would have something like -


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Reply With Quote
  #58  
Old 22 Aug 2011, 23:22
tidus78's Avatar
tidus78 tidus78 is offline
 
Join Date: Sep 2009
Ok now it's working

Just another little question : I installed the second countdown, is it normal that line you see in the picture attached?

Reply With Quote
  #59  
Old 23 Aug 2011, 08:28
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by tidus78 View Post
Ok now it's working

Just another little question : I installed the second countdown, is it normal that line you see in the picture attached?

No it shouldn't have a line.

Try adding a <div> tag above you image code so it looks like


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Reply With Quote
  #60  
Old 23 Aug 2011, 10:58
tidus78's Avatar
tidus78 tidus78 is offline
 
Join Date: Sep 2009
It doesn't work
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:27.

Layout Options | Width: Wide Color: