hey all...
here is a quick fix to stop that annoying navbar resize for FireFox...
mind you it will set the width of the div on load...
so it will have a small bug when u resize it..
but then when u load a new page it will resize it to the new browser width..
Open your
AdminCP and go here...
Quote:
Styles & Templates > Style Manager > PB-WoW > Edit Templates > header
|
Now you have to add 2 sections of code...
This will make a new div to be just under the width of the browser window...
Kinda flooding the rest of the space..
To fake it to look like the table is the complete width of the screen...
use the following to help you...
FIND THIS:
Code:
<!--[if IE]>
<span style="position: relative; z-index: 20000; background: none;">
<![endif]-->
<small class="subnavfix" style="color:#808080; letter-spacing:normal;">
PASTE AFTER:
Code:
<!-- FIREFOX FIX BY DJRAVINE @ WOWPS.ORG -->
<script language="JavaScript"><!--
//change DIV tag width dynamically
var viewportwidth;
var viewportheight;
// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
if (typeof window.innerWidth != 'undefined')
{
viewportwidth = window.innerWidth,
viewportheight = window.innerHeight
}
// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
else if (typeof document.documentElement != 'undefined'
&& typeof document.documentElement.clientWidth !=
'undefined' && document.documentElement.clientWidth != 0)
{
viewportwidth = document.documentElement.clientWidth,
viewportheight = document.documentElement.clientHeight
}
// older versions of IE
else
{
viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
viewportheight = document.getElementsByTagName('body')[0].clientHeight
}
var current_URL = location.href;
var current_Page = current_URL.substring(39,46);
if (
(current_Page === "forumdisplay.p") ||
(current_Page === "search.php") ||
(current_Page === "search.php?do=") ||
(current_Page === "search.php?sea") ||
(current_Page === "showgroups.php") ||
(current_Page === "online.php?do=") ||
(current_Page === "faq.php") ) {
divWidth = viewportwidth - 165;
} else {
divWidth = viewportwidth - 180;
}
document.write ('<div id="NavbarFixer" style="width: ' + divWidth + 'px;">');
//--></script>
<!-- FIREFOX FIX BY DJRAVINE @ WOWPS.ORG -->
FIND THIS:
Code:
<if condition="$show['member']">
| <a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a>
</if>
PASTE AFTER:
Code:
<!-- FIREFOX FIX BY DJRAVINE @ WOWPS.ORG -->
</div>
<!-- FIREFOX FIX BY DJRAVINE @ WOWPS.ORG -->
i hope this is useful to you...
as it was annoying me for a while...
seeing im an avid firefox 3 supporter...
took me a day to track down the right info to code it...
if you need any help with this fix..
xFire -
theDJRavine
MSN -
DJRavine@WoWps.org
Have fun all and dont work too hard...
Ciao all, DJRavine...