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 |
#252
|
||||
|
||||
<i>Find:
function query_wrapper($buffered = true, &$link) { return $this->functions[$buffered ? 'query' : 'query_unbuffered']($this->sql, $link); }</i> I can't find it at all! 6.4 huh... Signing up.. Standing in que... |
#253
|
|||
|
|||
yes would like for 3.6.4 also - thanks
|
#254
|
|||
|
|||
Till TECK gets to this, all you have to do to get this working in 3.6.4 is change what you edit in class_core.php. Instead of the instructions given, replace execute_query in class_core.php with:
Code:
function &execute_query($buffered = true, &$link) { $this->connection_recent =& $link; $this->querycount++; // start microstats timer $this->mstimer_start(); $queryresult = $this->functions[$buffered ? 'query' : 'query_unbuffered']($this->sql, $link); $this->mstimer_stop(); if ($queryresult) { // unset $sql to lower memory .. this isn't an error, so it's not needed $this->sql = ''; return $queryresult; } else { $this->halt(); // unset $sql to lower memory .. error will have already been thrown $this->sql = ''; } } /** * vBMicroStats: Query execution time * * @return string */ var $mstime_total = 0; var $mstime_before = array(); function mstimer_start() { $this->mstime_before[] = microtime(); } function mstimer_stop($qtime_total = true) { $mstime_after = microtime(); $mspage_start = explode(' ', TIMESTART); $mspage_start = $mspage_start[0] + $mspage_start[1]; $mstime_before = explode(' ', array_pop($this->mstime_before)); $mstime_before = $mstime_before[0] + $mstime_before[1] - $mspage_start; $mstime_after = explode(' ', $mstime_after); $mstime_after = $mstime_after[0] + $mstime_after[1] - $mspage_start; $mstime_taken = $mstime_after - $mstime_before; if ($qtime_total) { $this->mstime_total += $mstime_taken; } } |
#255
|
||||
|
||||
any updates on this?
Thank you |
#256
|
||||
|
||||
Thanks, LunaTech. Seems to work just fine on 3.6 now.
|
#257
|
|||
|
|||
Quote:
|
#258
|
|||
|
|||
Thank you!
|
#259
|
||||
|
||||
Great mod, thanks!!
|
#260
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=140449" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=140449</a>
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|