Version: 1.0.5, by TECK
Developer Last Online: Nov 2023
Version: 3.5.4
Rating:
Released: 05-18-2006
Last Update: 05-21-2006
Installs: 92
Uses Plugins Template Edits
Code Changes
No support by the author.
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.
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
This modification may not be copied, reproduced or published elsewhere without author's permission.
There is no $output processed by PhotoPost, in order to find {microstats} and replace it with the $microstats_output.
Since I don't have PhotoPost, the best way is to ask other PhotoPost coders how the output is processed.
All you have to do is add there the replacement line listed above, adapted to their code...
Wouldn't replacing {microstats} with $microstats_output in the footer solve the problem?
There is no $output processed by PhotoPost, in order to find {microstats} and replace it with the $microstats_output.
Since I don't have PhotoPost, the best way is to ask other PhotoPost coders how the output is processed.
All you have to do is add there the replacement line listed above, adapted to their code...
Floren, if you would like Admin CP access to help figure this out, please PM me and I will set it up for you, sir.
Hmm.. 1.0.5 is showing my memory usage as 0KB on every page, 1.0.4 didn't.
You are right, I was cheating using a tricky way to calculate the memory, without get_memory_usage() compiled in PHP.
It was showing the right values, except it was divided to much.... the right results are 2,985KB not 0.20KB.
Since I did not wanted to get into extra calculations, I simply removed the process to ease the server and stop piping through grep the hole activity log.
Trust me, it's better this way now.
If you guys really want it, I could post the mod here, but I will not insert it into the original code. Performance wise is not recommended.
Quote:
Originally Posted by Boofo
Floren, if you would like Admin CP access to help figure this out, please PM me and I will set it up for you, sir.
In a bit, Bobby. I will look into it next week, I promise.
Send me by email: webmaster AT adolympics DOT com
the php files that give you trouble.
You are right, I was cheating using a tricky way to calculate the memory, without get_memory_usage() compiled in PHP.
It was showing the right values, except it was divided to much.... the right results are 2,985KB not 0.20KB.
Since I did not wanted to get into extra calculations, I simply removed the process to ease the server and stop piping through grep the hole activity log.
Trust me, it's better this way now.
If you guys really want it, I could post the mod here, but I will not insert it into the original code. Performance wise is not recommended.
I guess I'd have had my answer sooner if I actually looked at the Admin CP setting description for the memory usage display, huh?
Display the server memory usage, per page.
If you display results like 0KB Used, you need to compile PHP with enable-memory-limit option.
hi, i've installed vBMircostats, excellent work TECK.
I'm getting a high number regarding queries. i see everyone is getting 5-15 but i'm getting 30+ most of the times, especially when i browse my forum's threads.
Page generated in 1,14650702 seconds (46,75% PHP - 53,25% MySQL) with 32 queries
does anyone know how to fix this?
thank you in advance
Quote:
Originally Posted by Boofo
The only way to fix that is un-install some of the hacks you have installed.
well, i only have 7 hacks installed.. is that really the case that i'm getting so many queries or it could be something else too?