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

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

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.

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

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

Comments
  #52  
Old 05-19-2006, 07:04 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sensimilla
Hmmm... I did it twice step by step and its looking like this...
Any ideas ? TIA
Floren is working on the column span problem now.
Reply With Quote
  #53  
Old 05-19-2006, 07:23 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
Reply With Quote
  #54  
Old 05-19-2006, 07:28 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #55  
Old 05-19-2006, 07:29 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by packetattack
I've edited the files multiple times and I keep getting this persistent error after I upload them back up the server.

Parse error: parse error, unexpected T_CLASS, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
Use Textpad?
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.
Reply With Quote
  #56  
Old 05-19-2006, 09:44 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welcome back TECK, it's great to see this released for 3.5.x!
Reply With Quote
  #57  
Old 05-19-2006, 09:58 AM
derekivey derekivey is offline
 
Join Date: Apr 2005
Location: Pennsylvania, USA
Posts: 1,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for releasing a vB 3.5 version TECK! I will install it after school.

Derek
Reply With Quote
  #58  
Old 05-19-2006, 11:18 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What a great way to start your first released 3.5 hack! Welcome back.

/me clicks install
Reply With Quote
  #59  
Old 05-19-2006, 12:19 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Here is class_core.php lines 983-1002
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       }
Any idea? I've tried 3x's before posting this.
Reply With Quote
  #60  
Old 05-19-2006, 12:21 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's strange. It works great for me.
Reply With Quote
  #61  
Old 05-19-2006, 01:09 PM
bang bang is offline
 
Join Date: Sep 2005
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

a little hard to believe that a hack with this kind of functionality cannot avoid using file edits...
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 11:48 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.05030 seconds
  • Memory Usage 2,317KB
  • 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
  • (3)bbcode_code
  • (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