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)

1320Nation 10-20-2011 10:24 PM

Ok so I tried adding the code in for the Countdown Complete message shown in thread #126 and it would not display. Does my setup need something additional, or could it be something I'm not doing right?

Gemma 10-21-2011 06:21 PM

1 Attachment(s)
Quote:

Originally Posted by psychobike (Post 2259557)
Ok so I tried adding the code in for the Countdown Complete message shown in thread #126 and it would not display. Does my setup need something additional, or could it be something I'm not doing right?

Sorry, I forgot to change a bit of the code. It should be

Code:

<script type="text/javascript">
var jq=$.noConflict();
jq(document).ready(function() {
jq('#countdown').countDown({
        targetDate: {
            'day':      00,
            'month':    00,
            'year':    0000,
            'hour':    00,
            'min':      00,
            'sec':    00
          },
// onComplete function
        onComplete: function() {
jq('#complete_info_message').slideDown();
}
    });
});
</script>

Also, it looks like the message was 'spilling out' of the module block so I've moved the code around, the message will now appear above the countdown (only for vB Advanced module)

Find:
Code:

<div id="countdown">
Above that add:
Code:

<div class="info_message" id="complete_info_message" style="display: none;">
                Countdown complete
            </div>
<img src="clear.gif" height="10" /><br />

I'm not familiar with vB Advanced but if you're still having problems let me know and I'll figure it out :)

1320Nation 10-22-2011 02:19 PM

I followed instructions in thread #133 and had no luck. It gave me all 00's and I there wasn't any countdown complete message showing either.

Gemma 10-22-2011 02:53 PM

Hmmm, maybe you don't have the jquery-1.6.1.min.js file - I think I'm going to revert back to using 1.4.1 anyway.

Try changing this line back to the original one

Code:

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

<script language="Javascript" type="text/javascript" src="countdown/js/jquery-1.4.1.js"></script>
If that doesn't help, PM me a link to your site and I'll have a look.

1320Nation 10-22-2011 07:02 PM

Not sure what I did, or didn't do, but I did manage to get the mod working proper even with the jquery-1.6.1.min.js file. Please feel free to edit and remove any unnecessary post clutter so that others wont get confused that may want to add this to their similar setup.

Thanks again for the great tech support!

Btw, where's that paypal address so I can send a donation. PM it to me if you prefer to.

Gemma 10-22-2011 07:27 PM

Quote:

Originally Posted by psychobike (Post 2260267)
Not sure what I did, or didn't do, but I did manage to get the mod working proper even with the jquery-1.6.1.min.js file. Please feel free to edit and remove any unnecessary post clutter so that others wont get confused that may want to add this to their similar setup.

Thanks again for the great tech support!

Btw, where's that paypal address so I can send a donation. PM it to me if you prefer to.

