PDA

View Full Version : Microstats - load times, server loads, queries, uncached templates


Pages : 1 [2]

rmxs
06-13-2006, 04:01 PM
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
06-13-2006, 07:01 PM
This works fine with vBulletin 3.6 beta 2.

nymyth
06-13-2006, 07:07 PM
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
06-13-2006, 10:35 PM
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?

rmxs
06-14-2006, 07:00 PM
Yes i fixed now i dont remember how byt i fixed..

buzzel
06-19-2006, 09:38 AM
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
06-19-2006, 04:20 PM
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.

buzzel
06-19-2006, 04:49 PM
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
06-19-2006, 05:30 PM
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:
if ($vbulletin->userinfo['usergroupid'] == 6) {
To:
if ($vbulletin->userinfo['usergroupid'] == 6 or $vbulletin->userinfo['usergroupid'] == 9) {
And from:
if (($vbulletin->config['Microstats']['adminonly'] and $vbulletin->userinfo['usergroupid'] == 6) or !$vbulletin->config['Microstats']['adminonly']){
To:
if (($vbulletin->config['Microstats']['adminonly'] and ($vbulletin->userinfo['usergroupid'] == 6 or $vbulletin->userinfo['usergroupid'] == 9)) or !$vbulletin->config['Microstats']['adminonly']){
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
06-19-2006, 09:58 PM
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
06-19-2006, 10:20 PM
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..
($vbulletin->userinfo['usergroupid'] == 6 or $vbulletin->userinfo['usergroupid'] == 9)

TheBlackPoet
06-21-2006, 04:58 AM
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
06-28-2006, 09:59 PM
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?

kofoid
07-11-2006, 03:58 PM
Are you all ready for a dumb question? How to I get my uncached templates cached??

Mudvayne
07-11-2006, 04:08 PM
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..
// pre-cache templates used by all actions
$globaltemplates = array('Template_Name');

// pre-cache templates used by specific actions
$actiontemplates = array();

Or u can try this plugin.. But don forget to edit this line in plugin.. U just hav to put the uncached Template_Name..
<phpcode><![CDATA[$customtemplates = array('Template_Name'); $globaltemplates = array_merge($globaltemplates, $customtemplates);]]></phpcode>

Sorry my english :confused:

kofoid
07-11-2006, 05:05 PM
THANK YOU SHUVO!!!!!!!!!! One other dumb question - which php file should I edit? global?

Mudvayne
07-11-2006, 05:13 PM
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..

kofoid
07-11-2006, 05:50 PM
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!!!!!!!!!!!

kofoid
07-11-2006, 05:52 PM
wait wait - It DID work - You are the KING I bow to you LOL thank you

Mudvayne
07-11-2006, 06:00 PM
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/ ;)..

Polo
07-28-2006, 06:35 PM
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
08-04-2006, 11:37 AM
Is it work 3.6.0 ?

Mudvayne
08-04-2006, 12:58 PM
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..

Tomek
08-04-2006, 01:04 PM
This plugin breaks uploading attachments (i.e. pdf-files) in vBulletin 3.6.0.

aciurczak
08-05-2006, 04:26 PM
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
08-27-2006, 06:26 PM
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
08-30-2006, 01:17 AM
You should list this under 3.6 since that is now the main vBulletin software.

curriertech
09-09-2006, 07:15 PM
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
09-15-2006, 10:06 PM
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
09-15-2006, 10:53 PM
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
09-15-2006, 10:57 PM
Have you checked the HTML source to make sure that the comment is being sent to the browser?

curriertech
09-15-2006, 10:59 PM
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
09-15-2006, 11:13 PM
Yeah nevermind...I have no idea why (unless 3.6.1 fixed something?) but it works fine with the variable now. :D

ubblite
09-26-2006, 09:27 AM
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
09-26-2006, 09:37 AM
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
09-26-2006, 09:47 AM
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.

Pete C
09-26-2006, 01:01 PM
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
09-28-2006, 11:38 AM
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
09-28-2006, 12:33 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=104532&highlight=cache+templates) ;)

Eagle Creek
09-28-2006, 07:01 PM
3.6.1 compatible?

EvilHawk
09-28-2006, 07:19 PM
yes, it works fine with 3.6.1

Eagle Creek
09-28-2006, 07:41 PM
great! thx!

Masiello
09-30-2006, 07:51 PM
Hello,
can anyone ported this on a vb 3.6.x thread to can see i'ts full compatible?

curriertech
09-30-2006, 09:54 PM
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). :)

