Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Forum Posts

Asked Modified Viewed 2,165 times
W
wheeler
W
Michael Wheeler
  • Member, joined since
  • Contributed 87 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
asked
Member

On all the sites now that use pphp-fusion, The Latest Version. The forum posts count for the members is different to what it shows in the forums.

For example, It'll show 500 posts for a member in the forum under his avatar. But in that members pproofile, It'll show 243.

Anything different?
0 replies

8 posts

M
muscapaul
M
Paul

Time flies like an arrow, fruit flies like banana (Groucho Marx)

Sites: Diptera.info (site owner); Online-Keys.net (site owner); Sciomyzidae.info (site co-owner); muscapaul.com (defunct; site owner)
  • Veteran Member, joined since
  • Contributed 1,075 posts on the community forums.
  • Started 8 threads in the forums
answered
Veteran Member

I think I know the cause, but I am sure I will be corrected if I am wrong. The high number will be read from the users table, where every time a users posts a message the number is upped with 1. When a message of that user is deleted, that number is not adjusted. The second number is the total number of messages that are actually present in the posts table. That number is of course adjusted as soon as a message is deleted.
I checked on my site and posted a test message that I subsequently deleted. To the first number 1 was added and is stayed 1 up after the deletion, to the second 1 was added and subsequently subtracted.

I guess it would be correct to use the second numer in the profile as well.
0 replies
W
wheeler
W
Michael Wheeler
  • Member, joined since
  • Contributed 87 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

Hmm

I think you have actually cracked it, Do you know how to fix it?
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Profile shows number of posts that actually exist by the user

forum shows total number of posts made by the user

Which do you prefer?
0 replies
W
wheeler
W
Michael Wheeler
  • Member, joined since
  • Contributed 87 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

I'd prefer it to show the total number of posts that have actually been made by the user in the lifetime of the site, Its your system. It's upto you..lol
0 replies
F
Falk
F
Falk 146
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 12 questions
answered
Super Admin

Ok, edit profile.php, change line 109

<td class='tbl1'>".number_format(dbcount("(post_id)", "posts", "post_author='".$data['user_id']."'"))."</td>


to

<td class='tbl1'>".number_format($data['user_posts'])."</td>
0 replies
W
wheeler
W
Michael Wheeler
  • Member, joined since
  • Contributed 87 posts on the community forums.
  • Started 21 threads in the forums
  • Started this discussions
answered
Member

Cheers Pal
0 replies
I
ItsJustMe
I
  • Junior Member, joined since
  • Contributed 14 posts on the community forums.
  • Started 3 threads in the forums
answered
Junior Member

Hey. How do I get the opposite? I say if a post is deleted why still count it? Please help me get the number of posts that actually exists.

Thanks
Reyah
Edited by ItsJustMe on 10-01-2006 07:58,
0 replies
— 1 month later —
T
tatems
T
tatems 10
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 2 threads in the forums
answered
Junior Member

Quote

Tareyah wrote:
Hey. How do I get the opposite? I say if a post is deleted why still count it? Please help me get the number of posts that actually exists.

Thanks
Reyah


I would also be very interested in this!
0 replies

Category Forum

Bugs and Errors - 6

Labels

None yet

Statistics

  • Views 0 views
  • Posts 8 posts
  • Votes 0 votes
  • Topic users 5 members

0 participants

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet