Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

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
  #102  
Old 03-07-2007, 04:21 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lizard King View Post
You need to make a full installation so you need to make the file edits also.
Thanks, but that did not work either.
Reply With Quote
  #103  
Old 03-07-2007, 05:03 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please post a screenshot with what you have displayed on your site, related to the hack.
First, search the html code and tell me if you see in the source:
<!-- {vbmicrostats} -->

Then, go to vBulletin Options > BB MicroStats
Make sure the options you desire are enabled (the first option enables the hack).
We will get this baby working, is something minor ore;se it would not work on previous code edits.

Just for the heck of it, what version you had installed before 1.1.0?
Thanks.

Edit: You still have the problem related to installer? It looks like there are some leftovers in the database, you probably installed over the old old hack, without un-installing first.
Is OK we can clean this.

Just post all details here, I need screenshots to your plugin table.
Reply With Quote
  #104  
Old 03-07-2007, 05:19 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

http://img119.imageshack.us/img119/3060/screenvblg2.gif
When i click view source and search for <!-- {vbmicrostats} --> it does not show up(or did you mean in the template?).

I had 1.0.3 installed before 1.1.0.

Plugin table
http://img407.imageshack.us/img407/8616/tablebl7.gif
Reply With Quote
  #105  
Old 03-07-2007, 06:03 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ya, in the HTML source, you are all good.
Sorry, I was not clear... I presumed you will show me the actual data from the plugin table.
Anyways, the process is really simple to clean your board. Do this:

1. Uninstall the hack.
Plugins & Products > Manage Products > vBMicroStats > Uninstall

2. Revert the footer template to default like before.

3. Upload the original vBulletin 3.6.5 class_core.php and init.php files to your server.
We do this just to make sure there are no code mistakes.

4. Close the board.

5. Open config.php and find the following line:
$config['Misc']['maxheight'] = 1944;

Replace it with:
$config['Misc']['maxheight'] = 1944;
$config['Misc']['debug'] = true;


Mod Debug should be enabled now.
If you have the Admin CP still open, just refresh once (F5) the current admin page in your browser.

6. Run the following queries (yes, you can run them all at once):
[sql]DELETE FROM `phrase` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `product` WHERE productid LIKE '%vb36_mstats%';
DELETE FROM `productdependency` WHERE productid LIKE '%vb36_mstats%';
DELETE FROM `plugin` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `settinggroup` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `setting` WHERE product LIKE '%vb36_mstats%';[/sql]

That will clean your database from all vBMicroStats leftovers.

7. Rebuild the bitfields.
vBulletin Options > Rebuild Bitfields

8. Disable Debug Mode.
You can simply set the Debug option to false, it will take care of the rest for you:
$config['Misc']['debug'] = false;

9. Log out and login into Admin CP.

10. Open the board, you are done.
Reply With Quote
  #106  
Old 03-07-2007, 06:09 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do I have to revert the footer or simply delete the code for microstats?
Reply With Quote
  #107  
Old 03-07-2007, 06:11 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Delete the microstats code.
Reply With Quote
  #108  
Old 03-07-2007, 06:16 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I forgot to mention, the above procedure, will simply revert your bulletin board to it's original state, before you ever installed vBMicroStats.
It's like my hack was never there.

Also, keep in mind that all errors you get now are not related to my hack.
vBMicroStats does not affect in any way the vBulletin (forum) options or functionality.
But I wanted you to feel better and make sure the database is cleaned properly, in case we have some code left there.
Reply With Quote
  #109  
Old 03-07-2007, 06:30 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2. Revert the footer template to default like before.
My templates will not update because of the bug.

4. Close the board.
It would not even save the status of the board being closed.


6. Run the following queries (yes, you can run them all at once):
[sql]DELETE FROM `phrase` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `product` WHERE productid LIKE '%vb36_mstats%';
DELETE FROM `productdependency` WHERE productid LIKE '%vb36_mstats%';
DELETE FROM `plugin` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `settinggroup` WHERE product LIKE '%vb36_mstats%';
DELETE FROM `setting` WHERE product LIKE '%vb36_mstats%';[/sql]
It claims the data was deleted.

8. Disable Debug Mode.
You can simply set the Debug option to false, it will take care of the rest for you:
$config['Misc']['debug'] = false;
Debug mode is still on despite doing this.
Reply With Quote
  #110  
Old 03-07-2007, 06:37 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TECK View Post
I forgot to mention, the above procedure, will simply revert your bulletin board to it's original state, before you ever installed vBMicroStats.
It's like my hack was never there.

Also, keep in mind that all errors you get now are not related to my hack.
vBMicroStats does not affect in any way the vBulletin (forum) options or functionality.
But I wanted you to feel better and make sure the database is cleaned properly, in case we have some code left there.
This is the only hack that modifys debug mode though so i do not see where else it could come from but I guess i will try my other hacks.
Reply With Quote
  #111  
Old 03-07-2007, 06:47 PM
Xplorer4x4 Xplorer4x4 is offline
 
Join Date: Apr 2005
Posts: 938
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh and another note that when i try to click explain, it simply reloads the page which is the bug I notified you of here

Hell i can not even disable hacks manually in the admin cp. Only by editing config.
Reply With Quote
Reply


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 01:44 PM.


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.06599 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
  • (2)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