Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-31-2010, 09:32 PM
The_Head The_Head is offline
 
Join Date: Jul 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Im amazed and find that hard to believe to be honest. Im not saying your not correct but it seems like a simple edit in the StyleVars or something.

Considering how customizable VB is , this seems like a very small edit. So if i wanted to do it your way , where do i find these files : the css style for class ".foruminfo"

Thx
Reply With Quote
  #12  
Old 12-31-2010, 09:57 PM
CroNiX CroNiX is offline
 
Join Date: Dec 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats the problem, not all of the vars are IN stylevars (yet), therefor not changeable without manual editing.

The only way I know how to change ALL style attributes is to:
1) in admincp, options, style and language settings: change "store stylesheets as files" to YES.

Assuming that directory it mentions is writable, it will dump all of the css into files which are located in:
/clientscript/vbulletin_css/style00001l

(look at all of the thousands of style definitions in those files...not ALL of those are accessible via their built in stylevars manager)

Its just easiest to add something like this to additional.css (which will be empty to start):
.foruminfo {min-height:40px !important}
rather than messing with their css files which will get overwritten with upgrades.

change the height to whatever works.

If someone has a simpler explanation I would love to hear it as well.
Reply With Quote
  #13  
Old 12-31-2010, 10:08 PM
The_Head The_Head is offline
 
Join Date: Jul 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx CroNiX , that seemed to work with making the margins bigger , but not smaller. Thx for trying anyway I think were in the ball park.

Thx.
Reply With Quote
  #14  
Old 12-31-2010, 10:15 PM
CroNiX CroNiX is offline
 
Join Date: Dec 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try doing the same thing to the parent container, which is ".forumrow". It also has a min-height set.

Are you using firefox with the firebug extension? You can edit this stuff in real time within your browser to try tweaks. It also makes it a million times faster to find the style rules because it will show them as you mouseover your screen.
Reply With Quote
  #15  
Old 12-31-2010, 10:22 PM
The_Head The_Head is offline
 
Join Date: Jul 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do i find the parent container, which is ".forumrow" ?

Thx CroN
Reply With Quote
  #16  
Old 12-31-2010, 10:45 PM
CroNiX CroNiX is offline
 
Join Date: Dec 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its hard to explain unless you know html.

In general:
Code:
<div id="parent">
    <div id="child1">This is child one because it is contained WITHIN parent</div>
</div><!-- This is end of parent element -->
In this case it looks like:
Code:
<div class="forumrow table">
  <div class="foruminfo td"> .... </div>
</div>
so, div.forumrow is the parent of div.foruminfo

I hope that helps.

(firebug also makes this very easy to find without looking at the raw html)
Reply With Quote
  #17  
Old 12-31-2010, 10:51 PM
The_Head The_Head is offline
 
Join Date: Jul 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know a little HTML , but where do i find these files your editing ? Through FTP , Admin Panel ? I really don't know what file your editing there

Thx.
Reply With Quote
  #18  
Old 12-31-2010, 11:09 PM
CroNiX CroNiX is offline
 
Join Date: Dec 2010
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using firebug and looking at the raw html output that your forum is producing. I am then finding the style rules (also with firebug) associated with those html elements so you can alter them in your custom.css file. I'm not editing any files. Your browser probably also has a "view page source" or similar so you can view the raw output if you don't want to use firebug, but then you will have to manually find what you are looking for in that huge page of code. Firebug highlights the html code and css code when you mouse over your page making it VERY easy and fast to find what you are looking for. Not to mention you can manipulate your webpage DIRECTLY in real time from within firebug to try different tweaks instead of trying something, saving it, refreshing browser to see if it worked...no? Wash and repeat until you do... This eliminates all of that. Once you tweak it live in the browser, you just copy the rules that worked to your additional.css file.

But, if your interested, the thing that is actually generating that html in vbulletin are the templates. They are located in admincp -> Styles and Templates -> Style Manager

From there you can
1) "search in templates"
or
2a) Click on Style Manager
2b) On right hand side, for your style (default style if you haven't added any others), in the dropdown on the right, select "edit templates". Now it will list all templates and you find the one you want and edit it the way you want. I'd be very careful in there and be sure to "save in template history" so you can undo it if you need to. However, all style information is contained in the stylesheets...but the templates will tell you the element id's and classnames which are referenced in the css.

You having fun yet?

Make your life easier. Watch this. http://getfirebug.com/video/Intro2FB.htm then get it http://getfirebug.com
Reply With Quote
  #19  
Old 12-31-2010, 11:51 PM
The_Head The_Head is offline
 
Join Date: Jul 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah ive done this before using Firebug but never really found anything that changed the values im looking for. Im gonna just leave it for now. I thought it would be a case of changing 1 or 2 values.

Thx for all your support & trying to resolve the issue

Maybe someone will create a mod lol

Thx again CroNiX
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:27 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.03789 seconds
  • Memory Usage 2,259KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete