Welcome, Guest. Please Login or Register.
November 27, 2024, 06:36:25 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  I know i can recount all board totals.. « previous next »
Pages: [1] Reply Ignore Print
Author Topic: I know i can recount all board totals..  (Read 325 times)
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


I know i can recount all board totals..
« on: June 20, 2002, 10:37:31 PM »
Reply with quote

Since restoring my data.. the number of posts for a member is wrong.

I have checked on phpadmin.

How do i force a recount??

Logged
Chris Cromer
The Strange One
Mod Team
YaBB God
*****
Posts: 3152


I am just a figment of your imagination.

WWW
Re:I know i can recount all board totals..
« Reply #1 on: June 20, 2002, 10:40:37 PM »
Reply with quote

Recount board totals in the admin center. I am not sure if it recounts the members posts though...
Logged

Chris Cromer

I am not suffering from insanity, I am enjoying every minute of it.
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:I know i can recount all board totals..
« Reply #2 on: June 20, 2002, 10:43:28 PM »
Reply with quote

I dont think it does... have tried board total recount. when i do a query on phpadmin (on messages for a certain user) it doesn agree with the yabb total :-/

Logged
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:I know i can recount all board totals..
« Reply #3 on: June 21, 2002, 06:16:12 AM »
Reply with quote

With your admin user you can edit the member profile and modify the post count.
Logged

PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:I know i can recount all board totals..
« Reply #4 on: June 21, 2002, 06:22:43 AM »
Reply with quote

Because I restored my member table from a backup that was a week and half old... the counts are wrong.

Isnt there a more automatic way?
Logged
andrea
Global Moderator
YaBB God
*****
Posts: 4400


Peace on Earth

WWW
Re:I know i can recount all board totals..
« Reply #5 on: June 21, 2002, 06:28:10 AM »
Reply with quote

Quote from: PioneeR on June 21, 2002, 06:22:43 AMIsnt there a more automatic way?
You could write a query ...
Logged

PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:I know i can recount all board totals..
« Reply #6 on: June 21, 2002, 07:10:37 AM »
Reply with quote

I can just about cope with doing a query on on table, I have no idea how I would count the number of posts for each member in the message table and then update this in the member table.

Any bored SQL peeps out there??  ;D
Logged
PioneeR
Llama Hunter
YaBB God
*****
Posts: 767


Re:I know i can recount all board totals..
« Reply #7 on: June 23, 2002, 03:42:37 AM »
Reply with quote

I have tried to do this... failed each time!!

I need to count the total number of posts a member has done (message table) and then update the member table with this new total.

Driving me nuts!!! (well more nuts!!)

Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:I know i can recount all board totals..
« Reply #8 on: June 23, 2002, 01:42:30 PM »
Reply with quote

You'd need to write a neat little script to do that. Would have to cycle through the members list, check through the messages table counting their posts, and then updating their members record.
Logged

David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:I know i can recount all board totals..
« Reply #9 on: June 23, 2002, 06:22:55 PM »
Reply with quote

Wouldn't it basically be this.

psuedo code
Get number of rows in member table
While not at end select member id
SELECT something from {$prefix}messages WHERE (poster = 'this member's id');
$num_posts = mysql_numrows(that last query)
UPDATE {$prefix}messages SET posts = $num_posts WHERE (member_id = 'member's id')
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  I know i can recount all board totals.. « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.047 seconds with 21 queries.