vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbMicroStats: page load time, queries, GZIP and PHP version (https://vborg.vbsupport.ru/showthread.php?t=35811)

TECK 10-01-2002 09:23 PM

here it is NTLDR:
Code:

$findwords = array(0 => '{getmicrostats}', 1 => '{bbusername}');
$replacewords = array(0 => $microstats, 1 => $bbusername);
$i = 2;


NTLDR 10-01-2002 09:28 PM

Quote:

Originally posted by TECK
here it is NTLDR:
Code:

$findwords = array(0 => '{getmicrostats}', 1 => '{bbusername}');
$replacewords = array(0 => $microstats, 1 => $bbusername);
$i = 2;


As easy as that :) Thanks TECK, I spent ages trying to figure out how to do that.

TECK 10-02-2002 04:48 AM

np. :)
your welcome.

Xenon 10-02-2002 09:11 AM

Finally i've also installed this hack and it makes working on a hack really easier

so i just want to post a thank you floren for this hack.
ok, its on page 41, but i think it's worth, too ;)

TECK 10-04-2002 10:55 AM

thanks stefan for the nice words. :)

Christoff 10-06-2002 12:37 PM

Hi

I can't find anything like that in my /forum/global.php file:
PHP Code:

if (isset($HTTP_GET_VARS['showqueries']) OR isset($HTTP_POST_VARS['showqueries']) 

This is first thing to be changed in your hack.
I use vbb 2.2.6 and... there is nothing like that ...

I beg for help :)

Regards

Christoff

freakyshiat 10-06-2002 06:20 PM

Running great on 2.2.8

Have one questions, is it possible to put the server load in regular display, not admin? I want the server load visible at all times, not just admin

TECK 10-06-2002 06:32 PM

i dont recommend it. the server load have no use for users to known is for you as admin to know what to do if the load is to big...

Christoff 10-06-2002 07:24 PM

TECK: but what with my problem?
This hack is older then 2.2.8
Please..help me ;)

TECK 10-06-2002 07:26 PM

just give me a few christoff i saw you post, ok? thanks.

Stadler 10-07-2002 03:18 AM

Quote:

Originally posted by Boogle
I have a problem with the db_mysql.php file. Locally everything works, but if I upload to me webserver I get an error, like so:



Any advice?

Hi, I've got the same error, cause I was mixing up
echo "Time before: $beforetime\n";
and
echo "Time after: $aftertime\n";
when lookig for the code to change ...

Just remove
PHP Code:

    }

    
$this->query_id mysql_query($query_string,$this->link_id);
    if (!
$this->query_id) {
      
$this->halt("Invalid SQL: ".$query_string);
    }

    
$query_count++;

    if (
$showqueries) {
      
$pageendtime=microtime();
      
$starttime=explode(" ",$pagestarttime);
      
$endtime=explode(" ",$pageendtime);

      
$aftertime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
      
$querytime+=$aftertime-$beforetime;

      echo 
"Time after:  $aftertime\n"

in your broken db_mysql.php, cause you've left it there.

HTH

btw: I've modified the Hack, so that the adminstats are based on templates, too.

Check the Attachment

Christoff 10-08-2002 10:14 AM

TECK: no problem... i'm sorry... i thought it was ignored or something ;)

Thanx and sorry one more time :)

TECK 10-08-2002 02:14 PM

christoff, what vBulletin version you have?
be aware, there are 2 global.php files in your folders. one in /forum and one in /admin

make sure you edit the correct one. :)

Christoff 10-08-2002 05:41 PM

I already wrote i've edited the right one!

Version number is 2,2,6

TECK 10-08-2002 05:44 PM

you still didnt answer to my question. what vB version you have?

Christoff 10-08-2002 05:49 PM

I'm sorry
you've posted when i was editing it
but in previous post i said that :)

TECK 10-08-2002 06:07 PM

aha. then you should have the line that you miss. please check it, it's at the top of your global.php.

also you should upgrade to vb228, due to security issues. check with vb team for more details.

