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)

TECK 07-28-2004 10:36 PM

Quote:

Originally Posted by Logician
Apparently the hack produces invalid stats if MYSQL is compiled in a non-english language. This happens because MYSQL can be configured to use different 'lang_decimalsep' and 'lang_thousandsep' variable values which bothers the number formating through vb_number_format() function.

To fix it, I suggest to find:
PHP Code:

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

in the hack code inside functions.php

and BEFORE that add:
PHP Code:

$bbuserinfo['lang_decimalsep']='.'$bbuserinfo['lang_thousandsep']=','

This fix forces to use English seperators which the hack code depends so regardless of MYSQL configuration the formatting works fine. ;)

Thanks Logician, I added a link in the fist post. :)

Regards,
Floren.

Natch 07-29-2004 12:44 AM

Should we install this modification regardless of server config ? or only in certain situations ?

TECK 08-13-2004 02:05 AM

Only if MYSQL is compiled in a non-english language.

Kalakov 08-26-2004 07:24 AM

I just installed RPG Integration Hack v2.5.1

and this is what I get

Page generated in 8.47130704 seconds (1.54% PHP - 98.46% MySQL) with 26 queries

O_o not good I gues =) full site is going slow

is there a way to check where the problem is ?

MickDoneDee 08-26-2004 08:19 AM

Quote:

Originally Posted by Kalakov
is there a way to check where the problem is ?

I suggest you need to look at each query in detail to see which ones are taking up most of the time. To do that you need to turn debug mode on as I did. Refer to my post: https://vborg.vbsupport.ru/showpost....3&postcount=39

Kalakov 08-26-2004 09:13 AM

I dint found anything with debug on
I uninstalled the hack but its still pretty high

Page generated in 26.25595188 seconds (1.57% PHP - 98.43% MySQL) with 26 queries

maybe a problem with my host ? :/

deathemperor 08-26-2004 09:26 AM

nice hack as always
*click install*

Kalakov 08-26-2004 12:38 PM

Everything running fine now seems it wasnt a problem with a script but with the host =)

venomx 09-11-2004 08:02 AM

I am getting

Parse error: parse error in /home/forum/public_html/forums/includes/functions.php on line 3876

Fatal error: Call to undefined function: devdebug() in /home/forum/public_html/forums/includes/functions.php on line 957


:((( Someone want to let me know what I have done wrong? I followed everything to a T...

venomx 09-11-2004 08:30 AM

Fixed LOL Cant believe I made that error.... Works great!


All times are GMT. The time now is 06:32 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.01266 seconds
  • Memory Usage 1,740KB
  • 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_php_printable
  • (2)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