Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add drop shadow and shading to vBAdvanced modules like vBCMS widgets Details »»
Add drop shadow and shading to vBAdvanced modules like vBCMS widgets
Version: 1.00, by benstillman benstillman is offline
Developer Last Online: May 2014 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.4 Rating:
Released: 07-07-2010 Last Update: Never Installs: 13
Template Edits
Re-useable Code  
No support by the author.

View the screenshots to see what it does. One is a before, the other is an after, aptly named.


Edit the CSS Template adv_portal.css

Change this:
Code:
.vba_module {
	border: {vb:stylevar threadbit_border};
	border-top: 1px solid {vb:stylevar body_background.backgroundColor};
}
To this:
Code:
.vba_module {
	border: {vb:stylevar threadbit_border};
	border-top: 1px solid {vb:stylevar body_background.backgroundColor};
	-moz-border-radius:{vb:stylevar border_radius};
	-webkit-border-radius: {vb:stylevar border_radius};
	-moz-box-shadow:-2px 2px 2px {vb:stylevar vbcms_widget_shadow_color};
}
Save. Enjoy. Screenshots attached.

Screenshots

File Type: jpg before.jpg (98.1 KB, 0 views)
File Type: jpg after.jpg (95.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-27-2012, 05:03 PM
curriertech curriertech is offline
 
Join Date: Aug 2005
Location: NH
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's no vbcms_widget_shadow_color stylevar in the 4.1.10 CMS Suite. Set it manually or add a stylevar for it, and remember this isn't going to work in IE.
Reply With Quote
  #13  
Old 02-28-2012, 09:35 PM
too_cool_3's Avatar
too_cool_3 too_cool_3 is offline
 
Join Date: Sep 2007
Location: ON, Canada
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good to know, thanks curriertech.

vBadvanced should include this by default to spruce up their look to match vB4.
Reply With Quote
  #14  
Old 02-28-2012, 09:58 PM
curriertech curriertech is offline
 
Join Date: Aug 2005
Location: NH
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by too_cool_3 View Post
Good to know, thanks curriertech.

vBadvanced should include this by default to spruce up their look to match vB4.
I agree...vb4 has drop shadows on blocks by default (even in IE!) so it shouldn't be too hard to integrate it into vBa.
Reply With Quote
  #15  
Old 07-26-2012, 04:56 PM
fookaa fookaa is offline
 
Join Date: Dec 2009
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all,

Can anyone tell me how to use this code but adapt it so it works in FF14 ?

Works perfectly in FF12 but after that it stops working
Reply With Quote
  #16  
Old 08-04-2012, 01:12 PM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fookaa View Post
Hi all,

Can anyone tell me how to use this code but adapt it so it works in FF14 ?

Works perfectly in FF12 but after that it stops working

Try this for shadow

Code:
.vba_module {
	border: {vb:stylevar threadbit_border};
        -moz-box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
	-webkit-box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
	box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
        
}
and to be more precise

change the blockhead as well
Code:
.blockhead
{
	
        -moz-box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
	-webkit-box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
	 box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
        
}
I'm not using roud corners but if someone wants to use

add this into blockhead

Code:
-moz-border-radius: 5;
Reply With Quote
  #17  
Old 05-19-2013, 08:00 PM
Spangle Spangle is offline
 
Join Date: Jun 2011
Posts: 520
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zascok View Post
Try this for shadow

Code:
.vba_module {
	border: {vb:stylevar threadbit_border};
        -moz-box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
	-webkit-box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
	box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
        
}
and to be more precise

change the blockhead as well
Code:
.blockhead
{
	
        -moz-box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
	-webkit-box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
	 box-shadow: -2px 2px 2px {vb:stylevar footer_moz_shadow_color};
        
}
I'm not using roud corners but if someone wants to use

add this into blockhead

Code:
-moz-border-radius: 5;

This works for 4.2.1 and FF15 if anyone is interested
Reply With Quote
  #18  
Old 12-25-2013, 11:47 PM
ckgb ckgb is offline
 
Join Date: Oct 2007
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshots look identical to me. Where should I look for difference?
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 06:56 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05726 seconds
  • Memory Usage 2,306KB
  • Queries Executed 23 (?)
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
  • (8)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (2)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete