View Full Version : Microstats - load times, server loads, queries, uncached templates
i install the plugin before one month i try to unustall it now and install the product and its not on the plugin list...
i try to istall it 2 more times and still doesnt no appeard on plugin list ( i install the PLUGIN)byt on forum home the stats displayed 3 times now
SOS SOME ONE HELP ME??
eclectica
13 Jun 2006, 21:01
This works fine with vBulletin 3.6 beta 2.
Page generated in 3.88997 seconds with 8 queries [Server Loads: 18.30 13.06 : 10.40]
Thats what I see, is this correct, or am i missing some items???
Also.....homepage takes around 4 seconds to load...could anyone provide me with some insight into this. Is this something I may have done to the board to make it move slow, is it server side, can i optimize etc..... cheers
Peace
ShiningArcanine
14 Jun 2006, 00:35
i install the plugin before one month i try to unustall it now and install the product and its not on the plugin list...
i try to istall it 2 more times and still doesnt no appeard on plugin list ( i install the PLUGIN)byt on forum home the stats displayed 3 times now
SOS SOME ONE HELP ME??
It is really not necessary to install the new product file if you are using the old plugin. Are you using the plugin manager to uninstall the old plugin and the product manager to install the new product?
Yes i fixed now i dont remember how byt i fixed..
Hi,
i like the Microstats and it works very well at my page...
i have one question: i have photopost integrated with vb3... is it possible that the Microstats work on photopost pages, too? and if, how can i made this?
thanks
Peter
ShiningArcanine
19 Jun 2006, 18:20
I would not know about that but if you wanted to make it work with external scripts, you would have to integrate vBulletin's hooks systems with it, in particular the global_complete hook.
I would not know about that but if you wanted to make it work with external scripts, you would have to integrate vBulletin's hooks systems with it, in particular the global_complete hook.
thanks...
Mudvayne
19 Jun 2006, 19:30
Hello ShiningArcanine I hav got a prob with this.. Previously I edit your plugin to giv the same access as Admin to another usergroup.. Both is given bellow..
I hav changed in plugin from:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
To:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And from:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
To:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
After tht the plugin was workin like charm.. But whn I hav reedit the product.xml then I got that error..
Parse error: syntax error, unexpected T_LOGICAL_OR in /hermes/web07/******/***.golponet/htdocs/forum/includes/functions.php(4367) : eval()'d code on line 9
Any help? I need to another usergroup to giv admin access.. Thnx in advance..
ShiningArcanine
19 Jun 2006, 23:58
That is an error from the PHP Parser. It generally means that you made a mistake somewhere. Looking at the first big of code you wrote, where the error occurred, everything looks okay. Have you tried re-editing the XML file to rule out the possibility of a typographical error? Also, have you tried editing the product's plugin directly in the AdminCP?
Mudvayne
20 Jun 2006, 00:20
I figured it out.. Edit the plugin via Admin CP.. Now its workin.. But in plugin ($vbulletin->userinfo['usergroupid'] == 6 or $vbulletin->userinfo['usergroupid'] == 9)) was worked fine.. But in priduct ($vbulletin->userinfo['usergroupid'] == 6 or $vbulletin->userinfo['usergroupid'] == 9)) gives error so I remove 1 brace n its start workin..
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
TheBlackPoet
21 Jun 2006, 06:58
i never had a need for this type of information nor has my members.. but i installed it anyway... and found that I DID have a need for this... and it works great! thanks
ssslippy
28 Jun 2006, 23:59
Ok I was able to get it to show 2x by using the <!-- display microstats here --> in the footer. How can I get it to only show once?
Are you all ready for a dumb question? How to I get my uncached templates cached??
Mudvayne
11 Jul 2006, 18:08
Are you all ready for a dumb question? How to I get my uncached templates cached??
U can modify ur php file.. Don forget to change the Template_Name..
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Or u can try this plugin.. But don forget to edit this line in plugin.. U just hav to put the uncached Template_Name..
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Sorry my english :confused:
THANK YOU SHUVO!!!!!!!!!! One other dumb question - which php file should I edit? global?
Mudvayne
11 Jul 2006, 19:13
THANK YOU SHUVO!!!!!!!!!! One other dumb question - which php file should I edit? global?
Depend which php file its using n which template is uncached.. Suppose SHOWTHREAD template is uncached thn u shud edit showthread.php.. But its allready hav done by vB dev ;).. Newayz u better use tht plugin I provide.. Or u can tell me which template u hav found uncached! I 'll provide a plugin tht u don hav to edit..
OK I tried the plug in for "navbar2" and it didn't work.... here's what it's still showing me:
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2006, Jelsoft Enterprises Ltd.
Copyright 2005, Yada Yada Yada Copyright 2005, Let's Yada Yada Yada
Page generated in 0.79214 seconds with 19 queries (2 queries for uncached templates) [Server Loads: 1.92 2.59 : 2.89]
Uncached templates: gallery_top5 (4)
Uncached templates: navbar2 (1)
But THANK YOU for your help, sir!!!!!!!!!!!
wait wait - It DID work - You are the KING I bow to you LOL thank you
Mudvayne
11 Jul 2006, 20:00
wait wait - It DID work - You are the KING I bow to you LOL thank you
U r most welcome :).. BTW u shud edit ur signature.. Shud edit the link from http://www-lets-yada-yada-yada.com/ to http://www.lets-yada-yada-yada.com/ ;)..
Here's one that I made based on the 3.0.x MS hack. I liked how it used the drop-down box style for the cached / uncached templates. Just thought I would share incase someone wanted the older style too. I hard-coded it to use {ms} as the replacement variable, but you can set it to whatever you want quite easily.
I want to use your version Jason, but I havent been able to make it work...
is there any extra steps I need to take, or how do I make the stats appear in my website???
any help would be appreciated....
Bulent Tekcan
04 Aug 2006, 13:37
Is it work 3.6.0 ?
Mudvayne
04 Aug 2006, 14:58
Using it with 3.6 & got no error yet.. Seems working fine for me :D.. But it would be better if the coder confirm himself about it..
This plugin breaks uploading attachments (i.e. pdf-files) in vBulletin 3.6.0.
aciurczak
05 Aug 2006, 18:26
Didn't break uploading attachments for me. I'm on 3.6.0, and just re-tested loading and saving an attachment (pdf file).
Muellmann
27 Aug 2006, 20:26
This plugin breaks uploading attachments (i.e. pdf-files) in vBulletin 3.6.0.
I can't confirm that. Maybe your Uploadspeed lacks, but for me works all fine
on 3.60 Gold.
eclectica
30 Aug 2006, 03:17
You should list this under 3.6 since that is now the main vBulletin software.
curriertech
09 Sep 2006, 21:15
Installed and working fine on 3.6, but I'd love to get the replacement variable part to work (I tried it, and it simply doesn't show on the page - I have to leave it as the default)...because I'd like it under my copyright info and not at the very bottom of the page because it messes with some of my custom styles.
ShiningArcanine
16 Sep 2006, 00:06
This plugin breaks uploading attachments (i.e. pdf-files) in vBulletin 3.6.0.
I cannot verify that.
You should list this under 3.6 since that is now the main vBulletin software.
I would rather not have to maintain two threads though. I will update the main post though, to specify that.
Installed and working fine on 3.6, but I'd love to get the replacement variable part to work (I tried it, and it simply doesn't show on the page - I have to leave it as the default)...because I'd like it under my copyright info and not at the very bottom of the page because it messes with some of my custom styles.
Are you sure that you edited config.php appropriately and you edited the templates to add the appropriate comment?
curriertech
16 Sep 2006, 00:53
Are you sure that you edited config.php appropriately and you edited the templates to add the appropriate comment?
Yep, if I do it that way it simply doesn't show up at all.
ShiningArcanine
16 Sep 2006, 00:57
Have you checked the HTML source to make sure that the comment is being sent to the browser?
curriertech
16 Sep 2006, 00:59
Have you checked the HTML source to make sure that the comment is being sent to the browser?
I guess that would be a logical thing to do, wouldn't it? :D I didn't, no...I tested it quick and then just set it back to the default install (which I'm quite happy with). I'll try to check that tonight.
curriertech
16 Sep 2006, 01:13
Yeah nevermind...I have no idea why (unless 3.6.1 fixed something?) but it works fine with the variable now. :D
ubblite
26 Sep 2006, 11:27
This is probably a dumb question but I'm trying to make this mod display to admins only.
I do not see:
$config['Microstats']['adminonly']
in here:
plugin manager --> microstats --> edit
I found something close, but not exact & tried changing it and got errors.
Any help would be much appreciated.
Mudvayne
26 Sep 2006, 11:37
This is probably a dumb question but I'm trying to make this mod display to admins only.
I do not see:
$config['Microstats']['adminonly']
in here:
plugin manager --> microstats --> edit
I found something close, but not exact & tried changing it and got errors.
Any help would be much appreciated.
For enable this mod Adminonly you need to edit your config.php file :).
Open ./forum/includes/config.php & put this code anywhere above ?>
// ****** MICROSTATS OPTIONS *****
// Setting this variable to anything will make microstats display itself only to administrators.
$config['Microstats']['adminonly'] = true;
ubblite
26 Sep 2006, 11:47
Thanks for you help, Icy... that worked.
I viewed this thread and kept seeing config.php but was thinking it didn't come with the modification, lol... didn't realize they meant vb's config file.
Microstats! lol - I searched for everything but! I've been looking for this for a while . . . *Installed* and a it's very, very helpful tool. Thank you.
As for the "Modification Questions" forum, where I posted my original request for info on this (and got no reply) . . maybe they should take a lesson from IPB, since it was one of their users that told me where to find this!
3 words was all I needed: "search for microstats" - but did the folks here bother to tell me? 3 words to help someone out, and no-one could be bothered - that sucks.
Anyway, thanks again to ShiningArcanine for this hack - it's much appreciated.
Neal-UK
28 Sep 2006, 13:38
Page generated in 0.19277 seconds with 21 queries (1 queries for uncached templates) [Server Loads: 2.47 2.13 : 2.23]
Uncached templates: groups_usercp_groupsbits (1)
I get this when in usercp, is that bad? (The bit in red)
EvilHawk
28 Sep 2006, 14:33
Uncached templates: groups_usercp_groupsbits (1)
You can use this info to edit the hack, that uses this template, so as to cache it ...
tip: Read this tutorial [How-To] Cache Templates (http://www.vbulletin.org/forum/showthread.php?t=104532&highlight=cache+templates) ;)
Eagle Creek
28 Sep 2006, 21:01
3.6.1 compatible?
EvilHawk
28 Sep 2006, 21:19
yes, it works fine with 3.6.1
Eagle Creek
28 Sep 2006, 21:41
great! thx!
Masiello
30 Sep 2006, 21:51
Hello,
can anyone ported this on a vb 3.6.x thread to can see i'ts full compatible?
curriertech
30 Sep 2006, 23:54
Hello,
can anyone ported this on a vb 3.6.x thread to can see i'ts full compatible?
There are several people running this on 3.6.x with no problem at all (me included). :)
Chris-777
21 Oct 2006, 14:44
I realize that this has been out for a while now, but I nominated it for MOTM anyhow. This hack helped me notice a rootkit running on my box not long ago. I saw the high server load, it immediately threw a red flag, and I was able to nip it in the bud before anything destructive happened.
Great mod. :D
I like this very much but i would like to know is how do i remove ...
Look at the screen shot whater marked in red i would like to remove please help :D
ShiningArcanine
24 Oct 2006, 02:30
You have an uncached template. I have never had that problem myself, but I believe that you will want to add 'Marquee_Text' to the $globaltemplates array in global.php.
eclectica
31 Oct 2006, 15:43
If your forum is turned off it will show an uncached template message too.
ShiningArcanine
02 Nov 2006, 21:30
That is by vBulletin's design. It is more efficient not to cache rarely used templates than it is to cache them, so the vBulletin developers did that instead of caching every template vBulletin uses.
Cybershaolin
17 Dec 2006, 14:11
What does mean ans implies this?
Uncached templates: Marquee_Text (1)
How do you include it in cache?
meissenation
20 Dec 2006, 13:32
Are these stats bad?
Page generated in 0.62878 seconds with 31 queries (5 queries for uncached templates) [Server Loads: 3.70 1.87 : 1.11]
My host has been continuously telling me that my site is overloading the apache server, and they forced me to upgrade to semi-dedicated. Now that I've upgraded to a semi-dedicated host, they're STILL telling me that my site is using too much of the server's resources.
Eagle Creek
20 Dec 2006, 14:06
What does mean ans implies this?
How do you include it in cache?
Read this and you'll know:
http://www.vbulletin.org/forum/showthread.php?t=104506&highlight=Uncached+templates
Are these stats bad?
My host has been continuously telling me that my site is overloading the apache server, and they forced me to upgrade to semi-dedicated. Now that I've upgraded to a semi-dedicated host, they're STILL telling me that my site is using too much of the server's resources.
Those query's at a little high, not that high.. Where do you get these stats? Index?
The server load is high yes.
Are the forums the only thing you are running? Do you have made a lot of customisations?
Cybershaolin
20 Dec 2006, 18:15
Thanks Eagle Creek, that worked! :)
I realize that this has been out for a while now, but I nominated it for MOTM anyhow. This hack helped me notice a rootkit running on my box not long ago. I saw the high server load, it immediately threw a red flag, and I was able to nip it in the bud before anything destructive happened.
Great mod. :D
How did you figure out to find the rootkit guilty code using this plugin? I know you got warned by the high server load but then, after, how did you manage to know where to llok exactly?
ShiningArcanine
20 Dec 2006, 20:22
Judging from his post, it appears that Chris has a dedicated server and he has probably had it for some time. Assuming that Chris frequently browses his forums, I would imagine that he became accustomed to what typical loads were on his server and when they sky rocketed, he started to investigate.
meissenation
20 Dec 2006, 21:04
Yeah, I was a customization +++++. :D But do you honestly think it looks like it'd be overloading the server? Those stats were from the index.
Read this and you'll know:
http://www.vbulletin.org/forum/showthread.php?t=104506&highlight=Uncached+templates
Those query's at a little high, not that high.. Where do you get these stats? Index?
The server load is high yes.
Are the forums the only thing you are running? Do you have made a lot of customisations?
ShiningArcanine
20 Dec 2006, 23:44
It really depends on what your site's traffic is and what your modifications are doing. If you take care of the uncached templates, your host might stop bothering you.
Eagle Creek
20 Dec 2006, 23:56
I agree with ShiningArcanine.
Also: Do u really _need_ that modification? Sometimes, there are others available, wich put less load on your server.
cOuNtErFiET
23 Dec 2006, 02:42
where do i edit what the admin groups are cause i have a customized admin group on my board and its not 6 along with a few other admin groups that i have to add yet too ty
Mudvayne
23 Dec 2006, 05:58
where do i edit what the admin groups are cause i have a customized admin group on my board and its not 6 along with a few other admin groups that i have to add yet too ty
See these posts.
http://www.vbulletin.org/forum/showpost.php?p=1011248&postcount=259
http://www.vbulletin.org/forum/showpost.php?p=1011485&postcount=260
http://www.vbulletin.org/forum/showpost.php?p=1011485&postcount=261
this doesn't work with vB 3.6.4 can anyone help me with this? PLEASE, Thank you!
Mudvayne
27 Dec 2006, 09:06
yuriy this works fine for me on 3.6.4.
Just installed 3.6.4 Great product. No problems at all.
meissenation
01 Jan 2007, 04:24
WOW! What a difference! That was on my semi-dedicated server (the 3.46 load) and I switched to dedicated with a different host, I've never seen the server load go over 1.0
ehhh, moved to a linux hosting everything works nicely on 3.6.4 :)
Eagle Creek
10 Jan 2007, 00:28
It only says Page generated in 0.14053 seconds with 11 queries, so I don't see any server load.
(CentOS 4.4)
Mudvayne
10 Jan 2007, 04:40
Its only viewable by vB default Admin usergroup. Which group you are in?
Eagle Creek
10 Jan 2007, 05:09
UG ID 6, Administrators.
does this work for 3.6.x ??
Mudvayne
10 Jan 2007, 11:11
UG ID 6, Administrators.
Then it should work. I don't know. Try reinstalling the hack.
@ mrahul. Yep works fine for me.
Eagle Creek
10 Jan 2007, 14:41
I did... I tried that already before.
teedizz
11 Jan 2007, 01:31
Does anyone no why when i try to import this as a product is says " No file uploaded and no local file found. " ...then when i try to install it as a plug-in it says the ame thing....Im running 3.6.4
Then it should work. I don't know. Try reinstalling the hack.
@ mrahul. Yep works fine for me.
oki, just tried & it worked. yipppee!! thanks
The only place that it doesnt work is the logon redirection screen. All the stats there are waaaay wrong on my forum. Anyone got a fix for that?
bluechris
20 Feb 2007, 13:47
Hi guys .. i get this in 3.6.4 when i enable the mod
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
And i d know wheres the prob.
thincom2000
21 Feb 2007, 07:16
In my experience that has been a problem with my host and no fault of my own.
bluechris
21 Feb 2007, 14:52
Its a rented server by me.. so i control it fully... if you can be more specific i will appreciate it.
Thx
Chris
eclectica
04 Mar 2007, 17:47
When I upgraded vBulletin to 3.6.5 it stopped showing server loads to me.
curriertech
04 Mar 2007, 17:50
When I upgraded vBulletin to 3.6.5 it stopped showing server loads to me.
It's working fine on both of my 3.6.5 sites so I don't think it's a version issue. Try reinstalling the plugin?
eclectica
04 Mar 2007, 23:59
I tried reinstalling. Maybe it's the webhoster or server settings then. Thanks.
Smoothie
05 Mar 2007, 00:04
works fine for me w/ 3.6.5
lighter
28 Apr 2007, 10:52
Is there a way to hide the whole stats from the public but show the stats + server loads to a few selected usergoups only?
Slyfox1
23 May 2007, 11:58
Awesome!!
Simple, flexible and works with 3.7.1
Just one thing. I don't want to see the cache information. I've changed the group ID to 200 atm, is there a way I can remove this information out of the plugin? I did try and it all failed :(
I only really wanna see the time to generate the page and the number of queries?
Thanks
mcyates
14 Jul 2007, 09:51
Page generated in 0.188 seconds (100.00% PHP - 0% MySQL) with 21 queries
Why does it always show 100.00% PHP - 0% MySQL?
Doe I have to edit something on my server to show the % for mysql and php?
Thanks in advance.
frostyIntrepid
19 Sep 2007, 16:06
The only place that it doesnt work is the logon redirection screen. All the stats there are waaaay wrong on my forum. Anyone got a fix for that?
Mine is showing wrong stats as well. Something like 5323 seconds for 12 queries?
Smiry Kin's
19 Sep 2007, 16:50
it is designed for 3.5.4.. soo if your using a different version. readings might be incorrect!
frostyIntrepid
21 Sep 2007, 11:41
it is designed for 3.5.4.. soo if your using a different version. readings might be incorrect!
hmm, any idea how I can get edit it for it to work correctly for 3.6.8?
Smiry Kin's
21 Sep 2007, 15:58
No idea, sorry. But someone said before that you can take the query info out off the ACP, and place it on the main footer, it also doesnt add to any querys
Traxdata
18 Dec 2007, 18:09
works on 3.70. beta2
MissKalunji
21 Mar 2008, 01:45
working on 3.7.0 Beta Rc 1
cavyspirit
18 Apr 2008, 04:11
My forum is really slow to load pages at certain times of the day.
I got:
Page generated in 18.34197 seconds with 14 queries [Server Loads: 5.68 2.76 : 1.35]
Then, once in and doing a refresh, I got:
Page generated in 1.84214 seconds with 14 queries [Server Loads: 1.18 2.15 : 1.34]
I'm running a virtual private server and according to my host, utilization all the way around is very low. Upgrading to a dedicated server supposedly isn't going to buy me anything.
I like the hacks that I have, but it seems something(s) gotta go. I just took one rss javascript feed out of the left-hand column, but it looks like more's gotta go. Bummer.
I'm not sure what the server load numbers really mean.
I'm currently on 3.6.4 waiting for 3.7 gold to upgrade.
I thought the stats would show more queries based on my hacks, so now I'm not sure how to tune.
www.guineapigcages.com/forum/index.php
MissKalunji
18 Apr 2008, 04:25
what hack do you have?
cavyspirit
18 Apr 2008, 04:58
36:
Add PhotoPost Pro to each forum
Archive Adsense
BBcode templates manager
Cafe Press Add On
Catagory Icons
Enhanced Captcha Image Verification
FlashChat Integration
Global Announcement
GTSearch: Google™ Custom Search Engine
Guest Tracking
IpInfo
Latest X Threads on Forum Home
Left Column
Members who are using flashchat
Members who have Visited
Microstats
Mini Navbar
Miserable Users
Moderation Auto-PM
Multiple Login Detector
NoSpam!
Per-Thread Moderation
Post Thank You Hack
Real ip detection
Separate Sticky and Normal Threads
Show Birthday Icon in Postbit
SR Classifieds Premium 1.0.5
Sticky-Blue
Total Thanks - Forum Home Stats
vB Ad Management
vB Ad Management English language
vbgooglemap by StonyArc
vBSEO
vBSEO :: Sitemap Generator
Viper's YouTube & Google Video
Welcome Headers
My forum is really slow to load pages at certain times of the day.
I got:
Page generated in 18.34197 seconds with 14 queries [Server Loads: 5.68 2.76 : 1.35]
Then, once in and doing a refresh, I got:
Page generated in 1.84214 seconds with 14 queries [Server Loads: 1.18 2.15 : 1.34]
I'm running a virtual private server and according to my host, utilization all the way around is very low. Upgrading to a dedicated server supposedly isn't going to buy me anything.
I like the hacks that I have, but it seems something(s) gotta go. I just took one rss javascript feed out of the left-hand column, but it looks like more's gotta go. Bummer.
I'm not sure what the server load numbers really mean.
I'm currently on 3.6.4 waiting for 3.7 gold to upgrade.
I thought the stats would show more queries based on my hacks, so now I'm not sure how to tune.
www.guineapigcages.com/forum/index.php
Those loads are high. Try disabling like 5 hacks at a time and see if you can narrow it down to a certain hack. Or turn off all plugins by editing config.php and see if load times stay the same. If so, you either have too many users for the server or vB isn't the problem...
MissKalunji
18 Apr 2008, 15:56
36:
Add PhotoPost Pro to each forum
Archive Adsense
BBcode templates manager
Cafe Press Add On
Catagory Icons
Enhanced Captcha Image Verification
FlashChat Integration
Global Announcement
GTSearch: Google™ Custom Search Engine
Guest Tracking
IpInfo
Latest X Threads on Forum Home
Left Column
Members who are using flashchat
Members who have Visited
Microstats
Mini Navbar
Miserable Users
Moderation Auto-PM
Multiple Login Detector
NoSpam!
Per-Thread Moderation
Post Thank You Hack
Real ip detection
Separate Sticky and Normal Threads
Show Birthday Icon in Postbit
SR Classifieds Premium 1.0.5
Sticky-Blue
Total Thanks - Forum Home Stats
vB Ad Management
vB Ad Management English language
vbgooglemap by StonyArc
vBSEO
vBSEO :: Sitemap Generator
Viper's YouTube & Google Video
Welcome Headers
yeah try what the othe rperson said and you can also post a server optimization on vb.com it helps a lot are you on dedicated? or shared?
It took me : Page generated in 115.71136 seconds
Keep in mind that some like :latest x thread are server intensive some aren't build for active forums as well....
The number of queries isn't all but also how heavy a query is
i also notice that your forum itself isn't slow ONLY the main page....so it could be that your problem?
Traxdata
30 Apr 2008, 18:20
working on 3.7 Gold! Great! :)
MissKalunji
30 Apr 2008, 18:37
*co-sign*
work for 3.7.x and any releases planned ?
Kinneas
19 May 2008, 15:47
work for 3.7.x and any releases planned ?
I'd say no, considering the Author of this one hasn't posted since 2006. The good news is this one still works fine on 3.7.
that's great, where ever the author is 3cheers for his excellent coding to be working on 2 later releases too :up:
Artes_Marciales
06 Jun 2008, 16:52
Thanks Work fine 3.7.1 : )
odeezie
26 Jun 2008, 19:14
Working in 3.7.2, Thanks! :)
ALil'Hope
29 Jun 2008, 04:24
Installed and working on 3.7.2.
David_R
05 Aug 2008, 16:17
How do we enable this option to work for multiple usergroups ?
We want Administrators, super-moderators and moderator usergroups to be able to check server load.s
thanks
How would I go about moving the location of the text that gets printed out?
I would like to put it with the copyright text... Otherwise it screws with my design:
http://www.8wayrun.com/forums.php
make sure you have the following in config.php:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
then add <!-- display microstats here --> at the very bottom of the footer template
Worked on 373PL1 :up:
Neutral Singh
09 Nov 2008, 07:28
It is possible to see which query is taking how much time to execute? So that we can debug or optimize those queries. i am facing issued when clicking on the Forums to go to forumdisplay.php. Its taking like 25 secs on load 43 queries on a forumdisplay.php page. How can view those queries and how much they are taking. This is most urgent please.
aciurczak
09 Nov 2008, 17:31
I don't think this hack can be used to time individual queries, it only marks the time difference between the page request and when it is complete.
43 queries on a forumdisplay.php page seems like quite a bit of them. I just loaded the forumdisplay.php page on two forums I admin. The more customized one ran 26 queries on a forumdisplay, one that is a little closer to stock ran 21 queries. To figure out what is taking so long on yours, I'd disable all plug-ins, then re-enable them 1 by 1 until you see the page load time increase dramatically.
works with 3.8.0 beta 4 as well
How do we enable this option to work for multiple usergroups ?
We want Administrators, super-moderators and moderator usergroups to be able to check server load.s
thanks
Go to Plugin & Products System -> Product Manager -> Microstats.
Remove the current code, replace with..
$pageendtime = microtime();
$starttime = explode(' ', $pagestarttime);
$endtime = explode(' ', $pageendtime);
$totaltime = vb_number_format($endtime[0] - $starttime[0] + $endtime[1] - $starttime[1], 5);
$debughtml = '<center><span class="smallfont">Page generated in <b>' . $totaltime . '</b> seconds with <b>' . $vbulletin->db->querycount . '</b> queries';
$usergroupid = $vbulletin->userinfo['usergroupid'];
if ($usergroupid == 5 || $usergroupid == 6 || $usergroupid == 7) {
if ($loadavg = @file_get_contents("/proc/loadavg")) {
$regs = explode(" ",$loadavg);
$serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']';
}elseif ($stats=@exec('uptime')) {
preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/',$stats,$regs);
$serverload = ' [Server Loads: <b>' . $regs[1] .'</b> ' . $regs[2] . ' : ' . $regs[3] . ']';
}elseif ($loadavg = @`sysctl vm.loadavg|cut -d" " -f3-5`) {
$regs = explode(" ",$loadavg);
$serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']';
}
$debughtml .= iif($_TEMPLATEQUERIES, ' (<b>' . sizeof($_TEMPLATEQUERIES) . '</b> queries for uncached templates)', '') . "$serverload";
ksort($tempusagecache);
foreach ($tempusagecache AS $tempname => $times) {
if ($_TEMPLATEQUERIES["$tempname"]){
$debughtml .= '<center><span class="smallfont">Uncached templates: <font color="red"><b>' . $tempname . '</b></font> (' . $times . ')</span></center>';
}
}
}
$debughtml .= "</span></center>";
if (!$vbulletin->config['Microstats']['replacementvariable']) {
$vbulletin->config['Microstats']['replacementvariable'] = '</body>';
}
if (($vbulletin->config['Microstats']['adminonly'] and $vbulletin->userinfo['usergroupid'] == 5 || $usergroupid == 6 || $usergroupid == 7) or !$vbulletin->config['Microstats']['adminonly']){
$output = str_replace($vbulletin->config['Microstats']['replacementvariable'], $debughtml . $vbulletin->config['Microstats']['replacementvariable'], $output);
}
Where you see the usergroupid = 5, 6 & 7, replace those numbers with whatever your usergroup id's are that you want to see the microstats.
Hope this helps :)
I need this plugin :
generated this page in 0.21 seconds (79.54% PHP - 20.46% MySQL) with 11 queries.
from forum http://forums.offtopic.com/
p.s. good forum... Posts: 112,870,447 :)
Vodkaholic
06 Apr 2009, 06:10
i get
Uncached templates: awards_postbit_display (1)
Uncached templates: im_msn (1)
Uncached templates: postbit_legacy (1)
Uncached templates: postbit_onlinestatus (1)
Uncached templates: postbit_reputation (3)
Uncached templates: postbit_wrapper (1)
is this bad? :confused:
Yes it is! You're having 8 extra queries just for these uncached queries!
Vodkaholic
06 Apr 2009, 19:17
Yes it is! You're having 8 extra queries just for these uncached queries!
How can i fix this than mate
Cheers
I guess one of your modification cause this though I'm not sure which one. Try disabling one by one and test :)
Or read the article in the article section about how to cache your templates.
But Lynne these are the default templates which should be cached by default unless he changed something from the core vBulletin code right?
But Lynne these are the default templates which should be cached by default unless he changed something from the core vBulletin code right?
You are right. I just looked at the first one (awards_) and knew that was not default. So yes, you are right in guessing some modification is causing the problem.
I use this free caching mod from Ziki: http://www.vbulletin.org/forum/showthread.php?p=1784393 Works great on 3.8 and 3.7
ubcforums
30 May 2009, 18:14
working on 3.82 as well !!
David_R
22 Aug 2009, 12:49
Go to Plugin & Products System -> Product Manager -> Microstats.
Remove the current code, replace with..
$pageendtime = microtime();
$starttime = explode(' ', $pagestarttime);
$endtime = explode(' ', $pageendtime);
$totaltime = vb_number_format($endtime[0] - $starttime[0] + $endtime[1] - $starttime[1], 5);
$debughtml = '<center><span class="smallfont">Page generated in <b>' . $totaltime . '</b> seconds with <b>' . $vbulletin->db->querycount . '</b> queries';
$usergroupid = $vbulletin->userinfo['usergroupid'];
if ($usergroupid == 5 || $usergroupid == 6 || $usergroupid == 7) {
if ($loadavg = @file_get_contents("/proc/loadavg")) {
$regs = explode(" ",$loadavg);
$serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']';
}elseif ($stats=@exec('uptime')) {
preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/',$stats,$regs);
$serverload = ' [Server Loads: <b>' . $regs[1] .'</b> ' . $regs[2] . ' : ' . $regs[3] . ']';
}elseif ($loadavg = @`sysctl vm.loadavg|cut -d" " -f3-5`) {
$regs = explode(" ",$loadavg);
$serverload = ' [Server Loads: <b>' . $regs[0] .'</b> ' . $regs[1] . ' : ' . $regs[2] . ']';
}
$debughtml .= iif($_TEMPLATEQUERIES, ' (<b>' . sizeof($_TEMPLATEQUERIES) . '</b> queries for uncached templates)', '') . "$serverload";
ksort($tempusagecache);
foreach ($tempusagecache AS $tempname => $times) {
if ($_TEMPLATEQUERIES["$tempname"]){
$debughtml .= '<center><span class="smallfont">Uncached templates: <font color="red"><b>' . $tempname . '</b></font> (' . $times . ')</span></center>';
}
}
}
$debughtml .= "</span></center>";
if (!$vbulletin->config['Microstats']['replacementvariable']) {
$vbulletin->config['Microstats']['replacementvariable'] = '</body>';
}
if (($vbulletin->config['Microstats']['adminonly'] and $vbulletin->userinfo['usergroupid'] == 5 || $usergroupid == 6 || $usergroupid == 7) or !$vbulletin->config['Microstats']['adminonly']){
$output = str_replace($vbulletin->config['Microstats']['replacementvariable'], $debughtml . $vbulletin->config['Microstats']['replacementvariable'], $output);
}
Where you see the usergroupid = 5, 6 & 7, replace those numbers with whatever your usergroup id's are that you want to see the microstats.
Hope this helps :)
I try to use this code, it works proper for super-admin, admin and moderator groups.
but super-admin and moderators cannot see server loads.
i have also placed this line in my config.php
if (($vbulletin->config['Microstats']['adminonly'] = true ;
this my code in plugin manager for microstats
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
EidolonAH
26 Sep 2009, 10:53
make sure you have the following in config.php:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
then add <!-- display microstats here --> at the very bottom of the footer template
Life saver:up:, the instructions just weren't making any sense to me, thanks for making it clearer.
Scalemotorcars
29 Oct 2009, 20:27
Works perfectly on 3.8.4 with VBSEO and VBA
Thanks
How do I understand and interpret the results?
Page generated in 0.12721 seconds with 24 queries [Server Loads: 0.57 0.50 : 0.47]
David_R
07 Nov 2009, 12:08
I still have problems this is the code for microstats:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And this are the lines in my config.php
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Now the problem is noone is able to view microstats.
I only want that microstats should display for Administrator and Super-Moderator group, it should not be visible to any other group
Adminstrator usergroup = 6
super-mod group = 5
Please help.
Speysider
03 Dec 2009, 18:29
Is it possible to move the microstats wording to another location?
Great mod.
Does it still work with vb 4.x?
Does it still work with vb 4.x?
No. You have to change one line to get the time to render a page to work.
Andyrew
28 Dec 2009, 19:11
No. You have to change one line to get the time to render a page to work.
?? Can you give more info, what do we change.
Kinneas
29 Dec 2009, 11:51
?? Can you give more info, what do we change.
Also wouldn't mind knowing :)
I tried it on vB 4 and it works but this issue appears to:
Warning: ksort() expects parameter 1 to be array, null given in [path]\includes\functions.php(6469) : eval()'d code on line 30
Warning: Invalid argument supplied for foreach() in [path]\includes\functions.php(6469) : eval()'d code on line 32
Speysider
13 Feb 2010, 18:42
Worked out the answer to my question about moving the microstats working.
What code do I use to show how much of the page generation was PHP and MySQL, like on http://forums.relicnews.com ?
testbot
15 Feb 2010, 07:13
No. You have to change one line to get the time to render a page to work.
what's the secret? :D
BRotondi
17 Mar 2010, 15:31
No. You have to change one line to get the time to render a page to work.
Same here... why no one says what to change? If someone wrote it allready ... where? Thanks!
me, too :D
A very needed mod...
testbot
17 Mar 2010, 20:40
*sigh* i'm getting tired of no support these days. i guess in mods it's up to the developers but i've been fixing bugs myself in vb4 since it's been released. any threads i create for assistance get ignored on vb.org and vb.com.
anyway, for everyone looking for the fix here it is...
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I´m getting this issue:
Warnung: ksort() expects parameter 1 to be array, null given in [path]\includes\functions.php(6783) : eval()'d code (Zeile 30)
Warnung: Invalid argument supplied for foreach() in [path]\includes\functions.php(6783) : eval()'d code (Zeile 32)
*sigh* i'm getting tired of no support these days. i guess in mods it's up to the developers but i've been fixing bugs myself in vb4 since it's been released. any threads i create for assistance get ignored on vb.org and vb.com.
anyway, for everyone looking for the fix here it is...
Find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Replace:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
if this fix works, release a new version for the suite ... :)
BRotondi
18 Mar 2010, 21:30
Thanks testbot for the fix! This gives me the correct time. Warnung: ksort() expects parameter 1 to be array, null given in [path]\includes\functions.php(6783) : eval()'d code (Zeile 30)Warnung: Invalid argument supplied for foreach() in [path]\includes\functions.php(6783) : eval()'d code (Zeile 32)
I have this 2nd issue too, but not so important. Needed only the time for debugging :).
If you have a working version on your Server, can you please poste the code from Plugin “Microstats”? This is all, this AddOn is about.
btw: Use Firebug's "Network" for the best survey!
Thanks!
Bruno
testbot
18 Mar 2010, 21:34
if this fix works, release a new version for the suite ... :)
i don't think it would be ethical to reuse someone's code and release their product under my name. :(
i don't think it would be ethical to reuse someone's code and release their product under my name. :(
just send a PM to the author ... :)
Fraxter
19 Mar 2010, 21:00
Developer Last Online: Oct 2008
I think there is no much chance for get the permissions...
I think there is no much chance for get the permissions...
just put the older author like 'co-author' and link the original hack in the first post ... however there isn't any disclaimer here ...
testbot
22 Mar 2010, 15:49
if Lyne says it's ok i'll update this for vb4 and provide support the best i can.
I cannot give an OK for this to be posted. The only person who can give an OK for this to be ported to vB4 is the developer and he is not even responding to PMs (I sent him one a while ago about this).
testbot
22 Mar 2010, 16:18
as always thanks for the info, Lynne :)
The new error is from THIS code:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
It is because the variable "$tempusagecache" no longer exists (just as how "$pagestarttime" no longer exists). If someone finds out what variable "$tempusagecache" is now called, we can fix this mod.
FIXED!
I'm awesome... this is the new plugin... DONT JUST CUT AND PASTE THIS CODE, READ MY COMMENT BELOW FIRST!
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
OKAY... right now the code above ISN'T working, vb.org is giving me errors with a single line of code when I'm trying to post it here, so let me explain what you need to do to fix it. Search for the following piece of text in the code above:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add SINGLE QUOTES around the word 'uptime'. It looks like VB.ORG is having problems with executing the exec function inside of posts. VB.ORG people, if you are reading this, you need to fix this IMMEDIATELY! Someone could potentially execute code from posts with this error.
A comment about copyright with code... History has shown us, that if you give two engineers the same problem and unlimited amount of time, they will both eventually come up with the same solution; especially if there is only ONE way to fix the problem. With this modification, there is really only ONE way to do it. I mean I could rewrite the code, come up with new variable names and everything... but its pretty much going to be the same exact code, even though I wrote it from scratch. If I rewrite the code, can I post it as a new mod? Even though its going to look pretty much the same?
testbot
02 Apr 2010, 16:21
The new error is from THIS code:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
It is because the variable "$tempusagecache" no longer exists (just as how "$pagestarttime" no longer exists). If someone finds out what variable "$tempusagecache" is now called, we can fix this mod.
tempusagecache still exists in includes/functions.php on line 6675 in vb4.
im getting this error
Warning: ksort() expects parameter 1 to be array, null given in [path]/includes/functions.php(6783) : eval()'d code on line 30
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php(6783) : eval()'d code on line 32
i have disabled all my plugins manually but not globally but it still comes up and i cant find what it is
however disabling it globally works but thats not the way to go
Actually Guys regarding my error above found the fix for it if anyone is interested
Admincp > Plugin Products > Product Manager
Scroll down to
Product : vBulletin
then uncheck microstats save it then that should clear those errors
Attached is a new version of this mod... I can't release it as it's own mod, as stated by the administrators here. But I can still post it as an attachment to this mod. Although, I have to disagree with the limitations of republishing THIS mod (and ONLY this mod). There is really only ONE way to print out pageload times and server load. Anyone can write this mod new from scratch and it will pretty much be exactly the same as this old version. Why? Because this is a problem with only ONE solution. If someone asked you the problem "What's 4+4", and you answer "8"; you do not hold the copyright to the solution "8". Why? Because copyrights protect NON-OBVIOUS solutions; and printing out pageload times and server load is OBVIOUS. (obvious in the definition from Merriam-Webster: easily seen or understood) In other words, there is an "understood" way to calculate server load, and thats just the way it is.
*edit by Lynne* - attachment removed. You may not 'fix' the developers mod and upload it without his permission.
your version is "only" updated to vb 4?
Okay... then I made a new version... not a "fix" but a complete rewrite...
http://www.vbulletin.org/forum/showthread.php?t=240905
Works perfectly on 3.8.4 with VBSEO and VBA
Thanks
Just wanted to let others know, it still seems to work fine on v3.8.6 as well. :)
webmastersitesi
27 Feb 2011, 10:37
thank you i was about to ask if it works on 3.8.6 :)
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.