Previous Thread
Next Thread
Print Thread
Rate Thread
How to change user on TOP 10?
#285472 06/01/2005 3: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?
mrnocal #285473 06/01/2005 4:34 PM
Joined: Oct 2003
Posts: 2,305
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?
234234 #285474 06/01/2005 5: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?
mrnocal #285475 06/01/2005 7:04 PM
Joined: Oct 2003
Posts: 2,305
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


Link Copied to Clipboard
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
Gardener
Gardener
Sweden, Stockholm
Posts: 1,715
Joined: May 1999
Forum Statistics
Forums63
Topics37,543
Posts293,774
Members13,837
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 269
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 7
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,805
Greg Hard 4,625
Top Posters(30 Days)
isaac 1
Top Likes Received
isaac 39
Gizmo 10
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 1
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

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

PHP: 5.4.45 Page Time: 0.037s Queries: 24 (0.017s) Memory: 3.2615 MB (Peak: 3.6275 MB) Data Comp: Zlib Server Time: 2020-07-07 17:42:17 UTC
Valid HTML 5 and Valid CSS