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 07-14-2011 07:55 PM

@sadaar

Can you PM me a link to your site?

keithyboy1 07-15-2011 02:17 PM

very nice,thank you for this.worked first time no probs :)

weave 07-15-2011 04:48 PM

Tried on a vanilla install and all I get is 00000 too.

Will mess with it more later

Gleedo 07-17-2011 02:23 PM

Very nice mod Gemma.

Is it possible to have more than one countdown in the forum sidebar? I tried creating two, and created another template 'block_countdown2' which my 2nd block is set to use in 'Template to Use', but only one of the countdowns works.

Any thoughts appreciated. :)

Gemma 07-17-2011 02:30 PM

1 Attachment(s)
I've not tried but I think the scripts would clash. I'll have a play around later :)

edit: Not as difificult as I thought.

Create a new template called block_countdown2
Code:

<li>
        <div class="block smaller">
                <div class="blocksubhead">
                        <a class="collapse" id="collapse_block_html_{vb:raw blockinfo.blockid}" href="{vb:raw relpath}#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_html_{vb:raw blockinfo.blockid}"/></a>
                        <span class="blocktitle">{vb:raw blockinfo.title}</span>
                </div>
                <div class="widget_content blockbody floatcontainer">
                <div id="block_html_{vb:raw blockinfo.blockid}" class="blockrow">
<script language="Javascript" type="text/javascript" src="countdown/js/jquery-1.4.1.js"></script>
<script language="Javascript" type="text/javascript" src="countdown/js/jquery.lwtCountdown-1.0.js"></script>
<script language="Javascript" type="text/javascript" src="countdown/js/misc.js"></script>
<link rel="Stylesheet" type="text/css" href="countdown/style/main.css"></link>
<script type="text/javascript">
jQuery(document).ready(function() {
    $('#countdown2').countDown({
        targetDate: {
            'day':      00,
            'month':    00,
            'year':    0000,
            'hour':    00,
            'min':      00,
            'sec':    00,
                        'utc':                true
        }
    });
});
</script>
<div>
                <div id="countdown2">
                        <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>
                        <div class="dash hours_dash">
                                <span class="dash_title">Hrs</span>
                                <div class="digit">0</div>
                                <div class="digit">0</div>
                        </div>
                        <div class="dash minutes_dash">
                                <span class="dash_title">Mins</span>
                                <div class="digit">0</div>
                                <div class="digit">0</div>
                        </div>
                        <div class="dash seconds_dash">
                                <span class="dash_title">Secs</span>
                                <div class="digit">0</div>
                                <div class="digit">0</div>
                        </div>
                </div>
</div>
</div>
                </div>
        </div>
        <div class="underblock"></div>
</li>

Set the targetDate data and save

($('#countdown2').countDown({ and <div id="countdown2"> are used to call the second countdown).

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

Macgiber 07-17-2011 06:42 PM

oh the reason the reason is that zeros out only when editing the date the current staff oh oh forum member city.

Gleedo 07-17-2011 07:08 PM

Quote:

Originally Posted by Gemma (Post 2221486)
edit: Not as difificult as I thought.

Thank you very much Gemma - great mod, great support :)

Gemma 07-18-2011 03:05 PM

Quote:

Originally Posted by Macgiber (Post 2221562)
oh the reason the reason is that zeros out only when editing the date the current staff oh oh forum member city.

Sorry, that makes no sense to me :erm:

thetgc 07-23-2011 03:03 PM

I cant seem to get this working either. Even after trying everything that has been posted :(

Gemma 07-23-2011 07:21 PM

Sorry for the delay, was at work :(

Not really sure why it isn't working for some, only thing I can think of is a conflict somewhere. Try removing this from the block_countdown template and add it to your headinclude or footer (footer is my own preference)

Code:

<script language="Javascript" type="text/javascript" src="countdown/js/jquery-1.4.1.js"></script>
<script language="Javascript" type="text/javascript" src="countdown/js/jquery.lwtCountdown-1.0.js"></script>
<script language="Javascript" type="text/javascript" src="countdown/js/misc.js"></script>
<link rel="Stylesheet" type="text/css" href="countdown/style/main.css"></link>

If anyone wants to PM me a link to their site I'll have a look, it is hard to try find a solution because it has worked on every site I've installed it on :confused:


All times are GMT. The time now is 05:00 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.01661 seconds
  • Memory Usage 1,754KB
  • 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
  • (2)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