View Single Post
  #60  
Old 07-27-2008, 04:11 AM
DJRavine DJRavine is offline
 
Join Date: May 2006
Location: Brisbane, Australia
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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&amp;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...
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01154 seconds
  • Memory Usage 1,784KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete