vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   VB3 MicroStats (https://vborg.vbsupport.ru/showthread.php?t=62173)

Nj?rd Eriksson 05-16-2004 12:29 PM

Quote:

Originally Posted by TECK
Please check the way you mod the files, make sure you use a good php/text editor, for example TextPad.

I'm glad this tip was useful for you. :)

Regards,
Floren.

TECK, there is a problem with your hack if one uses it with the German language system offered by vBulletin (works fine with default US English, of course):

Code:

Warning: Division by zero in /var/www/html/forum/includes/functions.php on line 1839

Warning: Division by zero in /var/www/html/forum/includes/functions.php on line 1840

This seems to happen, whenever a page is generated in less than 1 second.

These are the lines 1839 and 1840 in functions.php

PHP Code:

    $msphp vb_number_format(((($totaltime $querytime) / $totaltime) * 100), 2) . '% PHP';
$mssql vb_number_format((($querytime $totaltime) * 100), 2) . '% MySQL'

Results for pages generated in less than 1 second:

Code:

Page generated in 0,36060596 seconds (0,00% PHP - 0,00% MySQL) with 11 queries
The php warning doesn't appear if a page is generated in more than one second but the results still are inaccurate:

Code:

Page generated in 6,94200397 seconds (-10,53% PHP - 110,53% MySQL) with 11 queries
I assume this could be caused by the fact that German uses "," where English uses a "." and vice versa. Do you have a fix for this, please? One that works regardless if one selects English or German as language, preferrably? :)

PitchouneN64ngc 05-16-2004 12:36 PM

For the division by zero, see the link about that in the first post :)

Intex 05-22-2004 01:06 PM

Installed and works fine with 3.0.1. Good job Tech :).

[high]* Intex clicks INSTALL[/high]

WEForums 05-22-2004 10:06 PM

Nice. I had Erwin's installed thinking he was referring to your vB2 release (which I also had installed), but then I found this post. Might be a good idea to have it linked (in your first post) to this hack as this is a bit better.

Oh, I do have a question, though. I understand the caching part but I am a little confused about a little problem I am having. What if I add the template name to the cached list but it's still showing up as uncached? What could be the issue there?

Just so you know, the template is actually a hack template, so that's probably it. I'm just wanting confirmation. (It's Gary's "Who has been online today" hack. (separate page than the index, though))

Onkel_Tom 06-05-2004 09:33 PM

Quote:

Originally Posted by WEForums
Nice. I had Erwin's installed thinking he was referring to your vB2 release (which I also had installed), but then I found this post. Might be a good idea to have it linked (in your first post) to this hack as this is a bit better.

Oh, I do have a question, though. I understand the caching part but I am a little confused about a little problem I am having. What if I add the template name to the cached list but it's still showing up as uncached? What could be the issue there?

Just so you know, the template is actually a hack template, so that's probably it. I'm just wanting confirmation. (It's Gary's "Who has been online today" hack. (separate page than the index, though))

same for me ;)
First installed Erwin's version and then installed TECK's much better version !
I've also the problem of the uncached "forumhome_todayloggedinuser" Template from Gary's Who was online today Hack.

Kohhal 06-17-2004 01:20 PM

Great hack, had it on vB2, much easier install on vB3 though :D

Below are some stats from my site from the last few minutes using vBindex3 - guess it's time to cut some of the info pulled to the front portal page to cut down on that SQL load!

Page generated in 0.35776806 seconds (55.02% PHP - 44.98% MySQL) with 11 queries
Page generated in 0.62210989 seconds (47.07% PHP - 52.93% MySQL) with 11 queries
Page generated in 0.20080590 seconds (74.33% PHP - 25.67% MySQL) with 11 queries
Page generated in 0.30024004 seconds (84.11% PHP - 15.89% MySQL) with 11 queries
Page generated in 2.15881801 seconds (25.50% PHP - 74.50% MySQL) with 11 queries :eek:

neocorteqz 06-17-2004 02:37 PM

Quote:

Originally Posted by TheMasterG
Great hack, had it on vB2, much easier install on vB3 though :D

Below are some stats from my site from the last few minutes using vBindex3 - guess it's time to cut some of the info pulled to the front portal page to cut down on that SQL load!

Page generated in 0.35776806 seconds (55.02% PHP - 44.98% MySQL) with 11 queries
Page generated in 0.62210989 seconds (47.07% PHP - 52.93% MySQL) with 11 queries
Page generated in 0.20080590 seconds (74.33% PHP - 25.67% MySQL) with 11 queries
Page generated in 0.30024004 seconds (84.11% PHP - 15.89% MySQL) with 11 queries
Page generated in 2.15881801 seconds (25.50% PHP - 74.50% MySQL) with 11 queries :eek:

I had the same problem. But it's fine within the forums its self. so i don't think it should really matter, unless you have tons hitting up your portal page at one time.

The Realist 06-17-2004 03:43 PM

I have the following problem:

Page generated in 75498605 seconds (10000% PHP - 0% MySQL) with 12 queries

Any help or ideas why?

neocorteqz 06-17-2004 05:19 PM

Quote:

Originally Posted by The Realist
I have the following problem:

Page generated in 75498605 seconds (10000% PHP - 0% MySQL) with 12 queries

Any help or ideas why?

Try rehacking the files. start clean.

The Realist 06-17-2004 05:50 PM

Checked code and all is 100%.

Anyone?


All times are GMT. The time now is 02:14 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.01338 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)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
  • (10)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