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)

Jaxel 04-20-2010 10:00 PM

8WayRun.Com - Micro Debug Stats
 
1 Attachment(s)
Don't forget to click INSTALL!
I'm an unemployed computer programmer... if you appreciate the work I have done on this mod, please don't hesitate in offering me a donation by clicking the "Support Developer" link to the right of this text.

This mod is a complete rewrite of ShiningArcanine's Microstats mod for vB3.5x.
ShiningArcanine is gone. Sadly that means his mods will never get updated. As well, by policy here at vBulletin.org, no one has the right to update his mod to make it compatible for newer versions of vB without his express permission... which we won't be able to get because we can't get in contact him. Therefore I have completely rewritten this mod. I copied nothing from ShiningArcanine's original mod; instead I went through vB's built in debug functions and used their code as an example.

Server Support
Right now this mod only supports "@exec(uptime)" for retrieving server load. If I get enough requests for other load average systems, I will add them in time.

testbot 04-21-2010 12:28 AM

nice... i'll have to check this out this weekend. gjob

PixelFx 04-21-2010 12:40 AM

thanks, very handy!

Jabong82 04-21-2010 01:02 AM

Sorry what does this exactly do?

your24hourstore 04-21-2010 01:46 AM

when i installed it all again did you move them or something i cant add catigories again?:eek: argh wrong topic sorry

Juggernaut 04-21-2010 01:55 AM

^^ I wish I could give you rep for that XD
Also, what does this do, exactly? :D

legacy123 04-21-2010 09:12 AM

If it does what normal debug does it should allow you to access Master Style,add settings,manage Admin help,rebuild bit field/styles/etc.,and see all the queries as shown below.

Kolbi 04-21-2010 09:50 AM

I like it :)

KURTZ 04-21-2010 10:06 AM

is there an option to disable this hack in the ACP?

Jaxel 04-21-2010 03:10 PM

Quote:

Originally Posted by KURTZ (Post 2024817)
is there an option to disable this hack in the ACP?

Yeah... disable the mod.

giorgino 04-21-2010 04:44 PM

what means red data?

Jaxel 04-21-2010 04:51 PM

Red text is uncached templates... it means the author of the current mod failed to properly cache their templates into the built in vBulletin template caching system.

The crazy thing is... the majority of uncached templates I see are from vBcms itself.

giorgino 04-21-2010 06:38 PM

amazing! :D

I'll investigate further on my uncached template (only one)...

Your mod is great! :)

Jaxel 04-22-2010 01:50 AM

New version fixes a bug with servers that have been up for less than 1 day.

Da-Vinci 04-22-2010 06:42 PM

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?

https://vborg.vbsupport.ru/

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.

giorgino 04-22-2010 06:51 PM

The same for me. Great suggestion that only admin can view the stats

Jaxel 04-22-2010 11:57 PM

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?

Try the new version, tell me if that fixes it...

djbaxter 04-23-2010 11:49 AM

Quote:

Originally Posted by Da-Vinci (Post 2025530)
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.

Quote:

Originally Posted by giorgino (Post 2025534)
The same for me. Great suggestion that only admin can view the stats

Ditto. I want to have it viewable for Admins only.


Added: D'oh!! I was just looking into the product and I see it already does this, correct?

PHP Code:

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


Added: No. I just checked and it is visible when I'm a logged-out guest.

Da-Vinci 04-26-2010 01:05 AM

Just tried the new version and now I get Server Uptime: 1 days 2 hours 32 mins

FractalizeR 04-26-2010 12:26 PM

Can you please add the possibility to get system load using sys_getloadavg? On my forum, exec is turned off for security.

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);
}


Scalemotorcars 06-24-2010 11:58 PM

Boofo !!!

That did it.. Thanks... :up:

Boofo 06-25-2010 12:19 AM

You had doubts? ;)

Hippy 06-25-2010 09:15 PM

the server was updated today and for some reason the server uptime and page load is no longer displaying

any ideas
has worked flawlessly till the updates

Hippy 06-25-2010 09:52 PM

never mind 1 hour later and it came back .. weird

Xencored 07-05-2010 01:20 PM

Installed very handy thanks

Andy 07-11-2010 04:01 PM

Installed as stand alone plugin.

Marked as installed. Nice simple plugin. Thank you.

cobaku 07-11-2010 09:56 PM

i was looking for this it is nice
thank you

Shaheen 08-04-2010 12:35 PM

Sorry if i am asking a dumb question ,
Does this mod works with 3.8.4?

Thx

Orakk 08-05-2010 02:33 AM

Is working fine for me on 385.

spillage 08-08-2010 05:56 PM

Have the discussed permission changes been made in the xml download?

If they have, they are not working... If I logout, I can still see the stats as a Guest.


All times are GMT. The time now is 06:05 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.01276 seconds
  • Memory Usage 1,791KB
  • 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
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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