Cool, glad you've got it working. I've actually reverted back to using jquery-1.4.1.js, I noticed some of the digits were disappearing (but that might be because I've got 8 different counters running for demo purposes :o), if you notice digits disappearing simply change the from clientscript/jquery/jquery-1.6.1.min.js to countdown/js/jquery-1.4.1.js (no need to upgrade to v1.0.4 otherwise)

No need for a donation, the things I release are things I think people may find a use for, I've usually started them in the first place because i) I want it and ii) I want to learn something new and if someone has a problem then helping fix it enhances my learning :)

1320Nation 10-23-2011 03:10 PM

Well no doubt you are in this with a good attitude and outlook on what is going on. Thanks again for the great tech support!

djpatch 10-26-2011 11:43 AM

Sorry for my bad english.
I have installed locally your mod to try,but the countdown will not start.How can I fix, I vb4.1.7 ?

1320Nation 10-26-2011 02:25 PM

Quote:

Originally Posted by djpatch (Post 2261684)
Sorry for my bad english.
I have installed locally your mod to try,but the countdown will not start.How can I fix, I vb4.1.7 ?

My guess would be you forgot to enter the info in the code below that tells your countdown when it should expire? Btw, these dates and such need to be Your info and not what I have shown here below.

Code:

'day':      19,
            'month':    7,
            'year':    2011,
            'hour':    23,
            'min':      59,
            'sec':    59,


djpatch 10-26-2011 04:01 PM

This is my ForumHome
Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
        {vb:raw headinclude}
        <title>{vb:raw vboptions.bbtitle}</title>

        <vb:if condition="$vboptions['storecssasfile']">
        {vb:cssfile forumhome-rollup.css}
        <vb:else />
        {vb:cssfile forumbits.css,forumhome.css,widgets.css,sidebar.css,options.css,tagcloud.css}
        </vb:if>

        <!--[if lt IE 8]>{vb:cssfile forumbits-ie.css,sidebar-ie.css,options-ie.css}<![endif]-->
        <vb:if condition="$show['sidebar']">
        <script type="text/javascript" src="{vb:stylevar yuipath}/animation/animation-min.js?v={vb:raw vboptions.simpleversion}"></script>
        <script type="text/javascript">
                var sidebar_align = '{vb:raw show.sidebarposition}';
                var content_container_margin = parseInt('{vb:math {vb:stylevar forum_sidebar_width}+{vb:math {vb:stylevar padding}*2}}');
                var sidebar_width = parseInt('{vb:stylevar forum_sidebar_width}');
        </script>
        <script type="text/javascript" src="{vb:raw vboptions.bburl}/clientscript/vbulletin-sidebar.js?v={vb:raw vboptions.simpleversion}"></script>
        </vb:if>
        {vb:raw headinclude_bottom}
</head>
        <body>

        {vb:raw header}

        {vb:raw navbar}

        <div id="pagetitle">
                <h1>{vb:raw vboptions.bbtitle}</h1>
                <p id="welcomemessage" class="description">{vb:rawphrase welcome_to_the_x, {vb:raw vboptions.bbtitle}}</p>
        </div>

        <vb:if condition="$show['sidebar']">
        <div id="content_container"<vb:if condition="$show['sidebarposition'] == 'left'"> class="contentright"</vb:if>>
                <div id="content">
        </vb:if>
        <!-- main -->
        {vb:raw template_hook.forumhome_above_forums}
        <ol id="forums" class="floatcontainer">
                {vb:raw forumbits}
        </ol>
        {vb:raw template_hook.forumhome_below_forums}
        <!-- /main -->

        <div class="navlinks">
        <a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" rel="nofollow">{vb:rawphrase mark_forums_read}</a>
        <vb:if condition="$vboptions['forumleaders']">|
        <a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                <vb:if condition="$vb_suite_installed">
                        {vb:rawphrase view_site_leaders}
                <vb:else />
                        {vb:rawphrase view_forum_leaders}
                </vb:if>
        </a></vb:if>
        </div>
        {vb:raw forumhome_markread_script}

        {vb:raw ad_location.board_after_forums}

        <!-- what's going on box -->
<br />
<div id="wgo" class="collapse wgo_block block">
        <center><h2 class="blockhead">CountDown</h2></center>
        <div class="blockbody formcontrols floatcontainer">
<table align="center"><center>
<tr>
<td class="blocksubhead" align="center" valign="top">
<center>
<div><li>
    <div class="block smaller">
    <div class="widget_content blockbody floatcontainer">
        <div id="block_html_{vb:raw blockinfo.blockid}" class="blockrow">
<script type="text/javascript">
var jq=$.noConflict();
jq(document).ready(function() {
jq('#countdown4').countDown({
        targetDate: {
            'day':      10,
            'month':    01,
            'year':    2012,
            'hour':    10,
            'min':      10,
            'sec':    10,
          }

    });
});

</script>
<div align="center"><img src="http://*************************" alt="Image Title" width="150px" height="90px" /></div>
<span class="digit">Titolo del Countdown</span><br/><br/></div>
<div>
     
        <div id="countdown4">
            <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></div>
    </td></div>
</center>
</td>

<td class="blocksubhead" align="{vb:stylevar.left}" valign="top">
<center>
<div><li>
    <div class="block smaller">
        <div class="widget_content blockbody floatcontainer">
        <div id="block_html_{vb:raw blockinfo.blockid}" class="blockrow">
<script type="text/javascript">
var jq=$.noConflict();
jq(document).ready(function() {
jq('#countdown3').countDown({
        targetDate: {
            'day':      10,
            'month':    10,
            'year':    2012,
            'hour':    10,
            'min':      10,
            'sec':    10,
          }
    });
});

</script>
<div align="center"><img src="http*********" alt="Image Title" width="150px" height="90px" /></div>
<span class="digit">Titolo del Countdown</span><br/><br/></div>
<div>
       
        <div id="countdown5">
            <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></div>
    </td></div>
</center>
</td>
<td class="blocksubhead" align="{vb:stylevar.left}" valign="top">
<center>
<div><li>
    <div class="block smaller">
        <div class="widget_content blockbody floatcontainer">
        <div id="block_html_{vb:raw blockinfo.blockid}" class="blockrow">
<script type="text/javascript">
var jq=$.noConflict();
jq(document).ready(function() {
jq('#countdown6').countDown({
        targetDate: {
            'day':      10,
            'month':    10,
            'year':    2012,
            'hour':    10,
            'min':      10,
            'sec':    10,
          }
    });
});

</script>
 <div align="center"><img src="http:********************" alt="Image Title" width="150px" height="90px" /><div>
<span class="digit">Titolo del Countdown</span><br/><br/></div>
</div>     
        <div id="countdown6">
            <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></div>
    </td></div>
</center>
</td>
<tr>
</tr>
</table></div></div>
<br />
<div id="wgo" class="collapse wgo_block block">
                <h2 class="blockhead">{vb:rawphrase whats_going_on}</h2>
                <div class="blockbody formcontrols floatcontainer">
                        {vb:raw template_hook.forumhome_wgo_pos1}
                        <vb:if condition="$show['loggedinusers']">
                        <!-- logged-in users -->
                        <div id="wgo_onlineusers" class="wgo_subblock section">
                                <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/users_online.png" alt="{vb:rawphrase currently_active_users}" />{vb:rawphrase currently_active_users}</h3>
                                <div>
                                        <p>{vb:rawphrase there_are_x_y_online_link, {vb:raw totalonline}, {vb:raw session.sessionurl_q}} <span class="shade">{vb:rawphrase x_members_and_y_guests, {vb:raw numberregistered}, {vb:raw numberguest}}</span></p>
                                        <p>{vb:rawphrase most_users_ever_online_was_x_y_at_z, {vb:raw recordusers}, {vb:raw recorddate}, {vb:raw recordtime}}</p>
                                        <vb:if condition="$activeusers">
                                        <ol class="commalist" id="wgo_onlineusers_list">
                                                <vb:each from="activeusers" value="loggedin">
                                                        <li> {vb:stylevar dirmark}<a class="username" href="{vb:link member, {vb:raw loggedin}}">{vb:raw loggedin.musername}</a>{vb:raw loggedin.invisiblemark}{vb:raw loggedin.buddymark}</li>
                                                </vb:each>
                                        </ol>
                                        </vb:if>
                                </div>
                        </div>
                        <!-- end logged-in users -->
                        </vb:if>
                        {vb:raw template_hook.forumhome_wgo_pos2}
                        <vb:if condition="$show['upcomingevents']">
                        <div id="wgo_events" class="wgo_subblock section">
                                <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/event.png" alt="{vb:rawphrase todays_events}" /><vb:if condition="$show['todaysevents']">{vb:rawphrase todays_events}<vb:else />{vb:rawphrase upcoming_events_for_the_next_x_days, {vb:raw vboptions.showevents}}</vb:if></h3>
                                <ol>
                                        {vb:raw upcomingevents}
                                </ol>
                        </div>
                        </vb:if>
                        {vb:raw template_hook.forumhome_wgo_pos3}
                        <vb:if condition="$show['birthdays']">
                        <!-- today's birthdays -->
                        <div id="wgo_birthdays" class="wgo_subblock section">
                                <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/birthday.png" alt="{vb:rawphrase todays_birthdays}" />{vb:rawphrase todays_birthdays}</h3>
                                <ol class="commalist">
                                        {vb:raw birthdays}
                                </ol>
                        </div>
                        <!-- end today's birthdays -->
                        </vb:if>
                        {vb:raw template_hook.forumhome_wgo_pos4}
                        <div id="wgo_stats" class="wgo_subblock section">
                                <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/forum_stats.png" alt="{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}" />{vb:rawphrase x_statistics, {vb:raw vboptions.bbtitle}}</h3>
                                <div>
                                        <dl>
                                                <dt>{vb:rawphrase threads}</dt>
                                                        <dd>{vb:raw totalthreads}</dd>
                                                <dt>{vb:rawphrase posts}</dt>
                                                        <dd>{vb:raw totalposts}</dd>
                                                <dt>{vb:rawphrase members}</dt>
                                                        <dd>{vb:raw numbermembers}</dd>
                                                <vb:if condition="$show['activemembers']">
                                                <dt>{vb:rawphrase active_members}</dt>
                                                        <dd>{vb:raw activemembers}</dd>
                                                </vb:if>
                                        </dl>
                                        <p>{vb:rawphrase welcome_to_our_newest_member_x, {vb:link member, {vb:raw newuserinfo}}, {vb:raw newuserinfo.username}}</p>
                                        {vb:raw template_hook.forumhome_wgo_stats}
                                </div>
                        </div>
                        <div id="wgo_legend" class="wgo_subblock section">
                                <h3 class="blocksubhead"><img src="{vb:stylevar imgdir_misc}/legend.png" alt="{vb:rawphrase icon_legend}" />{vb:rawphrase icon_legend}</h3>
                                <div>
                                        <dl id="icon_legends" class="icon_legends">
                                                <dt><img src="{vb:stylevar imgdir_statusicon}/forum_new-16.png" alt="{vb:rawphrase new_posts_forum}" /></dt><dd>{vb:rawphrase new_posts_forum}</dd>
                                                <dt><img src="{vb:stylevar imgdir_statusicon}/forum_old-16.png" alt="{vb:rawphrase no_new_posts_forum}" /></dt><dd>{vb:rawphrase no_new_posts_forum}</dd>
                                                <vb:if condition="$vboptions['showlocks']"><dt><img src="{vb:stylevar imgdir_statusicon}/forum_lock-16.png" alt="{vb:rawphrase forum_is_closed_for_posting}" /></dt><dd>{vb:rawphrase forum_is_closed_for_posting}</dd></vb:if>
                                                <dt><img src="{vb:stylevar imgdir_statusicon}/category-16.png" alt="{vb:rawphrase category_forum}" /></dt><dd>{vb:rawphrase category_forum}</dd>
                                                <dt><img src="{vb:stylevar imgdir_statusicon}/forum_link-16.png" alt="{vb:rawphrase link_forum}" /></dt><dd>{vb:rawphrase link_forum}</dd>
                                        {vb:raw template_hook.forumhome_icon_legend}
                                        </dl>
                                </div>
                        </div>
                        {vb:raw template_hook.forumhome_wgo_pos5}
                </div>
        </div>
        <!-- end what's going on box -->

        {vb:raw ad_location.board_below_whats_going_on}
        <vb:if condition="$show['sidebar']">
                </div>
        </div>

        <div id="sidebar_container"<vb:if condition="$show['sidebarposition'] == 'left'"> class="sidebarleft"</vb:if>>
                <a id="sidebar_button_link" href="#">
                        <vb:if condition="$show['sidebarposition'] == 'left'">
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
                        <vb:else />
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
                        </vb:if>
                </a>
                <ul id="sidebar">
                        {vb:raw sidebar}
                </ul>
        </div>
        </vb:if>

        {vb:raw footer}
</body>
</html>

instead the countdown inserted in the sidebar works perfectly


All times are GMT. The time now is 11:30 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.02583 seconds
  • Memory Usage 1,874KB
  • 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
  • (7)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
  • (2)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