Thread: Add-On Releases - Everywhere Sidebar 4 VB4
View Single Post
  #1125  
Old 07-29-2011, 04:47 AM
almannai almannai is offline
 
Join Date: Oct 2007
Posts: 889
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HipHopStan.com View Post
wow... ur right... that option definitely adds to the load time
Quote:
Originally Posted by Bunni U View Post
hmmm that option, for what ever silly reason, catches the ESB hook "parse_templates"
PHP Code:
if ($vbulletin->options['bbactive'] and $vbulletin->options['esidebar_switch'])$bbandSBactive=1;
if (
$bbandSBactive){
if(
$vboptions['storecssasfile']){
$tempside='<link rel="stylesheet" type="text/css" href="\' . $vbcsspath . \'forumhome-rollup.css" />';
}else{
$tempside='<link rel="stylesheet" type="text/css" href="\' . $vbcsspath . \'sidebar.css,forumbits.css,forumhome.css,tagcloud.css,widgets.css,options.css" />';
if(
$vbulletin->options['esidebar_onload'] and in_array(THIS_SCRIPT, array('index''forumdisplay''showthread''newreply''editpost''vbcms''usercp''member''private''search''album''faq''calendar''list''profile''subscription')))
$tempside.='<style>#sidebar_container{display:none;}#content_container{display:none;}</style>';
$tempside.='<!--[if IE 6]><link rel="stylesheet" type="text/css" href="\' . $vbcsspath . \'forumbits-ie.css" /><![endif]-->';
$tempside.='<!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="\' . $vbcsspath . \'forumbits-ie.css,sidebar-ie.css" /><![endif]-->';
}
$sidebarext_search '$final_rendered = \'\''
$sidebarext_replace =  '$final_rendered=\''.$tempside.'\'';               
$vbulletin->templatecache['headinclude_bottom'] = str_replace($sidebarext_search$sidebarext_replace$vbulletin->templatecache['headinclude_bottom']);
    } 

for my forum line 9 of that hook:
PHP Code:
$tempside.='<style>#sidebar_container{display:none;}#content_container{display:none;}</style>'
applied those display:none css styles to both the sidebar and all forum content, causing all content to be hidden, for what ever reason, updating from 1.4.3.1 to 1.4.3.3 caused that display:none style to not be removed (assuming it was supposed to be removed when the page loaded). This resulted in all correlating pages to be empty vb pages (had header and footer but nothing else).

Interestingly, the aforementioned functionality worked correctly when the forums were disabled via VB settings-> Forum disabled. And ceased to work with the above observations once the forum was enabled.

Perhaps our boards differ from others in that our main content has the content_container class, so perhaps functionality that was only ment for ESB was also being applied to all site content and thus my board was the only one that encountered such problems.


In regards to your finding, Ill assume that this "Show ESB Onload" option, causes ESB to hide your page results, until everything is loaded. So, in essence you are just seeing the page load now in the same amount of time, but now you can see it loading. Where-as before page content was hidden until the page finished loading.
Ok this option added for future uses and because some members requested it. I see most people don't like it. In the next update I will make sure that this option default will be turend off. But sure this option is not added for SILLY reason.

This mod has a lot of options and a lot of my time spent on it so it want hurt if you spend some time setting the options of this mod to suit your forum. This is not this mod fault.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01064 seconds
  • Memory Usage 1,809KB
  • 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
  • (2)bbcode_php
  • (2)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