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 2014 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (18 votes - 4.89 average) Installs: 143
Released: 12 Jul 2011 Last Update: 22 Oct 2011 Downloads: 796
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:	2192
Size:	68.7 KB
ID:	130953Click image for larger version

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

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

Name:	countdown2.jpg
Views:	1008
Size:	43.9 KB
ID:	133714Click image for larger version

Name:	countdowns.jpg
Views:	1069
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
Show Poll In Forum Sideblock Badshah93 vBulletin 4.x Add-ons 167 01 Jun 2014 22:01
Tinypic Uploader Forum SideBlock desi-boy vBulletin 4.x Add-ons 21 25 May 2014 15:48
IMDb Search Forum SideBlock desi-boy vBulletin 4.x Add-ons 8 19 Dec 2012 09:42
MegaUpload FileBOx Forum Sideblock desi-boy vBulletin 4.x Add-ons 9 15 Mar 2012 01:20
Imageshack Uploader Forum SideBlock desi-boy vBulletin 4.x Add-ons 3 22 Feb 2010 20:45

  #181  
Old 04 Mar 2012, 17:54
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by thecore762 View Post
Is it possible to add a countdown clock in a forum post?
Sorry, no.
__________________

Reply With Quote
  #182  
Old 04 May 2012, 13:19
Angle4cor Angle4cor is offline
 
Join Date: Sep 2011
After upgrading my forums to the newest, 4.1.12 version, my blocks with countdowns dissappeared. Any fix for that?

Thanks im advance
Reply With Quote
  #183  
Old 04 May 2012, 23:46
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Upgrading your forum shouldn't break anything

Are the template edits and files still in place and have you tried purging the block cache? (AdminCP > Forums & Moderators > Forum Block Manager)
__________________

Reply With Quote
  #184  
Old 05 May 2012, 09:22
Angle4cor Angle4cor is offline
 
Join Date: Sep 2011
Ok, fixed. I'm using different style now and I forgot about moving the block_countdown templates to the new one.
Reply With Quote
  #185  
Old 07 May 2012, 12:53
mgurain's Avatar
mgurain mgurain is offline
 
Join Date: Apr 2005
Real name: Mohammed Al-Gurain
Can this be supported ?
We need the date to be based on user's forum time (not his pc), can any body do it ?
Or there some one like this ?

Regards,,
Reply With Quote
  #186  
Old 21 May 2012, 18:13
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by mgurain View Post
Can this be supported ?
Sorry, I think I've supported this pretty well as time permits but I'm not looking at adding any more features to it.
__________________

Reply With Quote
  #187  
Old 24 May 2012, 04:49
ibrahimkoky ibrahimkoky is offline
 
Join Date: Apr 2012
Real name: Ibrahim
Gemma,, Still supporting this mod?

rad all posts tried to find a solution but can't
having the same problem as most guys here, the timer is zeros can't get it to work.

here is the time i set it to


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

Reply With Quote
  #188  
Old 24 May 2012, 15:41
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by ibrahimkoky View Post
Gemma,, Still supporting this mod?

rad all posts tried to find a solution but can't
having the same problem as most guys here, the timer is zeros can't get it to work.

here is the time i set it to


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Can you send me a link to your site so I can take a look?
__________________

Reply With Quote
  #189  
Old 24 May 2012, 17:30
ibrahimkoky ibrahimkoky is offline
 
Join Date: Apr 2012
Real name: Ibrahim
www.egytraderz.com
Reply With Quote
  #190  
Old 24 May 2012, 17:39
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by ibrahimkoky View Post
Remove this code from your template. That shouldn't be there.

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

Does it work now?
__________________


Last edited by Gemma : 24 May 2012 at 17:49.
Reply With Quote
  #191  
Old 24 May 2012, 18:05
ibrahimkoky ibrahimkoky is offline
 
Join Date: Apr 2012
Real name: Ibrahim
workinggggggggggggg

thanks a lot.
Reply With Quote
  #192  
Old 10 Jun 2012, 13:10
ricki09 ricki09 is offline
 
Join Date: Dec 2011
3. Go to AdminCP > Styles and Templates > Style Manager > Add New Template

Title - block_countdown

how to remove this Template now???
Reply With Quote
  #193  
Old 10 Jun 2012, 13:14
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Originally Posted by ricki09 View Post
3. Go to AdminCP > Styles and Templates > Style Manager > Add New Template

Title - block_countdown

how to remove this Template now???
AdminCP > Styles & Templates > Style Manager > Edit Templates

Find block_countdown, click on it and then select 'Revert' from the controls panel
__________________

Reply With Quote
  #194  
Old 13 Jun 2012, 11:03
ricki09 ricki09 is offline
 
Join Date: Dec 2011
Thanks its work!
Reply With Quote
  #195  
Old 29 Jun 2012, 13:00
JabirA JabirA is offline
 
Join Date: Feb 2009
Hi Gemma,

Is it possible to let it repeat the countdown? For exmple: Let it count down to every weekend automatically..?

Kind regards
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 05:21.

Layout Options | Width: Wide Color: