vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   vBulletin Forum Sideblocks - Countdown (Forum, Sideblock, vBa CMPS, Multiple Countdowns) (https://vborg.vbsupport.ru/showthread.php?t=266689)

Gemma 12-19-2011 10:57 PM

Updated the demo link in first post.

I've also tested this using the latest jquery and didn't run into any problems running either a single countdown or multiple countdowns.

If you want to run it with the latest jquery replace this part of the template edit:

Code:

<script language="Javascript" type="text/javascript" src="clientscript/jquery/jquery-1.4.4.min.js"></script>
with this:
Code:

<script language="Javascript" type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.js"></script>

LoveStream 12-20-2011 05:08 AM

Hello. good idea.

I have a question.
Can I use this for COUNTUP not countdown? Any idea?

Gemma 12-20-2011 09:22 AM

Quote:

Originally Posted by LoveStream (Post 2279299)
Hello. good idea.

I have a question.
Can I use this for COUNTUP not countdown? Any idea?

No, sorry.

Poker Face 12-26-2011 02:25 AM

Installed 4.1.8 CMS Widget... Thanks!

Quote:

Originally Posted by LoveStream (Post 2279299)
Hello. good idea.

I have a question.
Can I use this for COUNTUP not countdown? Any idea?

I would be very interested in this, as well!

I’d like to run one “up” and one “down” and at the same time, in widgets, on the CMS.

Gemma 12-30-2011 07:51 PM

Quote:

Originally Posted by Poker Face (Post 2281012)
Installed 4.1.8 CMS Widget... Thanks!

I would be very interested in this, as well!

I?d like to run one ?up? and one ?down? and at the same time, in widgets, on the CMS.

What would you run a count up timer for? :erm:

Poker Face 01-02-2012 02:42 PM

Quote:

Originally Posted by Gemma (Post 2282311)
What would you run a count up timer for? :erm:

To bring attention to Extended Delay(s) on matters of the upmost importance.

macrocamaleon 01-10-2012 12:11 PM

Working great on 4.1.9

Really thanks for share !!!!

piko 01-11-2012 08:58 PM

This mod is cool. Great work.

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

Note: If not work, change the settings of the countdown folder to CHMOD 775

The mod this is installed in foro.mediotiempo.com

Working on vB 4.1.9

Good bye.

1320Nation 02-10-2012 02:44 AM

Gemma, I sold my old site and built a new one. Could you please direct me to where I can find directions on adding a image to the countdown as well as a small youtube player.

And if you are able to do that, would you mind sending me a PM explaining how much time might be involved in turning this mod into a plugin with some added features. I have a on going need for the use of this mod and I may be interested in paying you to do the above mentioned. Thanks!

Gemma 02-10-2012 05:10 PM

Quote:

Originally Posted by psychobike (Post 2298111)
Gemma, I sold my old site and built a new one. Could you please direct me to where I can find directions on adding a image to the countdown as well as a small youtube player.

After </script><div> you would want to add something like this

Code:

<img alt="" title="" src="URL TO YOUR IMAGE" width="150" height="225"><br/><br/>
<iframe width="240" height="160" src="http://www.youtube.com/embed/n7EpCILxKp4" frameborder="0" allowfullscreen></iframe><br/><br/>
</div>

Quote:

Originally Posted by psychobike (Post 2298111)
And if you are able to do that, would you mind sending me a PM explaining how much time might be involved in turning this mod into a plugin with some added features. I have a on going need for the use of this mod and I may be interested in paying you to do the above mentioned. Thanks!

Sorry, this isn't something I'm looking at doing. On my old site I had 9 countdowns running and it would have been near impossible to use plugins to produce the effects I wanted. I think it gives great freedom as it is and that is why I have left it as template edits.

Also, I'm not long out of hospital and I'm not looking at doing any coding any time soon

However, anyone is free to use the code and make a plugin/product so you might have some luck by posting in the relevant request forums

cc10 02-11-2012 12:23 AM

1 Attachment(s)
Having a bit of a problem with this

when we had the sideblock it was right and counted down correctly, as you can see from the screenshot its now counting down wrong

any ideas as the code is set right as it should be, theres not 88days in a week for instance :eek:

1320Nation 02-11-2012 04:01 AM

Gemma, I appreciate your help. You have been great with the support you have given me each time I have needed it. I hope you are ok I saw where you mentioned of not being long out of the hospital. I installed the countdown using the instruction from reply #122 since I have VBAdvanced. However, in order to get it to work I had to search a lot to find the needed info. Changing the 1st line to read the 1.4.1 jquery.

Code:

<script language="Javascript" type="text/javascript" src="countdown/js/jquery-1.6.1.min.js"></script>
Would there be any way to put all these necessary additions together? Like the image info you just provided for me.

Either way thanks for your help!

Gemma 02-11-2012 09:19 AM

Quote:

Originally Posted by cc10 (Post 2298431)
Having a bit of a problem with this

when we had the sideblock it was right and counted down correctly, as you can see from the screenshot its now counting down wrong

any ideas as the code is set right as it should be, theres not 88days in a week for instance :eek:

Can you send me a link to your site so I can look at the code?

Quote:

Originally Posted by psychobike (Post 2298478)
Gemma, I appreciate your help. You have been great with the support you have given me each time I have needed it. I hope you are ok I saw where you mentioned of not being long out of the hospital. I installed the countdown using the instruction from reply #122 since I have VBAdvanced. However, in order to get it to work I had to search a lot to find the needed info. Changing the 1st line to read the 1.4.1 jquery.

Code:

<script language="Javascript" type="text/javascript" src="countdown/js/jquery-1.6.1.min.js"></script>
Would there be any way to put all these necessary additions together? Like the image info you just provided for me.

Either way thanks for your help!

Sorry, I must have overlooked editing that post when I reverted back to using jquery-1.4.1 :o

cc10 02-11-2012 02:00 PM

Quote:

Originally Posted by Gemma (Post 2298509)
Can you send me a link to your site so I can look at the code?

There you go gemma, thanks

http://www.thinkingcarptackle.co.uk/forum.php

Gemma 02-11-2012 02:14 PM

Ok, you've got omitWeeks set as true.

Do you want to show the number of weeks or remove the weeks and just show it as days, hours, minutes and seconds?

cc10 02-11-2012 03:18 PM

Quote:

Originally Posted by Gemma (Post 2298564)
Ok, you've got omitWeeks set as true.

Do you want to show the number of weeks or remove the weeks and just show it as days, hours, minutes and seconds?

I would like it to show, weeks days hours mins secs.

Gemma 02-11-2012 03:33 PM

Quote:

Originally Posted by cc10 (Post 2298588)
I would like it to show, weeks days hours mins secs.

Changing this part of the code omitWeeks: true to omitWeeks: false should fix your problem

For reference if you wanted to remove the weeks part entirely you would leave it set at true and then would need to replace this part of the code

Code:

<div class="dash first weeks_dash">
                <span class="dash_title">Weeks</span>
                <div class="digit">0</div>
                <div class="digit">0</div>
            </div>
            <div class="dash days_dash">
                <span class="dash_title">Days</span>
                <div class="digit">0</div>
                <div class="digit">0</div>
            </div>

With this

Code:

<div class="dash first days_dash">
                <span class="dash_title">Days</span>
                <div class="digit">0</div>
                <div class="digit">0</div>
            </div>

That would remove the WEEKS completely

cc10 02-11-2012 03:38 PM

Quote:

Originally Posted by Gemma (Post 2298594)
Changing this part of the code omitWeeks: true to omitWeeks: false should fix your problem


Sorted, thanks gemma ;) :up:

