Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
vBMicroStats Details »»
vBMicroStats
Version: 1.1.0, by TECK TECK is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.5 Rating:
Released: 02-24-2007 Last Update: 03-02-2007 Installs: 280
Uses Plugins Template Edits
Code Changes  
No support by the author.

This hack will 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:
? Active users browsing the forum (members and guests) new in 1.1.0
? Server memory usage per page (in Kb)
? Display DEBUG mode status
? Browser GZIP library compression status
? Server average loads
? Uncached templates (useful to troubleshoot the code)

The code modifications were tested into a clean installed vBulletin board. They work 100%.
The hack was tested in vBulletin 3.6.4 and 3.6.5.
If you want to test it into a lower version (3.6.x), let me know.
Also, if you encounter any problems, feel free to post your questions here.

Step by step install instructions are posted into readme.html file.
In order to perform an efficient modification of your files, I recommend you to use Komodo Edit or Textpad.
Both editors will allow you to complete all steps without any coding errors.

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-vbmicrostats.xml file.

[high]The PLUGIN itself is DISABLED by default.[/high]
This was done in order to make sure you properly edit your code first and to avoid surprises.
You will need to enable it, once your code modifications are completed:
Plugins and Products > Manage Products > vB Microstats > Enable (dropdown)
Then, go to your vBulletin Options, click on BB MicroStats setting group and set all your options.

Upgrade to version 1.0.2.
Upgrade to version 1.0.3.
Upgrade to version 1.1.0.

Want to be a guinea pig and try this hack into a higher vBulletin version?
Post your results, so others can read your feedback.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 02-28-2007, 05:40 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok guys and girls. I need you to "invent" a new option for MicroStats.
I need that because I plan to add phrases into main MicroStats template, so you can translate it easier.
I don't want to release a new version just for this, we need to excite the users with something new also, right?
Reply With Quote
  #73  
Old 02-28-2007, 05:54 PM
Skavenger Skavenger is offline
 
Join Date: Sep 2005
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you made a mistake here

Attachment 61169

vB instead of BB =P

Quote:
Originally Posted by TECK View Post
The value 0KB is displayed when PHP is not compiled with the option "--enable-memory-limit". It's just an indicator for you to know that the memory limit is disabled in PHP.
...
Now I understand

Thank you again
Reply With Quote
  #74  
Old 02-28-2007, 07:48 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No mistake, it's intended like this. You are not the first one who shows me this "typo".
It's a tradition that I kept from early versions, when I made this hack for vBulletin 2.x (year 2002 I think).
It also reminds me when I used to sleep only 4-5hrs/night while sharing most of my free time with the hackers to come up with all kind of useful edits in the raw vB code...
There were no plugins, way back. To tell you the truth, I like a lot better to edit directly the files. Many people learned PHP because of this. They were forced to watch the code closely...
Reply With Quote
  #75  
Old 02-28-2007, 07:51 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look how it used to be vBMicroStats for vBulletin 2.x on forum home:
(17 queries performed, as default)
Reply With Quote
  #76  
Old 03-01-2007, 01:00 AM
ncweb ncweb is offline
 
Join Date: Feb 2007
Location: US
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TECK View Post
Ok guys and girls. I need you to "invent" a new option for MicroStats.
I need that because I plan to add phrases into main MicroStats template, so you can translate it easier.
I don't want to release a new version just for this, we need to excite the users with something new also, right?

Hey TECK, maybe if others would like to see this they will chime in
Not sure what good it would be in a shared environment but for dedicated it's nice to have.

I dont know much about how to do it but somthing like this maybe..
Code:
$memstats = shell_exec("grep Mem /proc/meminfo"); print '' . str_replace("\n", ' ', $memstats);

to display (i.e. MemTotal: 8299056 kB MemFree: 126812 kB ).

I for one would like to see an option to display all of the microstats to only admins via admincp.

Also, is it a good idea to compile PHP with the option "--enable-memory-limit". What would be the benefits of being able to set this in php conf or .htaccess. Thanks...
Reply With Quote
  #77  
Old 03-01-2007, 03:29 AM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have debug mode on(just for a minute). But when i click explain so i can get more ifno on queries, it just loads showthread.php all over again rather then the query explanation page.
Reply With Quote
  #78  
Old 03-01-2007, 05:36 AM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TECK View Post
Ok guys and girls. I need you to "invent" a new option for MicroStats.
I need that because I plan to add phrases into main MicroStats template, so you can translate it easier.
I don't want to release a new version just for this, we need to excite the users with something new also, right?
Invent it to work with all 3.6.x versions? I tried to install it on 3.6.1 and it wouldnt let me.
Reply With Quote
  #79  
Old 03-01-2007, 05:54 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is pretty easy Kev.
Open the XML file and find:
Code:
<dependency dependencytype="vbulletin" minversion="3.6.4" maxversion="3.6.5" />
Change it to:
Code:
<dependency dependencytype="vbulletin" minversion="3.6.0" maxversion="3.6.5" />
If it breaks your site, please don't hit me.
Try it on a test board and let me know. Thanks.

Quote:
Originally Posted by Xplorer4x4 View Post
I have debug mode on(just for a minute). But when i click explain so i can get more ifno on queries, it just loads showthread.php all over again rather then the query explanation page.
You are right, grrr. It looks like the only way to enable truly Debug mode is trough config.php file. Early, when the script loads the config variables, it won't detect fancy vBulletin options, just the basic ones contained into config.php file.

So what do you recommend me to do guys? We toss that option or simply simply display a text warning that the Debug mode is enabled/disabled?
I need your advice on this issue, since is your hack also.
Reply With Quote
  #80  
Old 03-01-2007, 06:14 AM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
So what do you recommend me to do guys? We toss that option or simply simply display a text warning that the Debug mode is enabled/disabled?
If there is no work around then the best option is to disable the debug mode. But even if we may have an option with another file edit that may help us to get this working then that may be an option.
Reply With Quote
  #81  
Old 03-01-2007, 07:13 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is not possible, unfortunatelly. As I said before, at that early stage, you cannot combine something like:
Code:
$this->debug = $this->registry->options['vb36_mstats_debug'];
It won't recognize the vb options...
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05911 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete