vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin Forum Sideblocks - VC_Countdown (FORUM BLOCK) (https://vborg.vbsupport.ru/showthread.php?t=271797)

midnz 10-16-2014 03:04 AM

Quote:

Originally Posted by jasff (Post 2518948)
Thanks midnz,

Yes, the height is what I can't get to adjust. I wanted to know where to get into the coding to adjust.

I saw Ba'al where he mentioned changing the height in coding.
I don't know where to access that.

I'll still try and play around in the paddings, but seems to cut the numbers off and the cell height doesn't expand.

1. AdminCP > 2. Styles & Templates > 3. Search in templates > 4. ... type... block_VC_Countdown ... and press the "Find" button > 5. ... double click on that result to bring the template in to view. You can make edits to the font sizes in there.


If you screw it up you can depress the "Revert" button to reset that template back to the original one. You'll find that "Revert" button at 4. in the above directions. Good luck :)

jasff 10-18-2014 08:23 PM

Thank you! I found where to change the box to 220.

Next questions is how to allign and adjust font? Here are the couple things I want to do:

1. When I expand the box from 80 to 220, the text is top center alligned. Where and how can I center the text in the coding?

2. I want to bold the font so that it stands out more. Possible to change the font size? I would need specifics if possible on how to do this.

This would be a great start. Thanks again micnz.

midnz 10-20-2014 11:48 PM

Quote:

Originally Posted by jasff (Post 2519314)
1. When I expand the box from 80 to 220, the text is top center alligned. Where and how can I center the text in the coding?

The following HTML code is just one part of the CSS code (code within the STYLE tags) that affects one part of the Counter. You'll find the below piece of CSS code between the STYLE tags within the HEAD of the document.
HTML Code:

  #period {
    font-size: 10px;
    color: {vb:raw vboptions.vccountdown_period_fontcolour};
    font-family: Arial,sans-serif;
    font-weight: normal;
    letter-spacing: 0;
    margin-right: 1px;
    text-transform: uppercase;
    text-align: center;
}

Check the text-align: center; part. That allows you to center any text where you include id="period" in the coding between the BODY tags.

Using the CSS code above you can understand what part of the Countdown Timer it affects by looking at the DIV tags to find the code that has <div id="period" included.
NB: See the beginning of the above CSS code that says #period { ? That's your clue.

So, using the example above you can find the following part of the Countdown Timer that it affects. Whatever is in the CSS code above affects the HTML code below because it begins with <div id="period"

HTML Code:

<div id="period">days&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hrs&nbsp;&nbsp;&nbsp;&nbsp; mins&nbsp;&nbsp;&nbsp; secs&nbsp;</div>
Using that logic you can find the DIV that you want to affect (<div id="name") and look in between the STYLE tags for the CSS code that begins with that same #name or .name and then edit, delete or add to that CSS code to change what you want.

Quote:

Originally Posted by jasff (Post 2519314)
2. I want to bold the font so that it stands out more. Possible to change the font size? I would need specifics if possible on how to do this.

Look again in the CSS code for the following:
font-size: 10px; (increase or decrease the number 10 to make your text bigger or smaller)

font-weight: bold; (add this line to the CSS code that relates to the <div> that you want to affect by making all text bold)

mapleleaffans 07-09-2015 11:44 PM

Great mod! I was thinking about adding something like this for a bit! Thank you midnz!


All times are GMT. The time now is 05:31 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.01148 seconds
  • Memory Usage 1,728KB
  • 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_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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