marocnl 10-14-2002 05:43 PM

I measured my serverload with this hack and it came up with [Server Load: 9.32 ยป 9.46 : 8.66] . Isn't this a little bit 2 much? What's normal?

TECK 10-14-2002 06:44 PM

it's huge.. what are you doing there???? you added some crazy hacks??? normal is 0.5

did you know that some hacks released here actually they are sooo bad written that they simply distroy your server?

Erwin 10-14-2002 08:38 PM

Quote:

Originally posted by marocnl
I measured my serverload with this hack and it came up with [Server Load: 9.32 ? 9.46 : 8.66] . Isn't this a little bit 2 much? What's normal?
If you're on a dedicated server, then you need to look at all your scripts to see which one has a query loop or has bad code in it.

If you're on a shared server, it may not even be your site - it may another site on the same server soaking up all the server load. Either way, that is way over. The CPU on the server is being used at 9 times its capacity.

marocnl 10-15-2002 07:48 AM

Quote:

Originally posted by TECK
it's huge.. what are you doing there???? you added some crazy hacks??? normal is 0.5

did you know that some hacks released here actually they are sooo bad written that they simply distroy your server?

I guess that can be the case. Shouldn't vbulletin.org tsjek them first before they can be released. :)

Anyhow, it's now about 3. I don't know exactly why it decremented. The page load time is round about 1. Is this ok? We are on a virtual server. But we will soon go over onto a dedicated. The server we r now on is just to test the board. So most of the time only one or 2 persons are online. That's why i don't get the serverload. But i hope like Erwin says, it's not mine vbulletin-script.

When we go online a minumum of 100 current users is always online.

marocnl 10-15-2002 07:53 AM

Quote:

Originally posted by Erwin


If you're on a dedicated server, then you need to look at all your scripts to see which one has a query loop or has bad code in it.

If you're on a shared server, it may not even be your site - it may another site on the same server soaking up all the server load. Either way, that is way over. The CPU on the server is being used at 9 times its capacity.

Is there some kind of a program that can tsjek my vbulletin script, which is extremeley hacked(more than 60:p), for malicious code?

If there isn't tell me how you would do it, besides installing a fresh vbulletin-script. That's no option :D

If others have any ideas, i wanna hear them 2 and would be most grateful. It's nice to have hacks, but when it f*cks up my serverload it's crap! You might agree. :cross-eyed:

TECK 10-15-2002 12:01 PM

extremly hacked? i barelly see few hacks on it...
and i asume you paid the $600 fee to remove the vBulletin copyright, right?
http://dating.marokko.nl/

install a clean basic v2.2.8 and you will see the server load dropping really low.
alot of people here dont realise that hacking their boards no matter how, [a] they expose them selfs to security issues, [b] to extremly poor coding skills, [c] to large number of queries added, etc.

dont install a hack just like that. first ask the hack writer if it generates any extra queries. if he(she) cant answer any tech questions about the code, be aware, there might be problems with the code. you can compare the code with the original vBulletin code to see if the coder is a sloppy one or not.
anyway, soon vBulletin will install here hack reviews, wich is really good because i could say that half of the hacks here released are terrible (coding, etc).

guys, if you are not sure about a piece of code, dont release it just for fun. half of the the people here who release a hack have no idea about php or how to use an implode explode function for example... not to talk about the usage of a simple array.

marocnl 10-15-2002 03:27 PM

Quote:

Originally posted by TECK
[B]extremly hacked? i barelly see few hacks on it...
and i asume you paid the $600 fee to remove the vBulletin copyright, right?
http://dating.marokko.nl/

install a clean basic v2.2.8 and you will see the server load dropping really low.
alot of people here dont realise that hacking their boards no matter how, [a] they expose them selfs to security issues, to extremly poor coding skills, [c] to large number of queries added, etc.

dont install a hack just like that. first ask the hack writer if it generates any extra queries. if he(she) cant answer any tech questions about the code, be aware, there might be problems with the code. you can compare the code with the original vBulletin code to see if the coder is a sloppy one or not.
anyway, soon vBulletin will install here hack reviews, wich is really good because i could say that half of the hacks here released are terrible (coding, etc).

guys, if you are not sure about a piece of code, dont release it just for fun. half of the the people here who release a hack have no idea about php or how to use an implode explode function for example... not to talk about the usage of a simple array.

Thnx 4 the answer.

As 4 the copyright.....i will c to it getting restored :)

-=dm=- 11-03-2002 11:58 PM

Great TECH :)
does this work with version 2.2.4?

Erwin 11-04-2002 12:07 AM

Should work for all 2.2.x versions.

slideboxer 11-04-2002 06:54 PM

I seem to be having some probs with the installation of the hack. Here's a screen shot of what it is doing to my pages...

And it doesn't even tell me the stats, just {getmicrostats} in my footer. I'm running 2.2.8. Any help?

TECK 11-04-2002 09:51 PM

did u read the note on the first post related to ur php version?

Asendin 11-04-2002 10:10 PM

Overgrows edge forums show this

Page generated in 2.13338900 seconds (100.00% PHP - 0.00% MySQL) with 25 queries.

how do they accomplish the 0.00% MySQL???

TECK 11-04-2002 10:46 PM

he doesnt have the hack installed properly, that's why.

Asendin 11-04-2002 10:47 PM

Quote:

Originally posted by TECK
he doesnt have the hack installed properly, that's why.
really?? lol, no wonder there board lags so much sometimes, 600 users online though.. :cool:

TECK 11-04-2002 10:49 PM

even if u have 1200users it will still load in 0.5-0.9secs not 3secs

Lethal 11-05-2002 03:35 AM

My server load doesn't show up, I talked to my host and they said it should. I went over the hack changes 3 or 4 times and I know that variable is there, everything is right but it just won't show up. Also, is GZIP a good thing to use or is it just better to leave it off? Maybe good on a site that gets a lot of traffic? I turned it on and I go 2 extra queries and the load time didn't change much.

Without gzip:
Page generated in 0.31823003 seconds (82.84% PHP - 17.16% MySQL) with 34 queries.
[Debug Mode OFF] [PHP v4.2.3] [GZIP disabled]

with gzip:
Page generated in 0.38986803 seconds (97.93% PHP - 18.07% MySQL) with 36 queries.
[Debug Mode OFF] [PHP v4.2.3] [GZIP enabled - level 1]

Does that look ok? Should I use gzip?

mheinemann 11-05-2002 03:42 AM

Doesn't look right

97.93% + 18.07% = 116%
this should always equal 100%

IcEmAn@GeR 11-05-2002 11:40 AM

Hi @ all,


thus I have all changes in my files made and also the template provided however nevertheless get I in each case in more footer this {getmicrostats}angezeigt.

I have also seen that 2 others equal problem to already have, which we make wrongly it seem with that to mostly fold.

I am not also really so crack in this area however after guidance can I sowas also;)

I hope it can me one help.

Thanks already times in advance.

PS: sorry for my bad english, my German is better ;)

Lethal 11-05-2002 04:40 PM

I guess I will just let GZIP off then.

Ian 11-05-2002 09:27 PM

Quote:

Originally posted by Lethal
I guess I will just let GZIP off then.
GZIP at setting 1 is the best. It'll reduce bandwidth usage a lot and wont slow your server down much.

N9ne 11-06-2002 04:18 PM

If your host has GZIP, I suggest setting it to level 1, that goes out to all vB owners, it HALVED my bandwidth usage, right now i'd be using 1GB a day of bandwidth with my forum, but with GZIP I use only about 200-300MB :)

maestrosdelweb 11-10-2002 09:34 PM

It works fine.. Thanx...

mheinemann 11-10-2002 09:37 PM

Does a higher GZIP setting offer more compression or less compression.


All times are GMT. The time now is 05:52 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
  • Page Generation 0.02219 seconds
  • Memory Usage 1,834KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete