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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2015, 02:02 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Appearance of Forum Blocks

I have been using vBAdvanced for my left and right column and would like to switch the right column to the included vB sidebar. But I can't figure out how to change the appearance of the forum blocks. I would like to get rid of the large border around them and also have some spacing. My preference would be to make them look like the vBA modules do. If that is not possible, then to look like the blocks do in the Classifieds mod (OzzModz) that I use. I have the same exact block in both the Classifieds section and in the forums and they appear differently. Please see attachment.

I'm sure there must be a way to edit this, I just can't figure out where.
Attached Images
File Type: jpg blocks.jpg (85.0 KB, 0 views)
Reply With Quote
  #2  
Old 06-03-2015, 02:20 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think what you can do is to find the css for the forum blocks and change it. I know at least some of it is in the sidebar.css template, which is under the CSS Templates group. For example, there's this:
Code:
#sidebar_container .block {
	margin-bottom:4px;
	padding:6px;
	border-top-{vb:stylevar right}: {vb:stylevar border_radius};
	border-top-{vb:stylevar left}: {vb:stylevar border_radius};
	border-top-{vb:stylevar right}: {vb:stylevar border_radius};
	border-top-{vb:stylevar left}: {vb:stylevar border_radius};
}
which sets 6px padding for the blocks. I think if you reduce that it will get it closer to the vBa block look. You can see that the padding and margin have values there, but other values use {vb:stylevar ..., in which case you'd probably want to change the stylevar instead of the editing the template.

I don't know how much CSS/HTML you know, but you can right click on the forum block and "inspect element" (at least you can in Chrome, and I think Firefox has something similar), and
it will open a window at the bottom that will tell you what CSS is affecting that area, then from there you should be able to find the CSS in the vbulletin template that needs to be changed.
Reply With Quote
  #3  
Old 06-03-2015, 02:36 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you - I will try that and see what I can figure out!
Reply With Quote
  #4  
Old 06-03-2015, 04:20 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have been playing around with this, and have mostly gotten it where I want it. Except I can't figure out how to get rid of the shadow along the left side and bottom of the sidebar.
Attached Images
File Type: jpg Untitled-5.jpg (100.8 KB, 0 views)
Reply With Quote
  #5  
Old 06-03-2015, 05:38 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure what the arrows are pointing to. Are you talking about the blue parts, or some of the white?
Reply With Quote
  #6  
Old 06-03-2015, 05:43 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's like a drop shadow along the left edge (it shows on the bottom of the sidebar too). If you look at the space between two blocks, on the right there is no shadow so it looks like blank space. On the left side the shadow is there so you see a vertical line between the blocks.
Reply With Quote
  #7  
Old 06-03-2015, 05:54 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think I see what you mean now. Part of it is the border in the section that starts:
Code:
#sidebar_container > ul {
but maybe you got that already. I haven't been able to figure out where the rest of it is coming from.
Reply With Quote
  #8  
Old 06-03-2015, 11:57 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you - that did it. I removed the section for shadow.

One more thing (I think that will be it!) I could use help with. I am still using vBAdvanced for the left column because it will show on all pages, and the sidebar doesn't need to. The problem with using both is that they don't line up. the vBA column starts higher up and the sidebar is even with the listing of forums. I honestly am OK with either one, as long as both sides match. But again, not sure where to go to adjust things.
Attached Images
File Type: jpg Untitled-1.jpg (29.4 KB, 0 views)
Reply With Quote
  #9  
Old 06-04-2015, 10:07 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't really know html all that well, but I think to get rid of the space above the vB forum blocks you'd need to redo the structure of the FORUMHOME template so that the sidebar isn't inside the same div as the rest of the page content. It's probably easier to add space above the vba blocks, but I don't have that installed so I can't help with that.
Reply With Quote
  #10  
Old 06-04-2015, 01:51 PM
JenniferK JenniferK is offline
 
Join Date: Dec 2005
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added space above the vba blocks as you said - found info on the vba website. Thank you for your help!
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 01:57 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.04052 seconds
  • Memory Usage 2,268KB
  • 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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete