vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - 8WayRun.Com - Micro Debug Stats (https://vborg.vbsupport.ru/showthread.php?t=240905)

Boofo 05-09-2010 02:06 AM

Quote:

Originally Posted by Da-Vinci (Post 2025530)
My server has been up for over a month as I moved to a Dedicated Server, but the stats say server uptime is only 4 days?

http://www.hostmypics.org/pictures/4...f990058e2c.png

Also are there any options to set permissions for the stats, I'd prefer my members not to know if there are any problems with the site.

I wrapped the global_complete code like this:

Code:

if ($vbulletin->userinfo['usergroupid'] == 6)
{

at the top, above:

Code:

$totaltime = microtime(true) - TIMESTART;
and then added:

Code:

}
after

Code:

$output = str_replace('</body>',$microdebug.'<br /></body>', $output);
Now only Admins can see any of it.

Hippy 05-29-2010 11:15 AM

Thanks Boofo nyce fix

I have a small issue
I have photopost integrated with vb4
but the microstats don't display when viewing the gallery
how can I get it to hook there as well
thanks

Boofo 05-29-2010 11:39 AM

Check to see if photopost has its own footer template. You would have to enter the display code there, also.

Hippy 06-03-2010 02:25 AM

photopost uses vb's footer it's all integrated

Scalemotorcars 06-03-2010 03:22 AM

Works perfect, thanks... :up:

HappyFeet 06-04-2010 12:41 AM

Quote:

Originally Posted by Boofo (Post 2033972)
I wrapped the global_complete code like this:


Now only Admins can see any of it.

Thanks!

KURTZ 06-23-2010 05:31 PM

Quote:

Originally Posted by Boofo (Post 2033972)
Now only Admins can see any of it.

so the code should be this, correct?

Code:

$totaltime = microtime(true) - TIMESTART;
}
$output = str_replace('</body>',$microdebug.'<br /></body>', $output);
if ($vbulletin->userinfo['usergroupid'] == 6)
{


Boofo 06-23-2010 05:50 PM

More like:

Code:

if ($vbulletin->userinfo['usergroupid'] == 6)
{
$totaltime = microtime(true) - TIMESTART;
$templatecache = vB_Template::$template_usage;


AND:

Code:

$microdebug .= "</div>";
$output = str_replace('</body>',$microdebug.'<br /></body>', $output);
}

The code in red is what is added.

KURTZ 06-24-2010 08:42 AM

1 Attachment(s)
please check if i made the edits correctly :)

Boofo 06-24-2010 08:57 AM

Nope, sorry. At the very bottom, change this:

Code:

$microdebug .= "</div>";
}
$output = str_replace('</body>',$microdebug.'</body>', $output);


to this:

Code:

$microdebug .= "</div>";
$output = str_replace('</body>',$microdebug.'</body>', $output);
}



All times are GMT. The time now is 03:39 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01037 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete