The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
add a background image to your navbits Details »» | |||||||||||||||||||||||||
Just a simple mod that will allow you to add a background image to your navbit table, as per this request.
in your navbar template find the first instance of: Code:
<td class="alt1" width="100%"> Code:
<td class="altbg" width="100%"> Code:
.altbg { background: #FFFFFF url(wherever your image is located.gif) no-repeat top left; height: 54px; width: 100%; vertical-align: text-bottom; } This is my first mod so please go gentle screenshot: Update: As some of you were asking how to have this image stretch through your welcome back column also here's how i've done it: in your navbar template find: Code:
<!-- breadcrumb, login, pm info --> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> Code:
<!-- breadcrumb, login, pm info --> <table class="altbg" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> Code:
<td class="alt1" width="100%"> <if condition="is_array($navbits)"> Code:
<td width="100%"> <if condition="is_array($navbits)"> Code:
<if condition="$show['member']"> <td class="alt2" nowrap="nowrap"> Code:
<if condition="$show['member']"> <td nowrap="nowrap"> Code:
<else /> <td class="alt2" nowrap="nowrap" style="padding:0px"> <!-- login form --> Code:
<else /> <td nowrap="nowrap" style="padding:0px"> <!-- login form --> Code:
.altbg { background: #FFFFFF url(streetrod/misc/navbits_bg.gif) repeat-x top left; height: 54px; width: 100%; vertical-align: text-bottom; border: 1px solid #0B198C; } screensot of streched image: all done hope this helps! PLEASE NOTE THE BACKGROUND IMAGE SIZE WILL REMAIN CONSTANT, MEANING IT WILL NOT CHANGE WITH YOUR BROWSER SIZE, ALL THAT WILL HAPPEN IS THE CELL WILL CHANGE SIZE AND EITHER LOOSE SOME OF THE IMAGE OR FILL WITH THE BACKGROUND COLOUR, THE IMAGE SIZE ALL DEPENDS ON THE SIZE OF THE IMAGE YOU'VE CREATED, THEREFOR IF ITS eg 468 WIDE AFTER THE CELL IS LESS THAN 468PX WIDE IT WILL CLIP YOUR BACKGROUND IMAGE, I HOPE THIS CLARIFY'S THINGS A BIT Show Your Support
|
Comments |
#82
|
|||
|
|||
cool, will give it a try
|
#83
|
|||
|
|||
installed and working great! thanks for the mod
can anyone tell me how to use this mod so that I can use multiple images that rotate on each page load? |
#84
|
|||
|
|||
Never mind. User Headspace Error.
|
#85
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showthread.php?t=212351 if you need help just drop me a pm |
#86
|
|||
|
|||
Tweaked the idea I got from this. See below.
|
#87
|
|||
|
|||
Quote:
The simplest way to get your image or color to go all the way across is to remember the right> "welcome" and the left> "directory path(bread crumbs)" are cells inside a table. You want to add the image or color to the table parameters so it covers the entire table background. In the code below from the navbar template you keep the code in blue you added from the first part of his instructions. Then add the background code you see in red. Code:
<br /> <!-- breadcrumb, login, pm info --> <table class="tborder" background="(http://)your.forum.name/path/to/your/image" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="altbg" width="100%"> <if condition="is_array($navbits)"> <table cellpadding="0" cellspacing="0" border="0"> <tr valign="bottom"> <td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td> Now go to the .altbg in the additional CSS definitions and remove the entire background statement. Leave the height, width, and text align statements. When you're done you get some thing like what I have in the navbar in this theme I'm working on: http://animeappeal.com/forums/index.php?styleid=47 |
#88
|
||||
|
||||
Quote:
|
#89
|
||||
|
||||
love it, mine is fine in IE but a bit banjoed in FF
Thanks anyway |
#90
|
||||
|
||||
got it working in FF but two requests
1. is it possible that the image can link to a url? 2. can i push the image over to the complete right ? Please and thanks |
#91
|
|||
|
|||
very good thing thank you very much
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|