vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Microstats - load times, server loads, queries, uncached templates (https://vborg.vbsupport.ru/showthread.php?t=82900)

Zia 02-14-2006 02:19 PM

Can we hope an Update of this that will show Gzip stats too??

ShiningArcanine 02-23-2006 05:19 PM

Quote:

Originally Posted by crepo
Installed.

I use it with the configsetting:
Code:

$config['Microstats']['adminonly'] = true;
But can I use this also for 2 groups? I want give it to admin and supermoderators group.

Thanks for helping.
peter

You will have to modify the plugin. I thought of having mutiusergroup support but I never implemented it in the last major revision I did.

Quote:

Originally Posted by David_R
thanks works fine,
but i want to display all the information only to administrators and another group ID = 23
how can i acheive same ?

i want to remove/hide guests from viewing the page generated and queries executed line.

You will have to modify the plugin.

Quote:

Originally Posted by Zia
Can we hope an Update of this that will show Gzip stats too??

I have considered this in the past. Gzip can be set in Apache's configuration and in .htaccess, and I do not know if a way to detect this kind of stuff in PHP exists, so if gzip detection was ever added, it would be misleading and inaccurate. That is why I have decided not to include it in microstatus; at least the one that I maintain anyway.

djwins 03-01-2006 06:49 AM

/clicks install
I tried both the original version and the product version but even as admin (usergroup 6), i can't see the server load and uncached templates.

I'm on 3.5.4

Any ideas?

Also, is there supposed to be an Admin CP for the product version? If so, I can't find it.

ShiningArcanine 03-01-2006 09:46 PM

djwins, uncached templates only appear if there are uncached templates. Also, microstats can only display server loads on non-Windows servers. If you are on a Windows server, you will not see server loads.

By the way, microstats does not add anything to the AdminCP.

djwins 03-01-2006 10:40 PM

I am using FreeBSD, not windows. Is the load supposed to display with that? Thanks!

ShiningArcanine 03-02-2006 09:18 PM

FreeBSD is supposed to show load averages. They might not be enabled on your server though. File a support ticket with your host and ask them if your server supports the following:

PHP Code:

$loadavg = @`sysctl vm.loadavg|cut -d" " -f3-5`) 

There is a chance they have it disabled at their end.

djwins 03-03-2006 06:33 AM

It is enabled as the above command works from SSH.
I'm running in PHP safe mode, so thats probably the reason it's not working.

ShiningArcanine 03-03-2006 05:44 PM

Quote:

Originally Posted by djwins
It is enabled as the above command works from SSH.
I'm running in PHP safe mode, so thats probably the reason it's not working.

File a support ticket with your host asking them why this does not work in PHP.

Edit: If you are on a dedicated server or virtual private server, you could try running PHP in normal mode and see if that is the problem.

SaN-DeeP 03-13-2006 04:41 AM

I am not sure what mistake i am doing, but I need to display page generated and queries executed message only to administrator group..

confused... can some provide some insight since new to vb 3.5.4 and need to get some forums up and running with required addons asap ?

just let me know the appropriate code to modify with ?

SaN-DeeP 03-13-2006 04:42 AM

thanks in advance for this handy addon :)

ShiningArcanine 03-13-2006 08:02 PM

Yourwelcome. You will want to find:

PHP Code:

$debughtml '<center><span class="smallfont">Page generated in <b>' $totaltime '</b> seconds with <b>' $vbulletin->db->querycount '</b> queries';

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

...

}

$debughtml .= "</span></center>"

And make it:

PHP Code:

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

$debughtml '<center><span class="smallfont">Page generated in <b>' $totaltime '</b> seconds with <b>' $vbulletin->db->querycount '</b> queries';
 
...
 
 
$debughtml .= "</span></center>";
  
  } 

I would post more detailed instructions but dinner is ready and I am starving. Let me know if this helps.

pauloo 03-25-2006 08:14 AM

I have changed a server ( asmallorange ) and the time is sometime negatif
Page genered in -0,89474 seconds with 11 queries ...

strange !
What's solution ?

Thank you

ShiningArcanine 03-26-2006 05:01 PM

That is strange. My site is hosted at ASO without any problems. What server at ASO are you on?

pauloo 03-26-2006 08:45 PM

My server is Jin shared

pauloo 03-26-2006 10:16 PM

THis server have a littel problem with hours. It's not stable. I think is th e problem and not your hack ;)

ShiningArcanine 03-27-2006 11:23 PM

You might want to file a support ticket with A Small Orange then.

Sidewindr 03-28-2006 12:13 AM

Just a query, If I have templates coming up as uncached how would I change things so they are cached ?

Coldhands 04-03-2006 06:06 PM

:banana: I was install #500!!!!!!!!!!!!!!!!

DementedMindz 04-19-2006 12:04 PM

is there anyway to put this under the vbulletin copyright?

carlosacgj 04-20-2006 04:19 PM

i can'r see the Server loads

ShiningArcanine 04-20-2006 06:09 PM

DementedMindz, use $config['Microstats']['replacementvariable'], there are instructions above.

Carlosacgj, if you are using Windows, microstats cannot display the server loads.

DementedMindz 04-20-2006 06:30 PM

opps sorry.... i didnt see thank you

csidlernet 04-21-2006 08:57 AM

great work, thanks.

Trana 04-27-2006 02:14 PM

How do I determine what the queries are and what modules/hacks require them?

ShiningArcanine 04-29-2006 08:23 PM

This is beyond the scope of microstats, but try using vBulletin's debug mode to find out what the queries being made are. You could also try disabling products/plugins to see if queries disappear when they are disabled.

Eagle Creek 05-04-2006 08:19 PM

It doesn't display the serverloads? Neither in the admin panel?

FiX 05-09-2006 05:17 PM

Hi.

I#ve removed the Plugin, but the stats still show up. Any idea whats going wrong? :S

I also tried to re-add the plugin and modified some text "page generated" but the changed text does not show up. it seems as if it somehow is somewhere else, but i cant find it

also if I deactivate the plugin system it still show up. other hacks I installed and thought could be the problem ist a template cache system, but I've deleted all cached templates...

hilfe-forum 05-13-2006 11:59 AM

Works fine:

Page generated in 1,71435 seconds with 87 queries [Server Loads: 2.15 2.10 : 1.98]

Install...

THX!!

RMS-Chef 05-13-2006 02:05 PM

87!!!!! woah

Snake 05-13-2006 03:27 PM

Quote:

Originally Posted by hilfe-forum
Works fine:

Page generated in 1,71435 seconds with 87 queries [Server Loads: 2.15 2.10 : 1.98]

Install...

THX!!

Jesus christ!

hilfe-forum 05-13-2006 05:20 PM

Quote:

Originally Posted by Lil Ripsta
Jesus christ!

no prob.. have a gooood Server..

much is this...


http://www.hilfe-forum.eu/vbgooglemaphse.php

Page generated in 0,21881 seconds with 178 queries [Server Loads: 3.96 3.99 : 4.22]

but OT

Point someone as I to find out can which Querries that are? If one something to somehow save there can...
Sorry for my babelfish english

ShiningArcanine 05-15-2006 10:38 PM

Quote:

Originally Posted by Eagle Creek
It doesn't display the serverloads? Neither in the admin panel?

You are probably on a Windows server. That would be normal behavior as server load averages do not exist under Windows.

Quote:

Originally Posted by FiX
Hi.

I#ve removed the Plugin, but the stats still show up. Any idea whats going wrong? :S

I also tried to re-add the plugin and modified some text "page generated" but the changed text does not show up. it seems as if it somehow is somewhere else, but i cant find it

also if I deactivate the plugin system it still show up. other hacks I installed and thought could be the problem ist a template cache system, but I've deleted all cached templates...

I do not know how that could be happening. Did you modify your templates? Have you tried contacting vBulletin support as if you uninstalled the plugin, it should be gone.

Snake 05-16-2006 07:42 AM

Strange. It just shows the page generation and SQL queries. What about the server load and all that?

"Page generated in 0.41221 seconds with 17 queries"

ShiningArcanine 05-16-2006 10:55 PM

Chances are you are on a Windows server. Server load averages only exist on *nix and BSD servers.

Snake 05-17-2006 12:31 PM

But it used to display the server load averages when I first installed the hack. Weird!

ShiningArcanine 05-17-2006 11:13 PM

Perhaps your host did something to the server your website is on. Try filing a support ticket with them.

Snake 05-18-2006 09:15 PM

Alright will do that.

Thanks for your reply though!

BeaLzeBuB 05-29-2006 12:54 AM

Code:

Page generated in 1.51093 seconds with 17 queries(1 queries for uncached templates) [Server Loads: 4.75 4.04 : 4.01]
Uncached templates: welcome_headers (1)

firstly thank you

and..

what is "uncached templates" means?

ShiningArcanine 05-29-2006 07:06 AM

It means that the welcome_headers template is not being cached by vBulletin and an additional query is being generated to fetch it. You might want to talk to the author of the welcome_headers plugin about it.

BeaLzeBuB 05-29-2006 12:16 PM

fixed.

thanks for Lizard King and ShiningArcanine


All times are GMT. The time now is 04:04 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.01671 seconds
  • Memory Usage 1,823KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (8)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
  • (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