![]() |
Quote:
change this value // time format (how many digits you want to show) $digits=8; to anything you want, it's located in admin/functions about 8 lines from // ###################### Start dooutput ####################### as for the 100% PHP, rehack db_mysql.php, i believe thats the file.. I also have noticed you have your gzip level at 2, i was lead to believe then anything over a 1, wouldn't be any better. and would create more load. anyone else know if this is true?? https://vborg.vbsupport.ru/showthrea...ression+levels |
Quote:
the forum home page itself is now at 25 queries which seems about as good as I can get it. |
Quote:
I did this for the $digit: PHP Code:
|
Quote:
and Page generated in 0.1956 seconds (76.11% PHP - 23.89% MySQL) with 30 queries. don't know why your didn't work... :confused: |
could it be that I am running it under Apache 2 and Windows XP Pro?
|
Quote:
|
TECH,
I've just reapllied the hack and it still displays 100% for PHP and 0% for MySQL. I have attached the db_mysql.php file below, if I could borrow some of your time, in looking through the file, just to be sure I would be greatful. Thanks |
Ok, I got this error.
Parse error: parse error, unexpected $ in /home/thesonic/public_html/vbtesting/admin/functions.php on line 1101 I went to line 1101 and couldn't find that "$". EDIT: Nevermind, it got fixed on its own. :S |
help please
i have installed this hack and i get no errors at all. the problem is that i dont know the exact place to place this stats. and in some of the variables i get no value (see atach file). can anyone point to me in which templates i need to edit to show the microstats at the bottom of every page as in vb.org? also is the result shown in the attachment correct or i am doing something wrong with it? I am using the template based version on vb2.3.0. Thanks. greate hack by the way. i love it. :D :D |
You have to place the variable into your footer. Preferably towards the bottom. Read the instructions, it tells you what variable to put.
|
Quote:
| anywhere you want in your templates (for example in footer). | | NOTE: The higher you place the string in your templates, | the more inacurate your data will be. | | The variables you can use are: | | $digits - number of digits for microtime | $trimmedtime - the time your page is loaded | $query_count - number of queries executed | $debugmode - tells if VB is in debug mode | $versionphp - PHP version | $percentphp - PHP percent page usage | $percentsql - MySQL percent page usage | $gziptext - GZIP compression library | $gziplevel - GZIP compression level | $serverload - your average server load those are the final steps but which variable are you talking about? maybe you mean the string? have a look here the site is still not in production http://www.depfacy.com/forums/showth...=12&forumid=39 well i have tried both by parsing the string and using the template and by inputing the whole thing in the footer template. here is my footer just to tell me what is wrong. PHP Code:
This is a dedicated machine of 800MHz and 768MB RAM and 10K rpm SCSI drivers and doesnt do anything else but hosting this board which is currently not used. Also why can i not see the adminstats ? |
Search the thread for answers. Those questions were asked (and answered) several times by many other users.
|
Sorry TECK, but I'll answer it anyway, some people could be too lazy to search through a 55 page thread. *raises hand* =j
Dude, Just add {getmicrostats} anywhere in your footer Preferably after </table> since there is nothing after it. If you did everything right, {getmicrostats} should call everything that's needed. |
Quote:
i aint lazy just missed the replacment thingy. and what you said sonikku is not the solutions as that is the first thing i did. well here are my results dunno if they are good but from what i have read over 100 queries i can be in trouble forumhome ------------------------------ Page generated in 0.16079295 seconds (65.76% PHP - 34.24% MySQL) with 62 queries. [Debug Mode OFF] [PHP v4.3.1] [GZIP enabled - level 1] [Server Load: 0.00 ? 0.03 : 0.00] vbPortal Home ------------------------------ Page generated in 0.18081701 seconds (54.13% PHP - 45.87% MySQL) with 107 queries. [Debug Mode OFF] [PHP v4.3.1] [GZIP enabled - level 1] [Server Load: 0.00 ? 0.03 : 0.00] |
107 Queries?! o.O;;; Daaaaaaamn! Is that natural? Anyway, if that's what you have, then I suppose you're ok. Check out what I have.
Tell, how many hacks do you have installed? And did you add alot of stuff in the head, and the php include? |
|
Sanjiyan, search the thread (use the search option at the bottom of this page). Is your db_mysql.php file that does this. So check that file, there is your prob, not the hack.
solent, please tell me you don't have a busy site, orelse you will have your server account canceled with 107queries on ONE page. 107queries is EXTREMLY high, a total killer for the server. |
Quote:
the server is a 1 800MHZ CPU with 2 cpus cabable, 768MB of SDRAM PC100 and a 7.2K rpm SCSI Drive. i am running vbportal www.vbportal.com together with vbulletin and maybe that is the reason. vbportal is the beggiset hack made for vbulletin. maybe that is why i am getting all that queries. the server will be probably have 100 concurrent users at the tops. |
Thanks TECK problems solved, and its working now.
I was having the same problem as in this post: https://vborg.vbsupport.ru/showthrea...047#post332047 |
Quote:
|
ok that sounds resonable enought TECK i will rebuild my board from scratch and this time i will be more carefull on installing hacks.
thanks |
First off, I love this hack, really great; thank you :)
Now, I have a few comments.. Perhaps they have been covered, but I don't want to read through all of the many posts in this thread.. How does vBulletin figure out how many queries were executed? I am trying to write a script for my main site, but this is stumping me... vbMicroStats uses @exec("uptime") to figure out the load. The problem is, many professional servers disallow the httpd/www-data user (Might be called something else, but it's the one that Apache spawns under) from executing things such as system() or exec() for obvious security reasons, you would have near-root permissions. On my server, this is the case. Here's what I came up with the get around it; Perhaps not as clean as yours, but it works :) File: FORUM/admin/functions.php PHP Code:
PHP Code:
|
If I'm correct, that won't work in safe mode...
|
I cant get them to show up......
|
ok, my new attach wouldn't show....
|
For those having trouble with the functions.php replacement on 2.3.0 Final, replace your entire dovars section with the following code [it works] (NOTE!: this is for an unhacked vB! If you have modified this section at all with other hacks, don't use this!)
PHP Code:
|
Page generated in 0.09366798 seconds (71.57% PHP - 28.43% MySQL) with 21 queries.
Does that sound accurate? Which is better, more php then mysql or the other way around? |
that looks just fine
|
ok so the reason my serverload is not showing is possibly because my server doesn't allow the @exec("uptime") to be used, at least thats what I have read. If i ask them will they allow it, because I really would like to know what my server load is. Any suggestions on how to get around it?
|
If you have a problem look at the part of the instructions that say
Template: home_microstats Do NOT create a new template called home_microstats *DO* create a template called microstats and bing, your {getmicrostats} will show up! |
WoooHooo!!! Page generated in 0.35274894 seconds (60.67% PHP - 39.33% MySQL) with 124 queries. think I need to pull a few hacks off LOL
Any way to add server uptime to the stats? |
Page generated in 0.1907 seconds (90.37% PHP - 9.63% MySQL) with 24 queries.
[Debug Mode OFF] [PHP v4.3.1] [GZIP enabled - level 1] [Server Load: 0.79 ? 0.36 : 0.24] damn that looks good. :D |
<p align="center"><smallfont>
<!-- Do not remove this copyright notice --> Powered by: vBulletin Version $templateversion<br> Copyright ©2000 - 2002, Jelsoft Enterprises Limited.<br> <!-- Do not remove this copyright notice --> $copyrighttext<br> {getmicrostats} </smallfont></p> i dont get thing at the bottom ! wat could be wrong ? Thx |
go over each step and make sure all the code is in the right spot.
|
Page generated in 0.12096798 seconds (84.99% PHP - 15.01% MySQL) with 20 queries.
is that any good ? |
Excellent. :)
|
Page generated in 0.25907803 seconds (69.56% PHP - 30.44% MySQL) with 23 queries.
Very cool hack ~ clicks install. |
I love this hack :) Customized it a bit (The damned exec() security hole..;)) but it works great. Is there a way to get the Apache version and the MySQL version? Currently I have them hard coded in, but a friend suggested parsing the phpinfo() command to get the versions.. Ideas?
|
The Admin Quick Stats might be just what you are looking for. It displays MySQL version & other useful info, I'm sure you can adapt it to display at the bottom if you wanted. I actually had to mod it myself because I use the attachments hack, so it just gets the size of the directory.
Quote:
|
If you look for something more complex:
https://vborg.vbsupport.ru/showthrea...threadid=43232 There is a fix for the attachments as files listed in the first post. |
All times are GMT. The time now is 03:37 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|