Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-21-2013, 04:28 PM
rcull rcull is offline
 
Join Date: Feb 2005
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Vbulletin Header

I was playing with trying to get my vbulletin headers to load on my non vb pages. I seem to have it working on firefox and chrome, unfortunatly, on explorer it loads slowly. If anyone could make any suggestions, thanks!

You will find it in use here: http://www.teambuick.com/reference/index.php



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" id="vbulletin_html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta id="e_vb_meta_bburl" name="vb_meta_bburl" content="http://www.teambuick.com/forums" />
<base href="http://www.teambuick.com/forums/" />
<!--[if IE]></base><![endif]-->
<meta name="generator" content="vBulletin 4.2.0" />
<meta name="keywords" content="buick,engine,identication,401,425,300,340 ,350,400,430,455" />
<meta name="description" content="Buick engine identification from 1963 to 1975" />
<script type="text/javascript" src="http://www.teambuick.com/forums/clientscript/yui/yuiloader-dom-event/yuiloader-dom-event.js?v=420"></script>
<script type="text/javascript" src="http://www.teambuick.com/forums/clientscript/yui/connection/connection-min.js?v=420"></script>
<script type="text/javascript">
<!--
var SESSIONURL = "";
var SECURITYTOKEN = "1364306871-8d1e34a0e9856d30d09caf87dcadc51b72a33bac";
var IMGDIR_MISC = "http://www.teambuick.com/forums/images/misc";
var IMGDIR_BUTTON = "http://www.teambuick.com/forums/images/buttons";
var vb_disable_ajax = parseInt("2", 10);
var SIMPLEVERSION = "420";
var BBURL = "http://www.teambuick.com/forums";
var LOGGEDIN = 2930 > 0 ? true : false;
var THIS_SCRIPT = "";
var RELPATH = "view.php?pg=indent_engine_63-75";
var PATHS = {forum : ""}
// -->
</script>
<script type="text/javascript" src="http://www.teambuick.com/forums/clientscript/vbulletin-core.js?v=420"></script>
<link rel="alternate" type="application/rss+xml" title="Team Buick Forum RSS Feed" href="http://www.teambuick.com/forums/external.php?type=RSS2" />
<link rel="stylesheet" type="text/css" href="http://www.teambuick.com/forums/css.php?styleid=37&amp;langid=1&amp;d=1360725594&a mp;td=ltr&amp;sheet=bbcode.css,editor.css,popupmen u.css,reset-fonts.css,vbulletin.css,vbulletin-chrome.css,vbulletin-formcontrols.css," />
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=popupmenu-ie.css,vbulletin-ie.css,vbulletin-chrome-ie.css,vbulletin-formcontrols-ie.css,editor-ie.css" />
<![endif]-->
<script type="text/javascript" src="http://www.teambuick.com/forums/clientscript/vbulletin-postbit.js?v=420"></script>
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=bbcode.css" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=usercp-ie.css" /><![endif]-->
<!--[if lt IE 8]>
<script type="text/javascript" src="clientscript/vbulletin-threadlist-ie.js?v=420"></script>
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=threadlist-ie.css" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=forumdisplay.css" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=threadlist.css" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=forumbits.css" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=postlist.css" />
<link rel="Stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=usercp.css" />
<link rel="Stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=attachments.css" />
<link rel="Stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=projecttools.css" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=vbulletin-formcontrols.css" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=postbit.css" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=postlist.css" />
<link rel="stylesheet" type="text/css" href="css.php?styleid=37&amp;langid=1&amp;d=136072 5594&amp;td=ltr&amp;sheet=memberlist.css" />
<!--[if lt IE 8]>
<script type="text/javascript" src="clientscript/vbulletin-threadlist-ie.js?v=420"></script>
<link rel="stylesheet" type="text/css" href="css/threadlist-ie.css" />
<noscript>
<style type="text/css">
.threadinfo { width:59.9%; }
.threadstats { width:15%; }
.threadlastpost { width:25%; }
</style>
</noscript>
<![endif]-->
</head>
<body>
<div class="above_body">
<!-- closing tag is in template navbar -->
<div id="header" class="floatcontainer doc_header">
<div><a name="top" href="http://www.teambuick.com" class="logo-image"><img src="http://www.teambuick.com/images/teamlogo_250x100.png" alt="Team Buick Forum - Your Buick Resource" /></a></div>
<div class="ad_global_header">
<div align="center">
<?php
//<!--/* OpenX Local Mode Tag v2.6.1 */-->

