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

hugoroger 11-16-2016 06:58 PM

Quote:

Originally Posted by MarkFL (Post 2578250)
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. :)

Thank you so much man!! Honestly I have tried to get this done in the past 2 to 3 days and it was not working. I had fire bug open as well and like crazy trying to edit/remove and change the divs but now thanks for that small bit of code man!! I gotta study more of this stuff! haha:up:

Much appreciated!
Hugo

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

I posted the link of this thread on a vbulletin thread I had opened about this that I was trying to do. Here is the thread for reference: http://www.vbulletin.com/forum/forum...he-entire-body

:)

MarkFL 11-16-2016 07:07 PM

Glad to help, Hugo! :D

Mattwhf 11-20-2016 08:01 PM

Quote:

Originally Posted by MarkFL (Post 2578225)
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>'


Cool method, Mark! but I would go with editing on template, using a hook in this case can increase handles for the forum.

MarkFL 11-20-2016 08:24 PM

Quote:

Originally Posted by Mattwhf (Post 2578516)
Cool method, Mark! but I would go with editing on template, using a hook in this case can increase handles for the forum.

If you've got a large number of styles and you want the change applied to all, this is easier to add.


All times are GMT. The time now is 04:53 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.01105 seconds
  • Memory Usage 1,748KB
  • 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
  • (3)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete