vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Microstats (only for admin) - load times, server loads, queries, uncached templates! (https://vborg.vbsupport.ru/showthread.php?t=59700)

Snort_2005 06-19-2005 01:43 PM

*clicks install*

d2sector 06-25-2005 03:27 AM

How can you choose where the stats show up on your forums?

Pixelrift_will 07-13-2005 01:05 PM

installed =D

derekivey 07-14-2005 06:04 PM

Sweet going to install it now :D

Roms 07-22-2005 11:55 PM

Thanks Erwin.

faast 08-22-2005 09:41 PM

Code:

  // Microstats hack
if ($bbuserinfo[usergroupid]==6) {
                $pageendtime = microtime();
                $starttime = explode(' ', $pagestarttime);
                $endtime = explode(' ', $pageendtime);
                $totaltime = vb_number_format($endtime[0] - $starttime[0] + $endtime[1] - $starttime[1], 5);
                $loadavg = @file_get_contents("/proc/loadavg");
                if ($loadavg) {
                        $regs = explode(" ",$loadavg);
                        $serverload=' [Server Loads: <b>'.$regs[0].'</b> '.$regs[1].' : '.$regs[2].']';
                }
                $debughtml = "<center><span class=\"smallfont\">Page generated in <b>$totaltime</b> seconds with <b>$query_count</b> queries" . iif($_TEMPLATEQUERIES, " (<b>" . sizeof($_TEMPLATEQUERIES) . "</b> queries for uncached templates)", '') . "$serverload</span></center>";
    ksort($tempusagecache);
    foreach ($tempusagecache AS $tempname => $times)
    {
    if ($_TEMPLATEQUERIES["$tempname"]) $debughtml .= "<center><span class=\"smallfont\">Uncached templates: <font color=\"red\"><b>$tempname</b></font> ($times)</span></center>";
    }
                $vartext = str_replace('</body>', "$debughtml\n</body>", $vartext);

}

//Microstats Hack


I'm not a coder by any means, but if I remove the above (in red) will that show to all users? Thanks. What I mean is, is the above code workable or will it do something horribly wrong?

derekivey 08-23-2005 03:22 AM

Yes, if you remove that it will show to all users...

NJTy180 10-14-2005 11:25 PM

Quote:

Originally Posted by GoWo
Is there any reason I get this error message after installing this hack?

PHP Code:

Parse errorparse errorunexpected T_CONSTANT_ENCAPSED_STRING in /home/********/********/includes/functions.php on line 2044 


I saw that editing the functions.php file in Dreamweaver doesn't work, si I have used Notepad and Kate.

Tried copy and pasting - no joy.
Tried typing out entire hack - no joy.

Any ideas?

I got the same error, just on line 2033, I just gave up, oh well.....

Wisch 10-21-2005 09:21 PM

Page generated in 0.08409 seconds with 9 queries

sweeeeet

David_R 02-11-2006 03:27 AM

does this exists for 3.5 version ?
we have it installed and want to upgrade from 3.0.x version of our forum to 3.5

thanks.


All times are GMT. The time now is 08:10 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.01521 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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