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)
-   -   Forum statisctics at the top of each forum (https://vborg.vbsupport.ru/showthread.php?t=52215)

grog6 04-28-2003 02:07 PM

@ subu1 : I'll make modifications to show 0 if there is no post or don't show it at all if you prefer ;)

@ Boofo : Are you sure there is no rate at all ? even in the DB ? because in the forumdisplay, the rate is only shown if there is more than 1 vote in the same post I think ;)

Boofo 04-28-2003 02:11 PM

Quote:

Today at 11:07 AM grog6 said this in Post #31

@ Boofo : Are you sure there is no rate at all ? even in the DB ? because in the forumdisplay, the rate is only shown if there is more than 1 vote in the same post I think ;)
I double checked it. There are no rating votes in that forum. ;)

subu1 04-28-2003 03:38 PM

ups, i am verry stupid , sorryyyyyyyy.:-))

but why this here, Takeda is not the Best Poster, it is Keek :confused:

grog6 04-28-2003 05:20 PM

@ subu1 : not stupid at all, I try correct it now, but it's really strange, I've some forums where all seems (and is) to be OK, and in an other, I've exactly the same thing as you, my code is correct, queries too ... :ogre:

I'll find, I'll find, I'll find a solutionnnnnnnnn :bunny:

wolfe 04-28-2003 09:41 PM

lol hope you do d00d its a great hack :D

Jadelit 04-29-2003 04:21 AM

could you please update the attachment.

Thanks

irn-bru 04-29-2003 06:14 AM

Is this able to go in to the subforums like forumdisplay forumbit level1_post ect.

sabret00the 04-29-2003 12:17 PM

'best poster' seems to give out the wrong information is there anyway to fix this at all?

grog6 04-29-2003 12:41 PM

@ sabret00the : I've created a post yesterday in the PHP/MYSQL section here, have no answer for the moment, I've looked for this problem yesterday evening during more than 1 hour, don't have find where the problem is :-/

The stranger thing is that it displays the correct username in some forums , but in some others, it doesn't show the reality :5 I don't desesperate to find a solution for this problem ...

amykhar 04-29-2003 01:04 PM

Bug fix for the incorrect Best Poster:

Find:
PHP Code:

$j=1;
while (
$j<$i) {
   if (
$counts[$j]>$counts[$j-1]) {
     
$mposteur=$nom[$j];
     
$liste[postuserid]=$userid[$j];
 }
     
$j=$j+1;  


Replace With:

PHP Code:

$j=1;
$max 0;
while (
$j<$i) {
   if (
$counts[$j]>$max) {
     
$max $counts[$j];
     
$mposteur=$nom[$j];
     
$liste[postuserid]=$userid[$j];
 }
     
$j=$j+1;  


The original code put all the posters in an array. Then, it said if poster x had more posts than poster x-1, it was the best poster. This was wrong. A max value had to be set and held. So, The max started out at 0. If poster x had more posts than max, poster x became the best poster and max became the number of posts X had made. It seems to work fine on my forums.

Amy


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