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 09-20-2011 12:30 PM

Looks like the css file is missing, did you upload the files correctly?

BlueCheri 09-20-2011 12:43 PM

Yes

Quote:

Originally Posted by Gemma (Post 2248194)
Looks like the css file is missing, did you upload the files correctly?


Gemma 09-20-2011 12:44 PM

Can you send me a link to your site?

wally07 09-23-2011 03:23 AM

Hi Gemma,

the countdown works perfect!

Is there any way to make it timezone specific?

Gemma 09-23-2011 04:46 PM

Quote:

Originally Posted by wally07 (Post 2249146)
Hi Gemma,

the countdown works perfect!

Is there any way to make it timezone specific?

Sorry, I haven't been able to make it timezone specific but this might be helpful, instead of using the targetDate command use targetOffset. So using the example code below, the countdown would be set to expire for everyone in 5 days, 4 minutes and 15 seconds (from when going live) - not sure if that would be helpful?

Code:

<script type="text/javascript">
// Set the Countdown
jQuery(document).ready(function() {
$('#countdown').countDown({
targetOffset: {
'day': 5,
'month': 0,
'year': 0,
'hour': 0,
'min': 4,
'sec': 15
}
});
});
</script>

If you want to use that method of countdown just replace this part of the code

Code:

<script type="text/javascript">
jQuery(document).ready(function() {
    $('#countdown').countDown({
        targetDate: {
            'day':      19,
            'month':    7,
            'year':    2011,
            'hour':    23,
            'min':      59,
            'sec':    59,
            }
    });
});
</script>

And set the countdown to suit your needs.

Savage Circuits 09-23-2011 10:28 PM

Sadly I can't get the widget to even show up in the CMS. I have several custom widgets though most aren't used all the time. When I add this one no frame even shows up. That in itself kind of concerns me. Any ideas why it wouldn't even show up? Running 4.1.5

Savage Circuits 09-23-2011 10:36 PM

I found that if I just use the default name for the widget the frame shows up, but not the icon and I see, "{vb:raw widget_title}" above the counters which all read 00. But that proves there's something wrong in the other widget which prevents it from even being used. I have all three .js files the CHMOD of 775 and the css files all where they're supposed to go.

FYI, if you just download the zip in post#19 you do not get all the files needed it seems.

Gemma 09-23-2011 10:58 PM

Quote:

Originally Posted by Savage Circuits (Post 2249430)
FYI, if you just download the zip in post#19 you do not get all the files needed it seems.

Yes, I'm aware of that but since this isn't a CMS widget I never added them to the OP zip. I linked to them in case anyone wanted to adapt it to be a CMS widget and because someone a few posts above #19 requested it.

As for your widget not showing up, have you created the vbcms_widget_countdown template? You also need to add the widget to your grid layout and you may need to clear the CMS cache.

Savage Circuits 09-23-2011 11:39 PM

Apologies...I did not create the template. I pasted the code into the widget. =( Okay, we'll try again.

Savage Circuits 09-24-2011 12:17 AM

Okay, I got it working! Thanks for all your help!


All times are GMT. The time now is 12:52 PM.

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.01334 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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