php forum
php mysql forum
php mysql smarty
 
Topic Options
#285472 - 06/01/05 03:54 PM How to change user on TOP 10?
ehm Offline
Journeyman

Registered: 10/23/02
Posts: 112
I'm using the IIP6.5 and few days ago I had to remove many posts from one expecific user.<br />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.<br />How can I remove him from there?<br />Thank you

Top
#285473 - 06/01/05 04:34 PM Re: How to change user on TOP 10? [Re: mrnocal]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
in the w3t_Users table his U_TotalPosts is still probably high
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#285474 - 06/01/05 05:40 PM Re: How to change user on TOP 10? [Re: 234234]
ehm Offline
Journeyman

Registered: 10/23/02
Posts: 112
[]scroungr said:<br />in the w3t_Users table his U_TotalPosts is still probably high [/]<br /><br />Maybe is something else. That was the first thing I manually reduced to '8'.<br />THere is any other table that si being checked?<br /><br />THank you

Top
#285475 - 06/01/05 07:04 PM Re: How to change user on TOP 10? [Re: mrnocal]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
well heres the complete query <br /> <br /> $query = " <br /> SELECT COUNT(*) as total,t1.B_PosterId,t2.U_Username <br /> FROM {$config['tbprefix']}Posts AS t1, <br /> {$config['tbprefix']}Users AS t2 <br /> WHERE t1.B_PosterId = t2.U_Number <br /> AND t2.U_Number > 1 <br /> $dayssearchlimit <br /> $limit <br /> GROUP BY B_PosterId ORDER BY total DESC <br /> LIMIT 0,$topposters <br /> "; <br /> $sth = $dbh -> do_query($query,__LINE__,__FILE__); <br /> <br /> <br />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 <br /> <br />SELECT COUNT(*) as total,t1.B_PosterId,t2.U_Username <br />FROM w3t_Posts AS t1, w3t_Users AS t2 <br />WHERE t1.B_PosterId = t2.U_Number AND t2.U_Number = '<number of the user>' <br />GROUP BY B_PosterId ORDER BY total DESC
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top


Who's Online
0 registered (), 26 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Forum 'Trader Ratings'.
by blaaskaak
11/20/08 08:27 AM
Problems reading a lot of old posts here
by Ruben Rocha
11/18/08 04:33 PM
PhotoPost BB Code Popup
by Iann128
11/15/08 01:24 PM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
Looking for a simple upload script
by AllenAyres
11/11/08 02:12 PM
New Mods
Forum 'Trader Ratings'.
by McLemore
11/19/08 02:14 PM
[7.4] Keep log of custom title changes
by blaaskaak
10/27/08 07:51 AM
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Newest Members
Begbie, cenk, MATTO, DougMMcts, tim Anderson
13361 Registered Users
Top Posters
AllenAyres 25448
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks