Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 11-16-2016, 01:44 AM
hugoroger hugoroger is offline
 
Join Date: Sep 2012
Location: Brazil
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to make the header background transparent?

I was going to create a new thread but I have been searching for hours on how to do this for VB 4.2.3 but this code does not work.. i have tried dozens of other websites and codes.. nothing... any help?
Reply With Quote
  #2  
Old 11-16-2016, 02:18 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to make the header background transparent in a particular style, then edit the Stylevar "header_background" in the "Header" section of the Stylevars.

If you wish to quickly apply this change to all of your styles, then add a plugin hooked at "parse_templates" with the code:

PHP Code:
$template_hook['headinclude_css'] .= '<style>.above_body {background: transparent !important;}</style>'
Reply With Quote
3 благодарности(ей) от:
hugoroger, Lynne, RichieBoy67
  #3  
Old 11-16-2016, 02:20 AM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mark beat me to it ...
Reply With Quote
2 благодарности(ей) от:
hugoroger, MarkFL
  #4  
Old 11-16-2016, 02:22 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice touch Mark! I was just going to add the css but you added the hook to change all themes at once.
Reply With Quote
2 благодарности(ей) от:
hugoroger, MarkFL
  #5  
Old 11-16-2016, 04:09 PM
hugoroger hugoroger is offline
 
Join Date: Sep 2012
Location: Brazil
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I already did that and now I see the white wrapper.. I need to remove that white wrapper.. this is what I have so far.. clashforum(dot)com(dot)br
Reply With Quote
  #6  
Old 11-16-2016, 04:21 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hugoroger View Post
I already did that and now I see the white wrapper.. I need to remove that white wrapper.. this is what I have so far.. clashforum(dot)com(dot)br
If you want to remove the white wrapper from the body, then alter the plugin I posted to read:

PHP Code:
$template_hook['headinclude_css'] .= '<style>body, .above_body {background: transparent !important;}</style>'
Reply With Quote
Благодарность от:
hugoroger
  #7  
Old 11-16-2016, 04:46 PM
hugoroger hugoroger is offline
 
Join Date: Sep 2012
Location: Brazil
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added that.. but nothing happened.. was it suppose to affect all existing styles?

your code is for the entire wrapper right?.. is there a way to edit the HEADER wrapper only? I am trying to get something like this one...

--------------- Added [DATE]1479322393[/DATE] at [TIME]1479322393[/TIME] ---------------

Im just trying to do the samething he did:

http://www.marchingbandforum.com/forums/

his thread: https://vborg.vbsupport.ru/showthread.php?t=312224
Reply With Quote
  #8  
Old 11-16-2016, 05:43 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What I change those elements using Firebug, I get what I think you are after. I would have to come to your site with admin access to see what's going on. If interested, send the login credentials to an admin account to me via PM.
Reply With Quote
  #9  
Old 11-16-2016, 05:46 PM
hugoroger hugoroger is offline
 
Join Date: Sep 2012
Location: Brazil
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sure.. I dont mind.. will send them to you.. I left the plug in there
Reply With Quote
  #10  
Old 11-16-2016, 06:50 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now I see I didn't grab all of the PHP code when I posted post #6. My apologies for the confusion...I have edited my post to make it complete.
Reply With Quote
Reply

Thread Tools
Display Modes

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:10 AM.


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.08977 seconds
  • Memory Usage 2,267KB
  • Queries Executed 13 (?)
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_php
  • (1)bbcode_quote
  • (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
  • (10)post_thanks_box
  • (8)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete