Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

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

Version: 3.0.0 Rating:
Released: 03-04-2004 Last Update: Never Installs: 157
 
No support by the author.

You asked for... but it was available for VB2 only? There you go, you have it now.

Looking for 3.5.4 version? Get it here.

VERSION 1.2 RELEASED
Basically the only difference you will notice is a dropdown menu that will display the unchached templates.
In this way, you can add it to the cache and save one or more queries.


[high]THIS HACK WAS TESTED IN A DEFAULT, CODE UNMODIFIED BOARD.[/high]

This hack will add at the bottom of each vBulletin(powered) page the following stats:
REGULAR USERS STATS
- load time of specified page in microseconds (with custom no. of digits to show)
- percentages of PHP/MySQL usage
- number of queries executed

ADMINISTRATOR STATS
- number/name of uncached templates (name highlighted in blue, for uncached template)
- vBulletin DEBUG mode status
- server GZIP library compression status
- average Server Loads

[high]This is not only estethic, it will also help you troubleshoot any wierd queries that you have in your scripts.[/high]

IMPORTANT
If you get results like:
Page generated in 3.35731196 seconds (9.05% PHP - [high]90.95%[/high] MySQL) with 17 queries
You probably use a bad piece of code, because vBulletin will never generate those extreme results.
Imagine this: the code uses only 10% the resources to read the actual PHP code and the rest of 90% is used only to scan the tables... WOW!
That means the code forces to read into the database for each user who visits the site at this percentage... if you have 1000 users viewing the page in the same time.. you can get a picture of it...
If you compare this with vBulletin, the software does the opposite, 90% PHP and 10% MySQL... the right way.

DIVISION BY ZERO ERROR? Read this.
INVALID STATS IF MYSQL COMPILED IN A NON-ENGLISH LANGUAGE? Read this.

NOTE: The blue highlighting is not working in Opera 7.23 version. (Thanks Christine)

Have fun.

Show Your Support

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

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

Hi Bob,
"Deprecated" is a term, used most of the time in programming, that is considered obsolete and in the process of being phased out in favor of a specified/better replacement.
The best example is this: certain PHP functions were replaced by better ones, in newer versions. Their names changed. However, some programmers still like to use the old ones, taking the chance to have their program fail.
Reply With Quote
  #153  
Old 05-08-2004, 12:47 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ahhh, I see now. Thanks for explaining that.

You said not to use align="center". What would you use instead then?
Reply With Quote
  #154  
Old 05-08-2004, 01:05 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The best way is to use a class. Here it is an example:
Code:
.txtcenter {
  text-align: center;
}
Then you could simply use:
Code:
<table>
<tr>
<td class="txtcenter">Centered text will be here</td>
</tr>
</table>
You could also use:
Code:
<div class="txtcenter">Centered text will be here</div>
or:
Code:
<span class="txtcenter">Centered text will be here</span>
to obtain the same results.
Reply With Quote
  #155  
Old 05-08-2004, 02:30 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, thanks. I guess I never knew that was the new way to do the align="center". But wouldn't you use this for td instead of class?


HTML Code:
 <td style="txtcenter">Centered text will be here</td>
Because you might want to add something like class="thead", too.
Reply With Quote
  #156  
Old 05-08-2004, 06:37 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can apply the class="txtcenter" anywhere in a TD, TR or TABLE.
If you apply it in a TABLE line, it will make the hole table centered.
In a TR (column), all child rows will be centered.
In a TD, that specific row will have the text centered.

If you currently have a class present, you cannot use style="txtcenter".
Instead, use:
style="text-align: center", beside class="thead"...
Although, I don't like this way to write code for the reason mentioned few lines above... In certain versions of XHTML (for example Strict 1.1) the "style" is deprecated also... it's getting hard to code huh?

The best way is this:
Edit the actual class and add the text-align: center; line into it.
Reply With Quote
  #157  
Old 05-08-2004, 06:52 PM
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 TECK
You can aply the class="txtcenter" anywhere in a TD, TR or TABLE.
If you aply it in a TABLE line, it will make the hole table centered.
In a TR (column), all child rows will be centered.
In a TD, that specific row will have the text centered.

If you curently have a class present, you cannot use style="txtcenter".
Instead, use:
style="text-align: center", beside class="thead"...
Although, I don't like this way to write code for the reason mentioned few lines above... In certain versions of XHTML (for example Strict 1.1) the "style" is deprecated also... it's getting hard to code huh?

The best way is this:
Edit the actual class and add the text-align: center; line into it.
That's very interesting. I didn't know this before.

The only thing about editing the current class is that in some areas you might not want it to center something. Right now I have it as:

HTML Code:
<td colspan="4" style="text-align: center;" class="thead">
and it seems to be working fine. But this isn't XHTML compliant, then, right?

You're definately right about it being hard to keep up with the coding changes.
Reply With Quote
  #158  
Old 05-08-2004, 07:06 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do this:
Create a new class called "theadcenter"
Code:
.theadcenter {
	text-align: center;
	... the rest of thead class contents ...
}
Then stick the new class only where you need it, in your html code... in this way you remain code compliant...
Reply With Quote
  #159  
Old 05-09-2004, 10:55 AM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem. This:
Page generated in 2.72278 seconds with 14 queries [Server Loads: 6.36 4.98 : 3.55]

is at the top and bottom of the forum. even when I remove the {ms}, it's still there. And server load is high
Reply With Quote
  #160  
Old 05-10-2004, 04:06 AM
ChrisLM2001 ChrisLM2001 is offline
 
Join Date: May 2003
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TECK
Do this:
Create a new class called "theadcenter"
Code:
.theadcenter {
	text-align: center;
	... the rest of thead class contents ...
}
Then stick the new class only where you need it, in your html code... in this way you remain code compliant...
Thanks, Teck and Boofo about this issue. Spent months learning XHTML, and this is a reminder to hit the books again (nevermind remembering how whitespace is handled in XHTML....thunk, thunk, thunk....me bad!).

Love this mod, Teck. First one I installed and rightly so!

Chris
Reply With Quote
  #161  
Old 05-10-2004, 02:15 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lifesourcerec
I have a problem...
Please check the way you mod the files, make sure you use a good php/text editor, for example TextPad.
Quote:
Originally Posted by ChrisLM2001
Thanks, Teck and Boofo about this issue. Spent months learning XHTML, and this is a reminder to hit the books again (nevermind remembering how whitespace is handled in XHTML....thunk, thunk, thunk....me bad!).
I'm glad this tip was useful for you.

Regards,
Floren.
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 10:30 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.22021 seconds
  • Memory Usage 2,325KB
  • 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
  • (6)bbcode_code
  • (2)bbcode_html
  • (4)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
  • (2)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