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)

Oblivion Knight 03-25-2004 11:22 AM

Thanks TECK.. :)
Erwin's version just didn't feel right without the MySQL and PHP percentage.. Heh.

Tarion 03-25-2004 02:47 PM

Quote:

Originally Posted by Oblivion Knight
Thanks TECK.. :)
Erwin's version just didn't feel right without the MySQL and PHP percentage.. Heh.

I get an error division by zero from this two lines in the code, and i can't find out what's wrong.

PHP Code:

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

Please help me

TECK 03-25-2004 04:27 PM

Quote:

Originally Posted by sabret00the
sorry to be a pain, but i'm encountering an error on line 1843
Code:

        $ms .= '                <td class="tcat"' . iif($vboptions['allowchangestyles'], ' colspan="2"') . '><div class="smallfont">';
the error is
Code:

Parse error: parse error, unexpected T_STRING in K:\Network\xampp\htdocs\forums\includes\functions.php on line 1843

Fatal error: Call to undefined function: exec_nocache_headers() in K:\Network\xampp\htdocs\forums\admincp\global.php on line 37


You made a little mistake while editing the code, please check your steps.
Quote:

Originally Posted by Tarion
I get an error division by zero from this two lines in the code, and i can't find out what's wrong.

PHP Code:

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

Please help me

One of your values has to be returned as zero somewhere, or as a value that PHP will convert to a zero when it converts it to an integer.
Something is wrong with the code, you cannot have either the $totaltime or $querytime as zero.

Tarion 03-25-2004 09:43 PM

Ok i got it to work i edit this line

PHP Code:

$totaltime number_format($endtime[0] - $starttime[0] + $endtime[1] - $starttime[1], $msdecimal); 

as i delet the vb_ prefix for the vb_number_format funktion it work, wenn i add this prefix the error returns.

TECK 03-25-2004 11:42 PM

Hmm, really wierd.
The vb_number_format() is the same like number_format(), except with a little cleanup/replace in chars... use it this way if it's working for you. :)

JoergZ 03-28-2004 04:23 PM

I confirm, that I have the same division by 0 error. After changing the code as suggested by Tarion it works.

Anyway: Installed :)

TECK 03-28-2004 05:33 PM

Thanks for the input JoergZ.
Let's see if other people will have the same problem... I will post a link to his fix (link added to first post). :)

Thanks for helping.

Christine 03-28-2004 07:05 PM

Hi Tech, and thanks for porting this. One of my alltime favorites!

Edit: Nevermind -- I got it working. :)

r.cakir 03-30-2004 07:55 AM

Installed and double checked the modifications, but still getting wrong result in PHP and MySQL percentage:

Code:

Page generated in 0,24497795 seconds (0,00% PHP - 0,00% MySQL) with 11 queries
4 Uncached Templates | DEBUG Mode OFF | GZIP ON (level 1)

I know, I made a mistake somewhere. Maybe someone can put me in the right direction.

Thanks!

r.cakir

Gary King 04-02-2004 01:31 AM

Quote:

Originally Posted by r.cakir
Installed and double checked the modifications, but still getting wrong result in PHP and MySQL percentage:

Code:

Page generated in 0,24497795 seconds (0,00% PHP - 0,00% MySQL) with 11 queries
4 Uncached Templates | DEBUG Mode OFF | GZIP ON (level 1)

I know, I made a mistake somewhere. Maybe someone can put me in the right direction.

Thanks!

r.cakir

I think it might be a server configuration problem; first question: are you on Windows?


All times are GMT. The time now is 06:30 PM.

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.01498 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)bbcode_code_printable
  • (3)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