vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Navbar Gradient Background (https://vborg.vbsupport.ru/showthread.php?t=106587)

01-28-2006 10:00 PM

Navbar Gradient Background
 
Navbar Gradient Background

What it does: Adds a gradient background to the breadcrumb area of your navbar using CSS.

Time to install: 2 Minutes
Difficulty: Easy
Templates: 1
CSS Edit: 1
Demo: http://www.sevenstring.org

Note: This only works in IE, but has a secondary tag added so that Firefox displays the standard non-gradient background. It uses DXImageTransform, which will most likely not validate. That said, this hack will remain beta until I find a better way to do it.

AdminCP -> Styles & Templates -> Style Manager -> Your Style -> Main CSS -> Additional CSS Definitions

At the bottom, add:

Code:

/***** navbar gradient *****/
.navgradient
{
filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#startcolor,endColorStr=#endcolor);
background: #defaultcolor;
}

  • startcolor: The start of the gradient, left side.
  • endcolor: The finish color, right side.
  • defaultcolor: The color that will display, non-gradient, in other browsers.

Example:
Code:

/***** navbar gradient *****/
.navgradient
{
filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#333333,endColorStr=#000000);
background: #333333;
}

In the navbar template:

Look for:

Code:

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="alt1" width="100%">

Replace the LAST line with:

Code:

<td class="navgradient" width="100%">
Screenshots attached in IE (gradient showing) and Firefox (solid color).

BoYagoob 01-29-2006 04:21 AM

Very nice

bashy 01-29-2006 08:15 AM

Looks much smother, thank you...Installed

Snake 01-29-2006 11:00 AM

That's pretty good. Thanks!

Guest210212002 01-29-2006 08:42 PM

Thanks guys.

I added another screenshot of it in use on my actual site. My gradient is a bit dark due to my theme being mostly dark colors, but it should give a better idea of what this does. :)

theo 02-04-2006 08:05 PM

i like - installed :)

Baudman 02-11-2006 12:01 AM

nice job. Might use it once I start making changes. :)

Mastar 02-11-2006 01:42 AM

I like it but I have a request... Can you tell me how to make it like:

Black faded into red then back into black?

So that both ends will be the same color and the middle will be different.

Guest210212002 08-02-2006 03:16 PM

Quote:

Originally Posted by Mastar
I like it but I have a request... Can you tell me how to make it like:

Black faded into red then back into black?

So that both ends will be the same color and the middle will be different.

You might be able to do that by adding an additional cell to the row and sizing them the same percentage. I'll have a go at it and post back if I can figure it out. I'm hoping to update this hack soon so that it works in FF as well.

DieselMinded 03-15-2008 03:26 AM

How do i do this with an image ?


All times are GMT. The time now is 10:38 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.01021 seconds
  • Memory Usage 1,744KB
  • 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
  • (4)bbcode_code_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