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)

Boofo 07-23-2002 08:49 AM

Just have it not show where the staff members are or set it up to show them something like "In the forbidden zone" or anything like that. :)

Quote:

Originally posted by Erwin


It's discussed in vbulletin.com

Basically if you switch off forum access mask, members can look at the titles of threads in a private forum if a staff member is reading the thread by lookin at the Who's Online page. (At least on my site and a few others).


TECK 07-24-2002 12:30 AM

Quote:

Originally posted by jassim
ok i want last vr for this hacks :)
thankx

is on the first post, highlighted in bold.
"to download the latest version of this hack, click below"

jassim 07-24-2002 09:58 AM

thankx

jassim 07-24-2002 01:10 PM

ok .. what proplem in thise :

Page generated in seconds ( - ) with 6 queries.

TECK 07-24-2002 01:56 PM

what is your forums url?

jassim 07-25-2002 07:26 AM

Not in the web in my computer :)

TECK 07-25-2002 05:32 PM

you know what i found strange jassim? that you have only 6 queries on your page.
when you purchase vBulletin, you must include an url with your forums. if you don't mind, can you let me know what is that url? thanks.

Admin 07-25-2002 05:54 PM

Quote:

Originally posted by Nakkid
when you purchase vBulletin, you must include an url with your forums. if you don't mind, can you let me know what is that url? thanks.
You can also put in "local" if your board is not installed on a public server. No one has to give you their board's URL.

TECK 07-25-2002 07:54 PM

i understand.. that's why i said "if you don't mind".
i'm concerned with the number of queries. 6?

that's why i thought i could help related to vb installation.

Keith 07-27-2002 12:15 AM

Nakkid, great hack man. I've read all 36 pages, just about twice now but still having 1 problem. By the way, THANK YOU for putting the links to special probs like the db_mysql and a couple others on the first page, really was a big help.

I've been through the db_mysql file several times now, and still getting some wierd issues like 1,027,731,445.53708601 seconds (100.00% PHP - 0.00% MySQL) with 40 queries.

I have 2.2.5, and using the the db_mysql patch until I can upgrade to 2.2.6. That's the file I've edited. So what am I missing?


P.S. This is the link to the patch for 2.2.5 forums

Keith 07-27-2002 12:26 AM

Also hoping someone might be able to explain the numbers in serverload.

i.e., [Server Load: 0.70 ยป 0.64 : 0.58]

jassim 07-27-2002 10:30 AM

yes , Nakkid
the URL is http://arabna.com

jassim 07-27-2002 11:05 AM

I dont know How :surprised:
i only replay one time :cheeky:

jassim 07-27-2002 11:07 AM

Keith
there is a problem i only see 27 pages when i replay and after replay i see 36 pages and i dont see ypure replay
i thing there is probelm

TECK 07-27-2002 06:45 PM

Quote:

Originally posted by Keith
Nakkid, great hack man. I've read all 36 pages, just about twice now but still having 1 problem. By the way, THANK YOU for putting the links to special probs like the db_mysql and a couple others on the first page, really was a big help.

I've been through the db_mysql file several times now, and still getting some wierd issues like 1,027,731,445.53708601 seconds (100.00% PHP - 0.00% MySQL) with 40 queries.

I have 2.2.5, and using the the db_mysql patch until I can upgrade to 2.2.6. That's the file I've edited. So what am I missing?


P.S. This is the link to the patch for 2.2.5 forums

keith, the prob you have there is editing the wrong global.php file and also editing incorrect the db_mysql.php. edit the db_mysql.php 225 version, the changes are the same as in 226. let me know what is wrong.

Quote:

Originally posted by jassim
yes , Nakkid
the URL is http://arabna.com

ok from what i see jassim is that you switch from UBB to VB. however in your localhost, you cannot have only 6 queries because the lowest number of queries on a vb page is 9. make sure you install properly first VB in your localhost. if you have probs, follow this tutorial i made:
https://vborg.vbsupport.ru/showthrea...threadid=39482

proxyMX 07-27-2002 06:53 PM

uhm quadrizaiple posting is totally not legal

TECK 07-27-2002 06:54 PM

is probably from the auto email answer. dont worry he will delete them.
keith, when you view the thread, simply click on Edit and delete those double posts. :)
it will save a mod's time.

Keith 07-27-2002 07:34 PM

First, my apologies to the mod's and Nakkid, and any others subscribing to the thread. I recently changed my email address in the profile to one that has an auto responder. The subscription option and auto email response wound up in a loop, resulting in umteensome identical posts for about 3 pages. I've now deleted them, and changed email address back.

Second, if you're getting unusually high stat numbers like others listed here (me included) or 100% PHP stats and 0% MySQL, and no matter HOW SURE you are that you've edited the right files, before you post anything, start over again!! :) You've hacked the wrong global.php file (there are 2 found in the directories), or the wrong db_mysql.php file. Reload the originals, try it again.

Or you've copied and pasted additional characters from the instructions file that do not belong in the php file.

Third, backup and rename your original files (db_mysql.php, functions.php and global.php) so you'll be able to start over again. As I read this forum thread, I saw how many members had hacked the wrong files. I was CERTAIN I had not made that mistake. Yes, hacking at 1AM is not a good idea. Start over before posting the same stupid situation/question like I did, it was silly and should have known better.

Sorry for having asked the same question that's been answered over and over and over. I'd rather Nakkid be heads down, butt in seat, fingers on keyboard, coming up with more great hacks. :)

TECK 07-27-2002 07:37 PM

Quote:

Originally posted by Keith
Also hoping someone might be able to explain the numbers in serverload.
i.e., [Server Load: 0.70 ? 0.64 : 0.58]

