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)

prawn 08-04-2005 09:21 AM

Someone knows if the queries executed by attachment.php and image.php are counted as well to the number of queries? Thanks.

Boofo 08-04-2005 09:36 AM

This was showing in my Admin CP redirect message when I logged into the Admin CP until I moved it up above the copyright message in the footer. Now it doesn't show in the redirect message any more. Is it supposed to work that way? ;)

Snake 08-04-2005 12:22 PM

Quote:

Originally Posted by ShiningArcanine
That line in config.php should say:

PHP Code:

$config['Microstats']['adminonly'] = true

I did regression testing before I released 1.2.1 so I would be sure that microstats wouldn't have the same bug twice. In my response to your post, I mentioned $vbulletin->config['Microstats']['adminonly'] because vBulletin changes $config['Microstats']['adminonly'] to $vbulletin->config['Microstats']['adminonly'] later in the script but as far as anything in config.php is concerned, the variable is $config['Microstats']['adminonly'].

Thanks, that solved the issue. ;)

ShiningArcanine 08-04-2005 06:47 PM

Quote:

Originally Posted by prawn
Someone knows if the queries executed by attachment.php and image.php are counted as well to the number of queries? Thanks.

No, it is only for the page. Any queries that anything the page links to makes won't be included in the figure.

Quote:

Originally Posted by Boofo
This was showing in my Admin CP redirect message when I logged into the Admin CP until I moved it up above the copyright message in the footer. Now it doesn't show in the redirect message any more. Is it supposed to work that way? ;)

That would make sense as it looks for the body closing tag by default. When you changed the behavior, you probably didn't add whatever you configured microstats to look for to the redirect message.

Boofo 08-04-2005 07:47 PM

Quote:

Originally Posted by ShiningArcanine
No, it is only for the page. Any queries that anything the page links to makes won't be included in the figure.



That would make sense as it looks for the body closing tag by default. When you changed the behavior, you probably didn't add whatever you configured microstats to look for to the redirect message.

Ok, that makes sense. I added the line in the config file and told it to look for <!--display microstats here --> and put that above copyright in the footer. That is why it isn't showing up there now. Too bad, though, it was nice to have it there. ;)

ShiningArcanine 08-04-2005 08:56 PM

Quote:

Originally Posted by Boofo
Ok, that makes sense. I added the line in the config file and told it to look for <!--display microstats here --> and put that above copyright in the footer. That is why it isn't showing up there now. Too bad, though, it was nice to have it there. ;)

You'll have to modify the template that handles that if you'd like microstats to display its data there. I think the template is STANDARD_REDIRECT but I'm not sure.

Boofo 08-04-2005 09:16 PM

Quote:

Originally Posted by ShiningArcanine
You'll have to modify the template that handles that if you'd like microstats to display its data there. I think the template is STANDARD_REDIRECT but I'm not sure.

It's not a big deal, I guess. Thanks for clearing it up for me though. Works great! I might even add some more stats to it for my own board. ;)

mOdEtWo 08-05-2005 10:06 PM

ShiningArcanine;

What do I have to do to get the stats/load to only show for my userID? I'm not sure if I can just wrap a "<if user =...>" conditional around the plugin xml without breaking anything.

ShiningArcanine 08-05-2005 10:10 PM

Quote:

Originally Posted by mOdEtWo
ShiningArcanine;

What do I have to do to get the stats/load to only show for my userID? I'm not sure if I can just wrap a "<if user =...>" conditional around the plugin xml without breaking anything.

There are two ways that would work off the top of my head but the best of the two would be simply to modify the plugin and wrap it in an if() statement that contains the appropriate agrument.

mOdEtWo 08-05-2005 10:47 PM

I'm not really sure how this whole plugin stuff works.

What you are saying is that all plugin xml is pasted into the same spot? Yes, then it would work to just wrap an if-statement around it. I'll try and let you know the results!

Cheers.


All times are GMT. The time now is 11:28 AM.

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.01283 seconds
  • Memory Usage 1,745KB
  • 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_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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