Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2004, 04:48 AM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Postcount problem

Hi guys, well i have just noticed a strange problem regarding my post counts and as i have just noticed it i have no idea when it went wrong, i mean after what hack i installed.

OK basically the prob is this

OK in the postbit it says i have

Posts: 1,740

This is correct BUT in my profile it says

Total Posts: 1 (4.93 posts per day)

Another admin has 2000+ posts and in her profile it says 2 but in postbit it says the correct 2000+ posts. Now a member with less than 1000 posts, say 30 posts for example it shows correct in both postbit and profile page. Any ideas what can be wrong and how to fix this? It seems if you have more than 1000 posts it messes up.

The guys over at vb.com will not help as its a hacked board, thats fine but i need help guys. If someone can suggest things for me to look for or anything please help

Snowy
Reply With Quote
  #2  
Old 07-21-2004, 07:07 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Strange
Did you modify member.php or MEMBERINFO?

If so check both carefully.
Reply With Quote
  #3  
Old 07-21-2004, 02:18 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sounds like a incorrect hack for me as well.

numberformating problem i'd say.

be sure you have that line, just be called once:
PHP Code:
    $userinfo['posts'] = vb_number_format($userinfo['posts']); 
and afterwards make sure, that below that line, isn't something like:
PHP Code:
$userinfo['posts'] = intval($userinfo['posts']); 
at least that would result in exactly the problem you explained.
Reply With Quote
  #4  
Old 07-21-2004, 02:43 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Xenon
sounds like a incorrect hack for me as well.

numberformating problem i'd say.

be sure you have that line, just be called once:
PHP Code:
    $userinfo['posts'] = vb_number_format($userinfo['posts']); 
and afterwards make sure, that below that line, isn't something like:
PHP Code:
$userinfo['posts'] = intval($userinfo['posts']); 
at least that would result in exactly the problem you explained.
aaahhh I have that line twice, but which to remove?

member.php
PHP Code:
 // User has been a member for less than one day.
$userinfo['posts'] = vb_number_format($userinfo['posts']);
$postsperday $userinfo['posts'];
}
else
{
$postsperday vb_number_format($userinfo['posts'] / $jointime2);
$userinfo['posts'] = vb_number_format($userinfo['posts']);
}
// THREADS STARTED AND THREADS PER DAY 
Reply With Quote
  #5  
Old 07-21-2004, 03:14 PM
CarCdr CarCdr is offline
 
Join Date: Apr 2004
Posts: 242
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xenon nailed it. Line 392:
Code:
$userinfo['posts'] = intval ( $userinfo['posts'] ) ;
Reply With Quote
  #6  
Old 07-21-2004, 03:48 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CarCdr
Xenon nailed it. Line 392:
Code:
$userinfo['posts'] = intval ( $userinfo['posts'] ) ;
so i just remove that line?
Reply With Quote
  #7  
Old 07-21-2004, 03:50 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep that worked Guys you are all pure stars. This place is so helpful and when you are registered as blind as i am all the help you guys give is much more appreciated
Reply With Quote
  #8  
Old 07-21-2004, 03:52 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're welcome

But please don't post full vb files here next time, as this isn't allowed.
Reply With Quote
  #9  
Old 07-21-2004, 03:54 PM
SnowBot's Avatar
SnowBot SnowBot is offline
 
Join Date: Jul 2003
Location: Manchester UK
Posts: 631
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

aahhh appologies, i didnt know but i do now
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:24 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.04397 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (5)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete