Previous Thread
Next Thread
Print Thread
Rate Thread
How to change user on TOP 10? #285472 06/01/2005 2:54 PM
Joined: Oct 2002
Posts: 105
ehm Offline OP
Journeyman
OP Offline
Journeyman
Joined: Oct 2002
Posts: 105
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

Sponsored Links
Re: How to change user on TOP 10? [Re: mrnocal] #285473 06/01/2005 3:34 PM
Joined: Oct 2003
Posts: 2,305
scroungr Offline
Old Hand
Offline
Old Hand
Joined: Oct 2003
Posts: 2,305
in the w3t_Users table his U_TotalPosts is still probably high

Re: How to change user on TOP 10? [Re: 234234] #285474 06/01/2005 4:40 PM
Joined: Oct 2002
Posts: 105
ehm Offline OP
Journeyman
OP Offline
Journeyman
Joined: Oct 2002
Posts: 105
[]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

Re: How to change user on TOP 10? [Re: mrnocal] #285475 06/01/2005 6:04 PM
Joined: Oct 2003
Posts: 2,305
scroungr Offline
Old Hand
Offline
Old Hand
Joined: Oct 2003
Posts: 2,305
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


Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,787
Joined: January 2000
Forum Statistics
Forums63
Topics37,493
Posts293,672
Members13,829
Most Online5,166
Sep 15th, 2019
Top Posters(All Time)
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,787
Greg Hard 4,625
Top Posters(30 Days)
isaac 5
DCPhil 2
Gizmo 1
Today's Statistics
Currently Online 621
Topics Created 0
Posts Made 1
Users Online 2
Birthdays 17
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2019 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191117.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.034s Queries: 23 (0.013s) Memory: 3.2412 MB (Peak: 3.4425 MB) Data Comp: Zlib Server Time: 2019-11-17 21:05:40 UTC
Valid HTML 5 and Valid CSS