Gemma 02-14-2012 11:24 AM

Quote:

Originally Posted by cc10 (Post 2298597)
Sorted, thanks gemma ;) :up:

Your welcome :)

thecore762 03-04-2012 06:54 AM

Is it possible to add a countdown clock in a forum post?

Gemma 03-04-2012 05:54 PM

Quote:

Originally Posted by thecore762 (Post 2305967)
Is it possible to add a countdown clock in a forum post?

Sorry, no.

Angle4cor 05-04-2012 12:19 PM

After upgrading my forums to the newest, 4.1.12 version, my blocks with countdowns dissappeared. Any fix for that?

Thanks im advance

Gemma 05-04-2012 10:46 PM

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)

Angle4cor 05-05-2012 08:22 AM

Ok, fixed. I'm using different style now and I forgot about moving the block_countdown templates to the new one.

mgurain 05-07-2012 11:53 AM

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,,

Gemma 05-21-2012 05:13 PM

Quote:

Originally Posted by mgurain (Post 2327034)
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.

ibrahimkoky 05-24-2012 03:49 AM

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

Code:

<script type="text/javascript">
var jq=$.noConflict();
jq(document).ready(function() {
jq('#countdown').countDown({
        targetDate: {
            'day':      12,
            'month':    09,
            'year':    2012,
            'hour':    23,
            'min':      08,
            'sec':    05,
            }
    });
});
</script>


Gemma 05-24-2012 02:41 PM

Quote:

Originally Posted by ibrahimkoky (Post 2332200)
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

Code:

<script type="text/javascript">
var jq=$.noConflict();
jq(document).ready(function() {
jq('#countdown').countDown({
        targetDate: {
            'day':      12,
            'month':    09,
            'year':    2012,
            'hour':    23,
            'min':      08,
            'sec':    05,
            }
    });
});
</script>


Can you send me a link to your site so I can take a look?

ibrahimkoky 05-24-2012 04:30 PM

<a href="http://www.egytraderz.com" target="_blank">www.egytraderz.com</a>

Gemma 05-24-2012 04:39 PM

Quote:

Originally Posted by ibrahimkoky (Post 2332377)

Remove this code from your template. That shouldn't be there.
Code:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
Does it work now?

ibrahimkoky 05-24-2012 05:05 PM

workinggggggggggggg

thanks a lot. :up:

ricki09 06-10-2012 12:10 PM

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

Title - block_countdown

how to remove this Template now???

Gemma 06-10-2012 12:14 PM

Quote:

Originally Posted by ricki09 (Post 2338415)
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

ricki09 06-13-2012 10:03 AM

Thanks its work!

JabirA 06-29-2012 12:00 PM

Hi Gemma,

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

Kind regards

mgurain 06-29-2012 12:31 PM

Hi,
Could this good mod be phrased please ?

espkaruna 07-03-2012 07:20 AM

This works great in Firefox (13.0.1) but in Google Chrome and Explorer the countdown just displays a bunch of 00's I really could care less if it works right in Explorer, but finding a way to make this work in Chrome would be cool ;)

JabirA 07-03-2012 07:52 AM

It works great in Google chrome (last version)

Gemma 07-03-2012 10:44 AM

Quote:

Originally Posted by espkaruna (Post 2344695)
This works great in Firefox (13.0.1) but in Google Chrome and Explorer the countdown just displays a bunch of 00's I really could care less if it works right in Explorer, but finding a way to make this work in Chrome would be cool ;)

Quote:

Originally Posted by JabirA (Post 2344701)
It works great in Google chrome (last version)

Works fine in Firefox right up to 14.0. It should also work fine in Google Chrome (tested up to version 20.0.1132.47), the latest version of Opera, IE9 and Safari 5.1.7

espkaruna 07-03-2012 12:58 PM

Quote:

Originally Posted by Gemma (Post 2344743)
Works fine in Firefox right up to 14.0. It should also work fine in Google Chrome (tested up to version 20.0.1132.47), the latest version of Opera, IE9 and Safari 5.1.7


Ok, well I should rephrase that to say that on my site it is working on Firefox but not on Google Chrome (20.0.1132.47) or IE 9. I've tested it out with the above listed versions, and I have had other users tell me the same thing. This is on vbulletin 4.2.0 suite, so I don't know if another script that I am running is interfering with the countdown on chrome and IE or what. I do have a pretty heavily customized forum.

**edit**

Although I just tried adding this to my default style, and the same thing, works great in Firefox, not in the other two.


All times are GMT. The time now is 05:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01604 seconds
  • Memory Usage 1,847KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete