The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
VB3 MicroStats Details »» | |||||||||||||||||||||||||
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
|
Comments |
#152
|
||||
|
||||
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. |
#153
|
||||
|
||||
Ahhh, I see now. Thanks for explaining that.
You said not to use align="center". What would you use instead then? |
#154
|
||||
|
||||
The best way is to use a class. Here it is an example:
Code:
.txtcenter { text-align: center; } Code:
<table> <tr> <td class="txtcenter">Centered text will be here</td> </tr> </table> Code:
<div class="txtcenter">Centered text will be here</div> Code:
<span class="txtcenter">Centered text will be here</span> |
#155
|
||||
|
||||
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> |
#156
|
||||
|
||||
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. |
#157
|
||||
|
||||
Quote:
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">
You're definately right about it being hard to keep up with the coding changes. |
#158
|
||||
|
||||
Do this:
Create a new class called "theadcenter" Code:
.theadcenter { text-align: center; ... the rest of thead class contents ... } |
#159
|
||||
|
||||
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 |
#160
|
|||
|
|||
Quote:
Love this mod, Teck. First one I installed and rightly so! Chris |
#161
|
||||
|
||||
Quote:
Quote:
Regards, Floren. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|