UBB.Dev
Posted By: ehm How to change user on TOP 10? - 06/01/2005 10:54 PM
I'm using the IIP6.5 and few days ago I had to remove many posts from one expecific user.
Under UBB the current post count is already set to the right number, but on IIP it still showing the larger number and he is on the 'Top 10' users.
How can I remove him from there?
Thank you
Posted By: scroungr Re: How to change user on TOP 10? - 06/01/2005 11:34 PM
in the w3t_Users table his U_TotalPosts is still probably high
Posted By: ehm Re: How to change user on TOP 10? - 06/02/2005 12:40 AM
[]scroungr said:
in the w3t_Users table his U_TotalPosts is still probably high [/]

Maybe is something else. That was the first thing I manually reduced to '8'.
THere is any other table that si being checked?

THank you
Posted By: scroungr Re: How to change user on TOP 10? - 06/02/2005 2:04 AM
well heres the complete query

$query = "
SELECT COUNT(*) as total,t1.B_PosterId,t2.U_Username
FROM {$config['tbprefix']}Posts AS t1,
{$config['tbprefix']}Users AS t2
WHERE t1.B_PosterId = t2.U_Number
AND t2.U_Number > 1
$dayssearchlimit
$limit
GROUP BY B_PosterId ORDER BY total DESC
LIMIT 0,$topposters
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);


and looking at that there must be more threads than what your couning.. and there is no way to disbale that per board basis...so am wondering run this query and see what you come up with

SELECT COUNT(*) as total,t1.B_PosterId,t2.U_Username
FROM w3t_Posts AS t1, w3t_Users AS t2
WHERE t1.B_PosterId = t2.U_Number AND t2.U_Number = '<number of the user>'
GROUP BY B_PosterId ORDER BY total DESC
© UBB.Developers