vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   How to make the header background transparent? (https://vborg.vbsupport.ru/showthread.php?t=323877)

hugoroger 11-16-2016 01:44 AM

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?

MarkFL 11-16-2016 02:18 AM

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>'


In Omnibus 11-16-2016 02:20 AM

Mark beat me to it ...

RichieBoy67 11-16-2016 02:22 AM

Nice touch Mark! I was just going to add the css but you added the hook to change all themes at once. :)

hugoroger 11-16-2016 04:09 PM

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

MarkFL 11-16-2016 04:21 PM

Quote:

Originally Posted by hugoroger (Post 2578240)
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>'


hugoroger 11-16-2016 04:46 PM

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

MarkFL 11-16-2016 05:43 PM

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.

hugoroger 11-16-2016 05:46 PM

sure.. I dont mind.. will send them to you.. I left the plug in there

MarkFL 11-16-2016 06:50 PM

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. :)


All times are GMT. The time now is 11:36 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.01065 seconds
  • Memory Usage 1,737KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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