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 |
#12
|
||||
|
||||
Your request is simple to fill.
There is a template, hidden in the plugin code. It's the best/fastest way to load it, plus it does eliminate other extra code modifications in files. All you have to do is edit the following code, present in your vBMicroStats Global Hook plugin: Code:
$ms_output = '<tr align="' . $stylevar['right'] . '">' . "\n"; $ms_output .= ' <td class="tcat"' . iif($show['quickchooser'] OR $show['languagechooser'], ' colspan="' . $colspan . '"') . '>' . "\n"; $ms_output .= ' <span class="smallfont">Page generated in ' . $total_time . ' seconds (' . $php_percent . ' - ' . $sql_percent . ') with ' . $query_count . ' queries</span>' . "\n"; $ms_output .= ' </td>' . "\n"; $ms_output .= '</tr>' . "\n"; [... more code here, don't edit ...] $ms_output .= '<tr align="' . $stylevar['right'] . '">' . "\n"; $ms_output .= ' <td class="alt1"' . iif($show['quickchooser'] OR $show['languagechooser'], ' colspan="' . $colspan . '"') . '>' . "\n"; $ms_output .= ' <span class="smallfont">' . $memory_status . $debug_status . $gzip_status . $server_status . $templates_status . '</span>' . "\n"; $ms_output .= ' </td>' . "\n"; $ms_output .= '</tr>' . "\n"; The first code segment will set the regular user options, the second will take care of the administrator ones. If you edit this html code the way you like it, you will obtain the result you want. BTW, you can place the code: Code:
<if condition="$show['microstats']">{microstats}</if> EDIT: The best way to edit the plugin code is to copy it all and paste it into your favorite editor. Do all html changes, then paste it back and save it. |
#13
|
||||
|
||||
Quote:
Open the vBMicroStats Global Hook plugin and find this code: Code:
Page generated in ' . $totaltime . ' seconds Code:
Page generated in ' . $total_time . ' seconds |
#14
|
||||
|
||||
Thanks for sharing this TECK!
|
#15
|
||||
|
||||
Version 1.0.1 released. Bug fixed.
You can uninstall/install the plugin if you like, instead of editing the code. |
#16
|
||||
|
||||
I'm nor seeing anything for some reason. I dounble checked everything but nothing shows up. And it is all turned on.
EDIT: My fault. I added it to the wrong skin. Sorry. |
#17
|
||||
|
||||
Teck, is there any way to edit the html code for this so that it will make sense to us html dummies? I can't get it looking right on my site and I'm not sure what to do to fix it.
|
#18
|
||||
|
||||
Sure, Bobby.
I will post an example here... in few minutes. |
#19
|
||||
|
||||
Quote:
Here's my site URL so you can see my problem: Fathers' Rights Forums |
#20
|
|||
|
|||
yeah im playin with it to but im going crazy lol i have it where it centers the text but not the table... or i try and remove the table and the text goes poof
|
#21
|
|||
|
|||
also i see you have..
$ms_output = '<tr align="' . $stylevar['center'] . '">' . "\n"; now if i make it $ms_output = '<tr align="center">' . "\n"; is there any down fall? cause that makes it 100% html complaint... there is 2 spots where that is... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|