define('MAX_PATH', '/home/teambuic/public_html/openx');
if (@include_once(MAX_PATH . '/www/delivery/alocal.php')) {
if (!isset($phpAds_context)) {
$phpAds_context = array();
}
$phpAds_raw = view_local('', 9, 0, 0, '', '', '0', $phpAds_context, '');
}
echo $phpAds_raw['html'];
?>
</div>
</div>
<hr />
</div>
<div id="navbar" class="navbar">
<ul id="navtabs" class="navtabs floatcontainer">
<li id="vbtab_cms"> <a class="navtab" href="content.php">Home</a> </li>
<li id="vbtab_whatsnew"> <a class="navtab" href="http://www.teambuick.com/forums/activity.php">What's New?</a> </li>
<li id="vbtab_forum"> <a class="navtab" href="http://www.teambuick.com/forums/forum.php">Forum</a>
<ul class="floatcontainer">
<li id="vbflink_newposts"><a href="search.php?do=getnew&contenttype=vBForum_Pos t">New Posts</a></li>
<li id="vbflink_pms"><a href="private.php">Private Messages</a></li>
<li id="vbflink_faq"><a href="faq.php">FAQ</a></li>
<li id="vbflink_calendar"><a href="calendar.php">Calendar</a></li>
<li class="popupmenu" id="vbmenu_community"> <a href="javascript://" class="popupctrl">Community</a>
<ul class="popupbody popuphover">
<li id="vbclink_groups"><a href="group.php">Groups</a></li>
<li id="vbclink_albums"><a href="album.php">Albums</a></li>
<li id="vbclink_contacts"><a href="profile.php?do=buddylist">Friends & Contacts</a></li>
<li id="vbclink_members"><a href="memberlist.php">Member List</a></li>
</ul>
</li>
<li class="popupmenu" id="vbmenu_actions"> <a href="javascript://" class="popupctrl">Forum Actions</a>
<ul class="popupbody popuphover">
<li id="vbalink_mfr"><a href="forumdisplay.php?do=markread&markreadhash=13 64306871-8d1e34a0e9856d30d09caf87dcadc51b72a33bac">Mark Forums Read</a></li>
<li id="vbalink_settings"><a href="profile.php?do=editoptions">General Settings</a></li>
<li id="vbalink_profile"><a href="profile.php?do=editprofile">Edit Profile</a></li>
</ul>
</li>
<li class="popupmenu" id="vbmenu_qlinks"> <a href="javascript://" class="popupctrl">Quick Links</a>
<ul class="popupbody popuphover">
<li id="vbqlink_posts"><a href="search.php?do=getdaily&contenttype=vBForum_P ost">Today's Posts</a></li>
<li id="vbqlink_threads"><a href="subscription.php">Subscribed Threads</a></li>
<li id="vbqlink_contacts"><a href="javascript://" onclick="window.open(getBaseUrl() + 'misc.php?do=buddylist&focus=1','buddylist','statu sbar=no,menubar=no,toolbar=no,scrollbars=yes,resiz able=yes,width=250,height=300'); return false;">Open Contacts Popup</a></li>
<li id="vbqlink_leaders"><a href="showgroups.php">View Site Leaders</a></li>
<li id="vbqlink_online"><a href="online.php">Who's Online</a></li>
</ul>
</li>
</ul>
</li>
<li id="vbtab_blog"> <a class="navtab" href="http://www.teambuick.com/forums/blog.php">Journals</a> </li>
<li id="tab_nzc4_912"> <a class="navtab" href="http://www.teambuick.com/links/">Links</a> </li>
<li class="selected" id="tab_mdez_249"> <a class="navtab" href="http://www.teambuick.com/reference/index.php">Reference!</a> </li>
<li id="tab_cnd_garage"> <a class="navtab" href="http://www.teambuick.com/forums/garage.php">Garage</a> </li>
<li id="pp_classifieds"> <a class="navtab" href="http://www.teambuick.com/classifieds">Classifieds</a> </li>
</ul>
<div id="globalsearch" class="globalsearch">
<form action="search.php?do=process" method="post" id="navbar_search" class="navbar_search">
<input type="hidden" name="securitytoken" value="1364306871-8d1e34a0e9856d30d09caf87dcadc51b72a33bac" />
<input type="hidden" name="do" value="process" />
<span class="textboxcontainer"><span>
<input type="text" value="" name="query" class="textbox" tabindex="99"/>
</span></span> <span class="buttoncontainer"><span>
<input type="image" class="searchbutton" src="http://www.teambuick.com/forums/images/buttons/search.png" name="submit" onclick="document.getElementById('navbar_search'). submit;" tabindex="100"/>
</span></span>
</form>
<ul class="navbar_advanced_search">
<li><a href="search.php" accesskey="4">Advanced Search</a></li>
</ul>
</div>
</div>
</div>
<!-- closing div for above_body -->
<div align="center">
<div class="page" style="width:100%; text-align:left">
<div style="padding:0px 25px 25px 25px">
Reply With Quote
  #2  
Old 04-23-2013, 02:03 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To me it seems about the same on FF or IE, but it could be that it starts drawing sooner on FF. It is pretty slow but I have no idea why - hopefully someone who knows more about diagnosing these issues will comment.
Reply With Quote
  #3  
Old 04-24-2013, 12:19 AM
bzcomputers's Avatar
bzcomputers bzcomputers is offline
 
Join Date: Apr 2012
Location: TX
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This might give you some answers: http://www.webpagetest.org/result/13...15Q/1/details/

Speed Issues
1) No GZIP compression
2) No caching of images or static javascript
3) First Byte Time is slow (nothing you can do other than change hosts/server)


To help with speed issues read this article:
https://vborg.vbsupport.ru/showthread.php?t=267588


To integrate vB headers into your custom pages read this article:
https://vborg.vbsupport.ru/showthread.php?t=228112


Not sure how you went about integrating the headers. There are a few different ways. I personally believe the one linked above will give you the best overall results.


Whatever way you did it, you have javascript and css styling being loaded down in the <body> when it should all reside in the <head> of the page. This will also slow page rendering in browsers. Issues like this will typically cause more issues in Internet Explorer than other browsers. Which is at least one of the reasons you may see a longer delay in pages rendering in IE.


I think if you can use the practices outlined in the 2 articles above and implement them on your site you will see some great improvements in speed and rendering.
Reply With Quote
  #4  
Old 04-24-2013, 12:58 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice post 'Bzcomputers' ... For some reason I could not 'Like it'.
Nicely compiled reference
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06427 seconds
  • Memory Usage 2,226KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete