![]() |
Thanks for the port SA -- flawless install and working like a champ.
:) |
Quote:
MYSQL 4.1.8 Linux I'm just quite perplexed as to why these two forums, hosted on the same box display differently.. for some reason both parts of the if statement are being executed on the second forum. |
I too get the same, both parts of the load statement get executed and displayed.
|
/me installs
Thanks SA! |
Thank ShiningArcanine
|
gr8!!
|
Nice plugin!
To display the load average at a freeBSD server I had to replace this Code:
if ($loadavg = @file_get_contents("/proc/loadavg")) { Code:
$loadavg = `sysctl vm.loadavg|cut -d" " -f3-5`; |
Screenshots please?
|
Quote:
|
this is great, the only thing that annoys me is it show up in places like the "attach manager" window and messes with the layout.
|
stupid qustion >> what is a query?
|
Will this work on RC1?
|
What about people that have not whitespace below the footer?
Like my site: http://www.mustangevolution.com/forum Notice if I install this hack it pushes up the red bar at the bottom and looks weird... anyway to relocate the output text? |
I was thinking of making a new version that allows this to be set from config.php.
Quote:
Quote:
|
Oh boy this is a great hack but could you make a feature where administrators are "only" allowed to view the mircrostats? There is no point to show it up to the other members really. :\
|
Screenshot, please? Seriously... :(
|
Quote:
|
Where?
|
Quote:
Personally I like seeing execution times and query counts displayed on vBulletin so you'll have to modify it if you want it to display that information only to administrators. |
Quote:
https://vborg.vbsupport.ru/showpost....4&postcount=30 |
Okay, everyone. I took some time and wrote version 1.2.0. Here is the changelog:
-Added OpenBSD, FreeBSD and NetBSD support -Added Replacement variable setting in config.php -Added Display only to Administrators Setting in config.php -Fixed bug affecting Linux/Unix servers that have exec('uptime') support and not /proc/loadavg support. The replacement variable setting basically allows you to have the stock modification place its data before something other than "</body>." Everything else should be shelf explanatory. Edit: So much for having to edit microstats so it is displayed only to administrators. :laugh: :ninja: |
The server load averages aren't working for me. I put in some flags and it seems that the code is entering the is admin if statement but not entering any of the load average if statements.
I don't know about other people but I would appreciate it heaps if the variables were in the vbulletin options rather than the config file because as simple as it may be I still consider adding lines to your config a file edit and simply opening and ftp program is a pain in the bum. |
What do you mean by they aren't working for you? Are they not being displayed? If you're not running Linux/Unix/FreeBSD/OpenBSD/NetBSD that is to be expected.
|
I am running on a linux server and the server loads are not showing at all...
|
Did the previous version work? Does your server support exec('uptime') or /proc/loadavg?
|
Didn't try the previous version and I don't know... probably not by the looks of it.
|
Quote:
|
Same here
|
Quote:
|
I have upgraded the plugin and members can still view the microstats. Any idea?
|
Did you modify config.php?
|
Uh no. What do I've to do exactly in confهg.php file?
|
Read the instructions at the top?
|
Quote:
|
Quote:
I've released version 1.2.1 to fix this bug. |
Quote:
|
Quote:
|
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:
|
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. ;) |
Quote:
PHP Code:
|
All times are GMT. The time now is 04:21 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|