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)

un? in? 07-13-2011 01:13 PM

Quote:

Originally Posted by Gemma (Post 2219992)
Can you PM me a link to your site and I'll have a look :)

Thank you.
My site: http://raovat.vn-news.org/forum.php
Please tell me with Fix
Thanks alot

un? in? 07-13-2011 01:38 PM

Thank for support but my site don't still working.
Haizzzzzzzzz

Gemma 07-13-2011 01:43 PM

Delete the current block and I'll post up instructions on how to create a template based block and see if that works.

Gemma 07-13-2011 01:49 PM

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

Title - block_countdown
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.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() {
    $('#countdown').countDown({
        targetDate: {
            'day':      19,
            'month':    7,
            'year':    2011,
            'hour':    23,
            'min':      59,
            'sec':    59,
                        'utc':                true
        }
    });
});
</script>
<div>
                <div id="countdown">
                        <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>

Save the template.

Go to Forums and Moderators > Forum Block Manager > Add Block > Choose Custom HTML/PHP

Title - Countdown
Content Type- HTML
Content - <div></div>
Template To Use - block_countdown

Save. Purge Cache

Taurus1 07-14-2011 02:35 AM

Hey Gemma, I am so sorry, but that did not work either. (widget) Still remains on 00. It is no biggie. I can leave it out from the my cms. Thanks again for everything! You ROCK!

sadaar 07-14-2011 03:36 AM

It doesn't work for me either. I appreciate the mod and your work in trying to sort it out. I just wonder if there is some other mod that interfears with it? Like I use vBOptimize, and I wonder if it could cause an issue?

Gemma 07-14-2011 08:33 AM

Sorry guys, it must be conflicting with something else. I couldn't possibly say what without testing out on someone's site that is having issues.

One final thing for you both to try, make sure you have uploaded the jquery-1.4.1.js file to the countdown/js folder.

Find:
Code:

<script language="Javascript" type="text/javascript" src="countdown/js/jquery.lwtCountdown-1.0.js"></script>
Above it add:
Code:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
Save the block/template

CHMOD the countdown/js folder to 775

And if you're using vBOptimise go back to your AdminCP > vBOptimise > Flush Cache

See if that works

Taurus1 07-14-2011 09:29 AM

That did it Gemma!! Woooweeee! Thank you so much!

Now please don't kill me for asking this, but is it possible to make the letters itself a bit smaller? On my non-default skins it is too big for the 300px siderbar. (The seconds part goes to the bottom) I suppose the skins itself adds some padding or something.

EDIT: I managed to get it working and looking great now. I edited the .css file. Thanks again for everything Gemma!

Gemma 07-14-2011 10:11 AM

Hallelujah. It's all been a bit messy, I better go back and redo the first post :rolleyes:

Updated to v1.0.1

sadaar 07-14-2011 05:57 PM

I tried the template method, verified the file placement and permissions, even turned off the entire pllug-in system temporarily to see if there was a conflicting mod.... still nothing but 00's.

I wish I could get it to work, it's a nice mod and something my community really needs.


All times are GMT. The time now is 02:45 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.01293 seconds
  • Memory Usage 1,753KB
  • 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
  • (3)bbcode_code_printable
  • (1)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