read more here. hope that helps.
about the wrong editing, dont worry. as i said before, i do similar errors me to, as everyone else on this board. :)

FrankR310 07-28-2002 02:13 AM

thanks for the hack; just what i needed.

a couple of questions:

1) i get 8 queries in my calendar; did i do something wrong? i see that minimum is 9 for vb pages.

2) why does vb have higher query numbers than some of the other boards i have seen?

thanks

TECK 07-28-2002 02:21 AM

my bad. i'm sorry. i never had the calendar enabled. :)

FrankR310 07-28-2002 02:27 AM

cool thanks! :)

Thunderpuck 07-30-2002 02:17 PM

God I am so embarrassed to be asking this question, you can't be more of a newbie than I am. This is my very first time installing a hack.

I followed the instructions but I am stuck at the part where it says "To call your vbMicroStats, simply place the string {getmicrostats} anywhere you want in your templates"... I copy and pasted {getmicrostats} on my footer template and now my forum displays the word: "{getmicrostats}" instead of actually getting microstats. LOL. Obviously I am not calling MicroStats properly, can anyone shed some light on a newbie?

Thanks in advance...

Keith 07-30-2002 07:55 PM

It's got to be something very simple, but it's going to be a pain to find. You have to start from square one, go through the instructions again, retracing each and every step, one by one. That's what I would do in this case.

I used the template version. Created a template called home_microstats. It's in the default style because I don't have more than one. This template has the following in it:

Code:

<center>Page generated in $trimmedtime seconds ($percentphp - $percentsql) with $query_count queries.
$adminstats </center>

Then place a variable
Code:

{getmicrostats}
in your footer template. This is what the end of my footer template looks like, with the variable call near the end
Code:

<!-- Do not remove this copyright notice -->
  Powered by: vBulletin Version $templateversion<br>
  Copyright &copy;2000, 2001, Jelsoft Enterprises Limited.<br>
<!-- Do not remove this copyright notice -->
$copyrighttext
</smallfont></p>
$themefooter

<smallfont>{getmicrostats}</smallfont>

<!-- End -->

hope this helps.

Thunderpuck 07-31-2002 12:38 PM

Yes, that did it, you helped a lot Keith! Thanks for taking the time to help a newbie start down the road to hacking this cool forum.
;)

Keith 07-31-2002 08:20 PM

Quote:

Originally posted by Thunderpuck
Yes, that did it, you helped a lot Keith! ;)
That's the first time I think I've actually been of help to someone. :) Glad it worked out, thanks for letting me know. I'm still learning as well, but hacking away like crazy, usually getting into trouble and looking for help myself. :D

Take my advice from another post I made above, use the "Lessons Learned". Backup, rename, backup and rename again if you have to. I have a CD with the original code, and a copy on my harddrive for safekeeping. Always have an original to FTP onto the server in case you goof up. :)

TECK 08-10-2002 08:00 PM

Quote:

Originally posted by Keith
That's the first time I think I've actually been of help to someone. :) Glad it worked out, thanks for letting me know.
great job Keith. glad eveyone got the hack up and running without any hikkies... :)

FlyingDutchman 08-10-2002 08:31 PM

:bunny:

BlueVoltage 08-10-2002 08:58 PM

I just installed this and i get this error:
Quote:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/xelerix/public_html/forums/admin/db_mysql.php on line 240

Fatal error: Cannot instantiate non-existent class: db_sql_vb in /home/xelerix/public_html/forums/admin/global.php on line 108

BlueVoltage 08-10-2002 09:18 PM

I am also getting this error:

Quote:

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/xelerix/public_html/forums/admin/db_mysql.php on line 240

Fatal error: Cannot instantiate non-existent class: db_sql_vb in /home/xelerix/public_html/forums/global.php on line 128

TECK 08-10-2002 09:24 PM

check your code. 99.99% of the cases is because you edited the wrong global file...
check carefully the db_mysql.php file also.

BlueVoltage 08-10-2002 09:36 PM

here is line 240 in my db_mysql.php file:
PHP Code:

        echo "<form><textarea mmTranslatedValueHiliteColor="HILITECOLOR=%22No Color%22" mmTranslatedValueHiliteColor="HILITECOLOR=%22No Color%22" mmTranslatedValueHiliteColor="HILITECOLOR=%22No Color%22" mmTranslatedValueHiliteColor="HILITECOLOR=%22No Color%22" mmTranslatedValueHiliteColor="HILITECOLOR=%22No Color%22" rows=\"12\" cols=\"60\">".htmlspecialchars($message)."</textarea></form>"


TECK 08-10-2002 09:38 PM

this is a line you added yourself. is not part of vb code.

BlueVoltage 08-10-2002 09:48 PM

nevermind, i fixed it :)

TECK 08-10-2002 10:25 PM

congrats :)

Erwin 08-11-2002 03:39 AM

Look, it even works for posts... look at the bottom of my post...

;)

:p

TECK 08-11-2002 04:09 AM

lol

2 X Viverridae 08-14-2002 10:37 AM

Installed in mere minutes, works great.

Thanks!

TECK 08-18-2002 06:28 PM

glad you like it... :)

Okiewan 08-20-2002 04:02 PM

Well... I thought it was odd that I'd see 93 queries... noticed the "93" showing up a lot in this thread <---

Also MySQL shows 0% and PHP=100%

Removed a couple of hacks from forumhome (total users online today, welcome panel) ... still showing 93 queries. :(


All times are GMT. The time now is 12: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.02144 seconds
  • Memory Usage 1,831KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (10)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