Thread: vBMicrostats
View Single Post
  #209  
Old 06-22-2006, 12:08 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TECK
JD, look at the html code and tell me if you see a colspan in the microstats template.
It has to be there, it's working fine for all boards, so far.
Is this an original board, unhacked?

This is the code it needs to be examined:
Code:
	// regular users template
	$users_template  = '<tr align="' . $stylevar['right'] . '">' . "\n";
	$users_template .= '	<td class="tcat"' . iif($show['colspan'], ' colspan="' . $colspan . '"') . '>' . "\n";
	$users_template .= '		<span class="smallfont">Page generated in ' . $total_time . ' seconds (' . $php_percent . ' - ' . $sql_percent . ') with ' . $query_count . ' queries</span>' . "\n";
	$users_template .= '	</td>' . "\n";
	$users_template .= '</tr>' . "\n";

	// administrator template
	$admin_template  = '<tr align="' . $stylevar['right'] . '">' . "\n";
	$admin_template .= '	<td class="alt1"' . iif($show['colspan'], ' colspan="' . $colspan . '"') . '>' . "\n";
	$admin_template .= '		<span class="smallfont">' . $memory_status . $debug_status . $gzip_status . $server_status . $templates_status . '</span>' . "\n";
	$admin_template .= '	</td>' . "\n";
	$admin_template .= '</tr>' . "\n";
Let me know what you see in your page source.
Thanks.
The code you posted above is exactly the same as in the vBMicroStats Global Hook.


OK, not logged in I see this:
Code:
<tr align="right">
	<td class="tcat">
		<span class="smallfont">Page generated in x.xxxx seconds (xx.xx% PHP - xx.xx% MySQL) with xx queries</span>
	</td>
</tr>
Logged in I see:
Code:
<tr align="right">
	<td class="tcat">
		<span class="smallfont">Page generated in X.XXXX seconds (XX.XX% PHP - XX.XX% MySQL) with XX queries</span>
	</td>
</tr>
<tr align="right">
	<td class="alt1">
		<span class="smallfont">DEBUG Mode OFF | GZIP ON (level 1) | <strong>X.XX</strong> : X.XX : X.XX | NO Uncached Templates</span>

	</td>
</tr>
But the code is aligned on the left side, like the pic I posted in my original post, it's width is the width of the style chooser.

Guests do not have access to choosing style, and only certain senior groups have access to choose a style, normal members can not choose style either.

That is what the situation is, hope you can help.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01638 seconds
  • Memory Usage 1,768KB
  • 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
  • (3)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