vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Statistics Modifications - Dream's Forum Statistics (https://vborg.vbsupport.ru/showthread.php?t=140812)

Dream 05-25-2007 07:09 PM

Quote:

Originally Posted by BWJ (Post 1251695)
I send you a PM with a link to my forum with 161 (I think) different custom field categories... So you can see you program tested to its outmost... :D

There you will also see a bug:

Warning: Invalid argument supplied for foreach() in /statsmod/statistics_user_profile.php on line 43
Warning: Division by zero in /statsmod/statistics_user_profile.php on line 60

I'm gonna look into this, thanks for reporting it.

Miki_29 05-26-2007 03:12 PM

Quote:

Originally Posted by BWJ (Post 1251695)
Warning: Division by zero in /statsmod/statistics_user_profile.php on line 60

I've had the same problem on statistics_registration.php...

Just change:
$percent = ($counter['count'] / $total_counter) * 100;

By:
If ($total_counter > 0){
$percent = ($counter['count'] / $total_counter) * 100;
}


Hope it helps...

By the way, here's the link for my statistics page, translated to Portuguese:
Fairplay Forum

Aimee1969 05-27-2007 11:55 PM

installed thank you ;)

BWJ 05-28-2007 07:56 AM

Quote:

Originally Posted by Miki_29 (Post 1255006)
I've had the same problem on statistics_registration.php...

Just change:
$percent = ($counter['count'] / $total_counter) * 100;

By:
If ($total_counter > 0){
$percent = ($counter['count'] / $total_counter) * 100;
}


Hope it helps...

By the way, here's the link for my statistics page, translated to Portuguese:
Fairplay Forum


Sorry to ask. I could not find this code to replace: In which file?

Miki_29 06-02-2007 08:09 AM

Quote:

Originally Posted by BWJ (Post 1256041)
Sorry to ask. I could not find this code to replace: In which file?

The file you mentioned:
/statsmod/statistics_user_profile.php on line 60

BWJ 06-02-2007 01:00 PM

Quote:

Originally Posted by Miki_29 (Post 1259658)
The file you mentioned:
/statsmod/statistics_user_profile.php on line 60

Sorry for my very stupid question...! :o I naturally searched for it - but for some reason didn't find it.

Anyway it helped with the "line 60" error.

Now there are two left:

Warning: Invalid argument supplied for foreach() in /statsmod/statistics_user_profile.php on line 43
and
Warning: Invalid argument supplied for foreach() in /statsmod/statistics_user_profile.php on line 32

Both errors also existed before. I didn't see the "line 32" in the first place due to the many error lines.

Miki_29 06-03-2007 04:16 PM

Quote:

Originally Posted by BWJ (Post 1259747)
Now there are two left:

Warning: Invalid argument supplied for foreach() in /statsmod/statistics_user_profile.php on line 43
and
Warning: Invalid argument supplied for foreach() in /statsmod/statistics_user_profile.php on line 32

Both errors also existed before. I didn't see the "line 32" in the first place due to the many error lines.

I'm afraid I can't help you with that one... I don't know much of programing on php, I go on self learning, by trying... :o And it's hard to try to fix a problem I don't have :p


By the way, sorry if there are gramar errors on my english (hope there aren't many :rolleyes:)

jerseyda6 06-03-2007 04:47 PM

hmmmmmmmm

Dream 06-05-2007 01:05 AM

BWJ, just disable warnings in your PHP configuration and you are done :D

txspaderz 06-05-2007 01:40 AM

Great Hack!

Suggestion: Could you add an option to the drop down menu to show ALL the Statistics on the page at once? I would love that, as I'm the only user that checks this page, so Server load isn't a problem.

Much Thanks again!


All times are GMT. The time now is 05:04 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.01269 seconds
  • Memory Usage 1,744KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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