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 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 02:12 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.01048 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_php_printable
  • (3)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
  • (4)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