Guest210212002
10-21-2006, 12:44 PM
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

AMG021
10-21-2006, 01:47 PM
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
10-24-2006, 12:30 AM
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
10-31-2006, 01:43 PM
If your forum is turned off it will show an uncached template message too.

ShiningArcanine
11-02-2006, 07:30 PM
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
12-17-2006, 12:11 PM
What does mean ans implies this?

Uncached templates: Marquee_Text (1)


How do you include it in cache?

meissenation
12-20-2006, 11:32 AM
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
12-20-2006, 12:06 PM
What does mean ans implies this?


How do you include it in cache?

Read this and you'll know:
https://vborg.vbsupport.ru/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
12-20-2006, 04:15 PM
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
12-20-2006, 06:22 PM
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
12-20-2006, 07:04 PM
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:
https://vborg.vbsupport.ru/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
12-20-2006, 09:44 PM
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
12-20-2006, 09:56 PM
I agree with ShiningArcanine.

Also: Do u really _need_ that modification? Sometimes, there are others available, wich put less load on your server.

cOuNtErFiET
12-23-2006, 12:42 AM
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
12-23-2006, 03:58 AM
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.

https://vborg.vbsupport.ru/showpost.php?p=1011248&postcount=259
https://vborg.vbsupport.ru/showpost.php?p=1011485&postcount=260
https://vborg.vbsupport.ru/showpost.php?p=1011485&postcount=261

yuriy
12-27-2006, 01:01 AM
this doesn't work with vB 3.6.4 can anyone help me with this? PLEASE, Thank you!

Mudvayne
12-27-2006, 07:06 AM
yuriy this works fine for me on 3.6.4.

jw00dy
12-27-2006, 07:53 AM
Just installed 3.6.4 Great product. No problems at all.

meissenation
01-01-2007, 02:24 AM
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

yuriy
01-02-2007, 09:57 PM
ehhh, moved to a linux hosting everything works nicely on 3.6.4 :)

Eagle Creek
01-09-2007, 10:28 PM
It only says Page generated in 0.14053 seconds with 11 queries, so I don't see any server load.
(CentOS 4.4)

Mudvayne
01-10-2007, 02:40 AM
Its only viewable by vB default Admin usergroup. Which group you are in?

Eagle Creek
01-10-2007, 03:09 AM
UG ID 6, Administrators.

mrahul
01-10-2007, 07:03 AM
does this work for 3.6.x ??

Mudvayne
01-10-2007, 09:11 AM
UG ID 6, Administrators.
Then it should work. I don't know. Try reinstalling the hack.
@ mrahul. Yep works fine for me.

Eagle Creek
01-10-2007, 12:41 PM
I did... I tried that already before.

teedizz
01-10-2007, 11:31 PM
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

mrahul
01-11-2007, 05:12 AM
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

fly
02-05-2007, 03:24 PM
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
02-20-2007, 11:47 AM
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
02-21-2007, 05:16 AM
In my experience that has been a problem with my host and no fault of my own.

bluechris
02-21-2007, 12:52 PM
Its a rented server by me.. so i control it fully... if you can be more specific i will appreciate it.

Thx
Chris

eclectica
03-04-2007, 03:47 PM
When I upgraded vBulletin to 3.6.5 it stopped showing server loads to me.

curriertech
03-04-2007, 03:50 PM
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
03-04-2007, 09:59 PM
I tried reinstalling. Maybe it's the webhoster or server settings then. Thanks.

Smoothie
03-04-2007, 10:04 PM
works fine for me w/ 3.6.5

lighter
04-28-2007, 08:52 AM
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
05-23-2007, 09:58 AM
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
07-14-2007, 07:51 AM
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
09-19-2007, 02:06 PM
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
09-19-2007, 02:50 PM
it is designed for 3.5.4.. soo if your using a different version. readings might be incorrect!

frostyIntrepid
09-21-2007, 09:41 AM
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
09-21-2007, 01:58 PM
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
12-18-2007, 04:09 PM
works on 3.70. beta2

MissKalunji
03-20-2008, 11:45 PM
working on 3.7.0 Beta Rc 1

cavyspirit
04-18-2008, 02:11 AM
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
04-18-2008, 02:25 AM
what hack do you have?

cavyspirit
04-18-2008, 02:58 AM
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

fly
04-18-2008, 12:38 PM
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
04-18-2008, 01:56 PM
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
04-30-2008, 04:20 PM
working on 3.7 Gold! Great! :)

MissKalunji
04-30-2008, 04:37 PM
*co-sign*

mrahul
05-15-2008, 09:42 AM
work for 3.7.x and any releases planned ?

Kinneas
05-19-2008, 01:47 PM
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.

mrahul
05-26-2008, 06:48 AM
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-06-2008, 02:52 PM
Thanks Work fine 3.7.1 : )

odeezie
06-26-2008, 05:14 PM
Working in 3.7.2, Thanks! :)

ALil'Hope
06-29-2008, 02:24 AM
Installed and working on 3.7.2.

David_R
08-05-2008, 02:17 PM
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

Jaxel
08-19-2008, 12:05 AM
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

Orakk
09-11-2008, 11:39 AM
make sure you have the following in config.php:
$config['Microstats']['replacementvariable'] = '<!-- display microstats here -->';

then add <!-- display microstats here --> at the very bottom of the footer template
Worked on 373PL1 :up:

Neutral Singh
11-09-2008, 05:28 AM
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
11-09-2008, 03:31 PM
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.

RvG2
11-28-2008, 05:24 PM
works with 3.8.0 beta 4 as well

zefyx
12-25-2008, 02:42 PM
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 :)

Dimoks
03-05-2009, 04:26 PM
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 :)

Xencored
04-06-2009, 04:10 AM
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:

Icy
04-06-2009, 06:15 AM
Yes it is! You're having 8 extra queries just for these uncached queries!

Xencored
04-06-2009, 05:17 PM
Yes it is! You're having 8 extra queries just for these uncached queries!

How can i fix this than mate

Cheers

Icy
04-06-2009, 05:30 PM
I guess one of your modification cause this though I'm not sure which one. Try disabling one by one and test :)

Lynne
04-06-2009, 05:33 PM
Or read the article in the article section about how to cache your templates.

Icy
04-06-2009, 05:54 PM
But Lynne these are the default templates which should be cached by default unless he changed something from the core vBulletin code right?

Lynne
04-06-2009, 06:17 PM
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.

jw00dy
04-09-2009, 12:40 AM
I use this free caching mod from Ziki: https://vborg.vbsupport.ru/showthread.php?p=1784393 Works great on 3.8 and 3.7

ubcforums
05-30-2009, 04:14 PM
working on 3.82 as well !!

David_R
08-22-2009, 10:49 AM
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
// Microstats 1.2.1 Plugin

$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';

if ($vbulletin->userinfo['usergroupid'] == 6) {

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) or !$vbulletin->config['Microstats']['adminonly']){

$output = str_replace($vbulletin->config['Microstats']['replacementvariable'], $debughtml . $vbulletin->config['Microstats']['replacementvariable'], $output);

}

// Microstats 1.2.1 Plugin

EidolonAH
09-26-2009, 08:53 AM
make sure you have the following in config.php:
$config['Microstats']['replacementvariable'] = '<!-- display microstats here -->';

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
10-29-2009, 06:27 PM
Works perfectly on 3.8.4 with VBSEO and VBA

Thanks

Keesa
11-02-2009, 04:21 AM
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
11-07-2009, 10:08 AM
I still have problems this is the code for microstats:
// Microstats 1.2.1 Plugin

$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';

if ($vbulletin->userinfo['usergroupid'] == 6) {

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) or !$vbulletin->config['Microstats']['adminonly']){

$output = str_replace($vbulletin->config['Microstats']['replacementvariable'], $debughtml . $vbulletin->config['Microstats']['replacementvariable'], $output);

}

// Microstats 1.2.1 Plugin

And this are the lines in my config.php
$config['Microstats']['adminonly'] = true;
$config['Microstats']['replacementvariable'] = '<!-- display microstats here -->';

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
12-03-2009, 04:29 PM
Is it possible to move the microstats wording to another location?
Great mod.

Kolbi
12-20-2009, 07:38 PM
Does it still work with vb 4.x?

Lynne
12-20-2009, 08:38 PM
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
12-28-2009, 05:11 PM
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
12-29-2009, 09:51 AM
?? Can you give more info, what do we change.
Also wouldn't mind knowing :)

Kolbi
01-06-2010, 12:19 PM
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
02-13-2010, 04:42 PM
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
02-15-2010, 05:13 AM
No. You have to change one line to get the time to render a page to work.

what's the secret? :D

BRotondi
03-17-2010, 01:31 PM
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!

KURTZ
03-17-2010, 05:08 PM
interested too :)

Kolbi
03-17-2010, 05:14 PM
me, too :D

A very needed mod...

testbot
03-17-2010, 06:40 PM
*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:

$starttime = explode(' ', $pagestarttime);


Replace:

$starttime = explode(' ', TIMESTART);

Kolbi
03-17-2010, 07:23 PM
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)

KURTZ
03-18-2010, 09:56 AM
*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:

$starttime = explode(' ', $pagestarttime);


Replace:

$starttime = explode(' ', TIMESTART);



if this fix works, release a new version for the suite ... :)

BRotondi
03-18-2010, 07:30 PM
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
03-18-2010, 07:34 PM
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. :(

KURTZ
03-19-2010, 12:22 PM
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
03-19-2010, 07:00 PM
Developer Last Online: Oct 2008

I think there is no much chance for get the permissions...

KURTZ
03-22-2010, 12:17 PM
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
03-22-2010, 01:49 PM
if Lyne says it's ok i'll update this for vb4 and provide support the best i can.

Lynne
03-22-2010, 02:05 PM
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
03-22-2010, 02:18 PM
as always thanks for the info, Lynne :)

Kolbi
03-22-2010, 04:14 PM
Just recode it...

Jaxel
04-02-2010, 01:33 PM
The new error is from THIS code:

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>';
}
}

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.

Jaxel
04-02-2010, 02:07 PM
FIXED!

I'm awesome... this is the new plugin... DONT JUST CUT AND PASTE THIS CODE, READ MY COMMENT BELOW FIRST!

// Microstats 1.2.1 Plugin

$pageendtime = microtime();
$starttime = explode(' ', TIMESTART);
$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';

if ($vbulletin->userinfo['usergroupid'] == 6) {

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

}

$tempusagecache = vB_Template::$template_usage;
$_TEMPLATEQUERIES = vB_Template::$template_queries;

$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'] == 6) or !$vbulletin->config['Microstats']['adminonly']){

$output = str_replace($vbulletin->config['Microstats']['replacementvariable'], $debughtml . $vbulletin->config['Microstats']['replacementvariable'], $output);

}

// Microstats 1.2.1 Plugin


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:

@exec(uptime)

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
04-02-2010, 02:21 PM
The new error is from THIS code:

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>';
}
}

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.

mpadc
04-06-2010, 08:37 AM
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

mpadc
04-06-2010, 08:42 AM
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

Jaxel
04-09-2010, 04:46 AM
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.

Kolbi
04-09-2010, 08:21 AM
your version is "only" updated to vb 4?

Jaxel
04-20-2010, 11:30 PM
Okay... then I made a new version... not a "fix" but a complete rewrite...

https://vborg.vbsupport.ru/showthread.php?t=240905

adwade
09-24-2010, 05:08 AM
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
02-27-2011, 08:37 AM
thank you i was about to ask if it works on 3.8.6 :)