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)

Trevor Matthews 10-12-2011 11:00 PM

Sorry, I installed the cms part and created a widget to go on the forum home page. I added it to the left of my three home page columns. All of the widgets that should be in the right side column are all displayed on the left :D

I deleted the widget but I could add it back in for a little while tomorrow if you wanted to see the problem.

Trevor Matthews 10-12-2011 11:04 PM

The site is www.television-magazine-forum.co.uk

Gemma 10-13-2011 07:27 AM

Quote:

Originally Posted by Trevor Matthews (Post 2256524)
Sorry, I installed the cms part and created a widget to go on the forum home page. I added it to the left of my three home page columns. All of the widgets that should be in the right side column are all displayed on the left :D

I deleted the widget but I could add it back in for a little while tomorrow if you wanted to see the problem.

Quote:

Originally Posted by Trevor Matthews (Post 2256525)

If you PM me when you've set the widget up again I'll have a look and have a better understanding. Or take a screenshot if that is easier.

Did you upload the contents of the sidebar_countdown1.0.2.zip too? (those files are required)

Trevor Matthews 10-13-2011 08:34 AM

I actually did upload those but wasn't sure if I needed to.
All the files are in a folder called countdown.

I will try a screenshot for you.
Thanks.

wilburshere 10-13-2011 10:31 AM

i like it installed both forum sidebar and cms widget very nice would like the widget smaller 240px but i can live with it

Gemma 10-13-2011 11:44 AM

Quote:

Originally Posted by wilburshere (Post 2256724)
i like it installed both forum sidebar and cms widget very nice would like the widget smaller 240px but i can live with it

For the CMS widget? Replace the countdown_cms.css contents with this, should fit nicely into a 240px block. (though the font is a little small for my own liking)

You can play about with the css file (possibly change the font-family and some of the padding to suit)

Code:

#countdown {
        height: 42px;
        padding: 2px 0 2px 0;
}

.dash {
        width: 19px;
        height:38px;
        float: left;
        margin-left: 12px;
        padding-left: 12px;
        border-left: 1px solid;
        position: relative;
}
   
.first {
        margin-left: 18px;
        padding-left: 0;
        border-left: 0;
}

.dash .digit {
        font-size: 1.3em;
        font-weight: bold;
        float: left;
        font-family: Arial, sans-serif;
        color: #5C7099;
        position: relative;
}

.dash_title {
        position: absolute;
        display: block;
        bottom: 0px;
        right: 0px;
        font-family: Arial, sans-serif;
        font-size: 8px;
        color: #5C7099;
        text-transform: uppercase;
        letter-spacing: 0px;
}


GreyGhost 10-14-2011 06:47 AM

Hi Gemma,
First up... Excellent mod, Works great!

I did search and read most posts and didn't see this mentioned, so I appologize if it's already been asked and answered.

Is there a way of dropping the "WEEKS" altogether and changing the display to
DAYS | HRS | MINS | SECS

i.e. instead of 4 weeks, 6 days, 3 Hrs, 45 Mins, 10 Secs
it would display as... 34 Days, 3 Hrs, 45 Mins, 10 Secs

Doing it this way would allow for a narrower column without losing any real detail.

8-)

.

Gemma 10-14-2011 08:11 AM

Try this,

In the template replace the <script> part with something like this (ie add the omitWeeks part)

Code:

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

Then replace this part of the template:
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:
Code:

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

And save.

You might need to then play about with the css file to fix .first as it probably won't be aligned properly, this will differ depending on the block width you are using but try changing the margin-left value.

Code:

.first {
    border-left: 0 none;
    margin-left: 17px;
    padding-left: 0;

Hope that makes sense :confused::erm:

GreyGhost 10-14-2011 09:21 AM

1 Attachment(s)
Thanks Gemma,

That works perfectly! :D

Attachment 133883

That's with a 230 sideblock, which will work on my CMS as well and I can still get it smaller with some minor font & dash changes. :up:

8-)

Gemma 10-14-2011 10:00 AM

Looks good. The only thing I don't like about your screenshot is the fact that Battlefield 3 is released in Australia before the UK :p


All times are GMT. The time now is 11:44 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.01303 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)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