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)

ShiningArcanine 08-05-2005 10:53 PM

Quote:

Originally Posted by mOdEtWo
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.

In the plugin manager modify the plugin wrapping it with:

PHP Code:

if ($vbulletin->userinfo['userid'] == <insert id nohere>)
{

//plugin here




ShiningArcanine 08-05-2005 10:54 PM

Quote:

Originally Posted by ShiningArcanine
In the plugin manager modify the plugin wrapping it with:

PHP Code:

if ($vbulletin->userinfo['userid'] == <insert id nohere>)
{

//plugin here




You'll want to replace <insert id no. here> with the id number you want to display microstats to of course.

dbembibre 08-05-2005 11:08 PM

I have a problem /proc/loadavg exists and is owned by root, in php.ini i have
allow_url_fopen Off in local and Master, and display_errors On.

The @file_get_contents("/proc/loadavg") and @file_exists("/proc/loadavg") always return false. Apache 2 web server is started by user apache. I need turn on any value in my php.ini tu work this plug ????

Thanks a lot for your help

mOdEtWo 08-05-2005 11:20 PM

Aye, wrapping an if-statement around the plugin xml contents works.

Code:

if ($vbulletin->userinfo['userid'] == 28)
{
...
}


FleaBag 08-06-2005 12:42 AM

Nice addition... Thanks a lot. :)

ShiningArcanine 08-06-2005 02:51 AM

Quote:

Originally Posted by dbembibre
I have a problem /proc/loadavg exists and is owned by root, in php.ini i have
allow_url_fopen Off in local and Master, and display_errors On.

The @file_get_contents("/proc/loadavg") and @file_exists("/proc/loadavg") always return false. Apache 2 web server is started by user apache. I need turn on any value in my php.ini tu work this plug ????

Thanks a lot for your help

Contact your webhost.

dbembibre 08-07-2005 11:24 PM

Solved, i need add /proc/loadavg to the open_basedir setting and now work ok

Guest190829 08-13-2005 09:20 PM

Installed and working great! Good job!

/me clicks install

PING1434a 08-14-2005 09:33 AM

When attempting to install, it gives Invalid File error. Using 3.5 RC2 which was upgraded from RC1

EDIT!:
Oops, didn't read the instructions right, I'm currently playihng around with 3.5, so I'm still a n00b in using the new plug-in system, I kept trying to install it through the product adding menu instead of plug-in adding meu. :o

poolking 08-14-2005 05:46 PM

/me installed


All times are GMT. The time now is 12:24 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.03945 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_php_printable
  • (3)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