The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBMicrostats Details »» | |||||||||||||||||||||||||
Finally, the vBMicroStats product for vBulletin 3.5.4 is here.
The previous versions of my mod were very solicited by vBulletin administrators... I hope you will enjoy this new version as much you did the other ones. Looking for VB 3.6.x version? It is here. This mod with add at the bottom of each vBulletin (powered) page, the statistics listed below. Also, it will help you troubleshoot and optimize your vBulletin board by viewing or comparing PHP/MySQL options and other statistics that are normally hidden in your forum pages. Regular Users: ? Load time of specified page in microseconds ? Number of queries executed ? PHP percent page usage ? MySQL percent page usage Administrators Only: ? Server memory usage per page (in Kb) ? DEBUG mode status ? Browser GZIP library compression status ? Server average loads ? Uncached templates (useful to troubleshoot the code) The code modifications listed below were tested into a clean installed vBulletin board. They work 100%. If you encounter any problems, feel free to post your questions here. Step by step install instructions are posted into vbmicrostats.html file. In order to perform an efficient modification of your files, I recommend you to use Dreamweaver (Coder Mode) or Textpad. Both editors will allow you to complete all steps without any coding errors. I tried to use the plugin system as much as I could, in order to avoid any unnecessary code modifications. In order to set the right query execution time, you will need to perform 2 small code changes to each of the following files: ? class_core.php (folder /includes) ? init.php (folder /includes) The code changes are very safe and designed not to interfere in any way with the vBulletin performance/functionality. Make sure you modify, save and upload one file at the time to your server. Then, simply run the product-plugin_vbmicrostats.xml file. Once the product installed, don't forget to enable it. Go to your vBulletin Options, click on BB MicroStats setting group and set all your options. Show Your Support
|
Comments |
#122
|
||||
|
||||
But it shouldn't be going into negative numbers should it? And I also notice when they get really high, the page takes forever to load.
|
#123
|
|||
|
|||
Quote:
i seen that too i think its vbulletin itself.... cause mine is doing the same thing every so many pages loads too it never really reads the same... |
#124
|
||||
|
||||
Quote:
Once we have that specific value, we deduct from it the script start time, in order to obtain the the PHP execution time. Let's don't count the DB connection time, first. In init.php, find this line: Code:
$db->mstimer_stop(); Code:
$db->mstimer_stop(false); One more time, vBMicroStats reads ONLY what is happening behind the script, it does not affect in anyway the vBulletin functionment. Make me a favor. Disable vBMicroStats (code, etc.), enable the debug mode and look at the explained pages, while refreshing the page several times, the same way you do now with vBMicroStats enabled. Post the results here. On my forums, they are almost identical in both cases. However, we need to find out why we get SQL spikes once in a while. With SQL is simple, you cannot have SOMETIMES certain results. Is either NEVER or ALL THE TIME. |
#125
|
|||
|
|||
Great mod!
But, how come the server avarages aren't showing up? I have it setup correctly in the adminCP. Also, on vb3.0.x it always did show. (to clearify, all other functions seem to be working allright) |
#126
|
||||
|
||||
You used my vBMicroStats for VB 3.0? It should show, it's the same code.
Let me know... maybe you changed the server software since then? I will post a fix once I have more info from you. |
#127
|
|||
|
|||
Quote:
using 3.5.4 - didnt use any previous hacks |
#128
|
||||
|
||||
In vBMicroStats Global Hook, find:
Code:
if ($vbulletin->options['vb_mstats_server'] AND $stats = @exec('uptime 2>&1') AND trim($stats) != '' AND preg_match("#: ([\d.,]+),?\s+([\d.,]+),?\s+([\d.,]+)$#", $stats, $regs)) { $regs[1] = vb_number_format($regs[1], 2); $regs[2] = vb_number_format($regs[2], 2); $regs[3] = vb_number_format($regs[3], 2); $server_status = '<strong>' . $regs[1] . '</strong> : ' . $regs[2] . ' : ' . $regs[3] . ' | '; } Code:
if ($vbulletin->options['vb_mstats_server']) { if ($stats = @exec('uptime 2>&1') AND trim($stats) != '' AND preg_match("#: ([\d.,]+),?\s+([\d.,]+),?\s+([\d.,]+)$#", $stats, $regs)) { $regs[1] = vb_number_format($regs[1], 2); $regs[2] = vb_number_format($regs[2], 2); $regs[3] = vb_number_format($regs[3], 2); $server_status = '<strong>' . $regs[1] . '</strong> : ' . $regs[2] . ' : ' . $regs[3] . ' | '; } } |
#129
|
|||
|
|||
not for me
here is what my output is with ALL options set to yes Page generated in 0.44428802 seconds (91.86% PHP - 8.14% MySQL) with 7 queries 3,737.15KB Used | DEBUG Mode OFF | GZIP ON (level 1) | NO Uncached Templates |
#130
|
||||
|
||||
Raptor, if I understand correctly, you see the server loads into your Admin CP, but not into every page?
It just doesn't make sense. It was working perfectly for everyone, all of the sudden we have 2 members letting me know the server loads are not showing. The original version should work perfectly, no code mod needed. It's working perfectly on my server. Anyone else have the server loads showing with the latest version? |
#131
|
|||
|
|||
Possibly not ticked in the admincp to show?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|