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)

Biker_GA 08-02-2005 05:19 PM

Did you modify config.php?

Snake 08-02-2005 06:25 PM

Uh no. What do I've to do exactly in confهg.php file?

Biker_GA 08-02-2005 06:26 PM

Read the instructions at the top?

Snake 08-02-2005 06:31 PM

Quote:

$config['Microstats']['adminonly'] = true;
I have placed the above code already in config.php and it is still visible to the members.

ShiningArcanine 08-02-2005 08:05 PM

Quote:

Originally Posted by Snake
I have placed the above code already in config.php and it is still visible to the members.

This a bug in microstats. Basically, I used $config['Microstats']['adminonly'] in microstats's PHP code and vBulletin changes its name to $vbulletin->config['Microstats']['adminonly']. I didn't think such a simple thing needed testing. ^_^;;

I've released version 1.2.1 to fix this bug.

akanevsky 08-02-2005 08:19 PM

Thank you very much :banana:

Snake 08-03-2005 08:32 AM

Quote:

Originally Posted by ShiningArcanine
This a bug in microstats. Basically, I used $config['Microstats']['adminonly'] in microstats's PHP code and vBulletin changes its name to $vbulletin->config['Microstats']['adminonly']. I didn't think such a simple thing needed testing. ^_^;;

I've released version 1.2.1 to fix this bug.

Ha I knew there's a bug somewhere around. :P Thanks.

Snake 08-03-2005 08:34 AM

Btw, I have upgraded to 1.2.1 and everything but my members say they can still view the microstats. :( Here's how my config.php file looks like.

Quote:

// ****** SUPER ADMINISTRATORS ******
// The users specified below will have permission to access the administrator permissions
// page, which controls the permissions of other administrators
$config['SpecialUsers']['superadministrators'] = '1';

// ****** MySQLI OPTIONS *****
// PHP can be instructed to set connection paramaters by reading from the
// file named in 'ini_file'. Please use a full path to the file.
// Used to set the connection's default character set
// Example:
// $config['Mysqli']['ini_file'] = 'c:\program files\MySQL\MySQL Server 4.1\my.ini';
$config['Mysqli']['ini_file'] = '';

// ****** MICROSTATS OPTIONS *****
// Setting this variable to anything will make microstats display itself only to administrators.
$vbulletin->config['Microstats']['adminonly'] = 'true';
I have done everything right, so there might a bug somewhere again. ;)

Boofo 08-03-2005 08:45 AM

Is there a way to move this above the copyright notice with a break in between it and the copyright?

EDIT: Disregard this post. I found it in the first post, sorry. ;)

ShiningArcanine 08-03-2005 08:30 PM

Quote:

Originally Posted by Snake
Btw, I have upgraded to 1.2.1 and everything but my members say they can still view the microstats. :( Here's how my config.php file looks like.



I have done everything right, so there might a bug somewhere again. ;)

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'].


All times are GMT. The time now is 01:06 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.01416 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
  • (6)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