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 |
#52
|
||||
|
||||
Quote:
|
#53
|
||||
|
||||
Problem fixed, version 1.0.2 released. The colspan increments were not working properly, so the table looked broken...
This upgrade is for those who want to use the original/unmodified template code. Uninstall old version and re-install the new one. You only need to run the plugin, no other changes are needed. Don't you love vBulletin? Enjoy. For the teckies who want to know exacly what I did. This is the added code segment: Code:
$colspan = 1; $language_count = 0; $style_count = 0; $style_id = -1; if ($vbulletin->languagecache === null) { $vbulletin->languagecache = array(); } foreach ($vbulletin->languagecache AS $language) { if ($language['userselect']) { $language_count++; } } if ($language_count > 0) { $colspan++; } if ($vbulletin->options['allowchangestyles']) { if (is_array($vbulletin->stylecache["$style_id"])) { $style_cache =& $vbulletin->stylecache["$style_id"]; } else if (is_array($vbulletin->stylecache[$style_id])) { $style_cache =& $vbulletin->stylecache[$style_id]; } else { return; } foreach ($style_cache AS $x) { foreach ($x AS $style) { if ($style['userselect'] OR $vbulletin->userinfo['permissions']['adminpermissions'] AND $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) { $style_count++; } } } if ($style_count > 1) { $colspan++; } } $show['colspan'] = iif($language_count > 0 OR $style_count > 1, true, false); |
#54
|
||||
|
||||
Yes indeedy! Works like a charm. Just need to center it and do a tfoot instead of tcat and we are all set. Thank you, sir. You are still the Master to this old Grasshopper.
|
#55
|
||||
|
||||
Quote:
Unfortunatelly, I cannot post the hole functions, modified, vBulletin copyright policies, unless they changed their mind? I wish I could help you more, but I cannot. Try to contact one of the users who installed the mod successfully, to send you the edited files. |
#56
|
||||
|
||||
Welcome back TECK, it's great to see this released for 3.5.x!
|
#57
|
|||
|
|||
Thanks for releasing a vB 3.5 version TECK! I will install it after school.
Derek |
#58
|
|||
|
|||
What a great way to start your first released 3.5 hack! Welcome back.
/me clicks install |
#59
|
|||
|
|||
Welp, I'm getting the following error.
Code:
Fatal error: Cannot redeclare mstimer_start() in c:\apache\www\demo\forums\includes\class_core.php on line 987 Code:
983 var $mstime_total = 0; 984 var $mstime_before = array(); 985 var $msmemory_before = array(); 986 function mstimer_start() 987 { 988 $this->mstime_before[] = microtime(); 989 } 990 function mstimer_stop() 991 { 992 $mstime_after = microtime(); 993 $mspage_start = explode(' ', TIMESTART); 994 $mspage_start = $mspage_start[0] + $mspage_start[1]; 995 $mstime_before = explode(' ', array_pop($this->mstime_before)); 996 $mstime_before = $mstime_before[0] + $mstime_before[1] - $mspage_start; 997 $mstime_after = explode(' ', $mstime_after); 998 $mstime_after = $mstime_after[0] + $mstime_after[1] - $mspage_start; 999 $mstime_taken = $mstime_after - $mstime_before; 1000 1001 $this->mstime_total += $mstime_taken; 1002 } |
#60
|
||||
|
||||
That's strange. It works great for me.
|
#61
|
|||
|
|||
a little hard to believe that a hack with this kind of functionality cannot avoid using file edits...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|