 |
 |
 |
 |
Registered: 06/05/06
Posts: 105
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#170216 - 12/13/06 07:45 AM
Re: TOP POSTERS
[Re: Gizmo]
|
|
Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
|
|
Just screwing around wiht the query, completely untested and i'm half asleep so i don't know if it'll work, but you could try something similar to: Change: $query = "
select t1.USER_ID,t1.USER_DISPLAY_NAME,t2.USER_TOTAL_POSTS
from {$config['TABLE_PREFIX']}USERS as t1,
{$config['TABLE_PREFIX']}USER_PROFILE as t2
where t1.USER_ID <> 1
and t1.USER_ID = t2.USER_ID
and t1.USER_IS_APPROVED = 'yes'
order by t2.USER_TOTAL_POSTS desc
limit {$config['TOP_POSTERS']}
";To: $query = "
select t1.USER_ID,t1.USER_DISPLAY_NAME,t2.USER_TOTAL_POSTS
from {$config['TABLE_PREFIX']}USERS as t1,
{$config['TABLE_PREFIX']}USER_PROFILE as t2
where t1.USER_ID <> 1
and t1.USER_ID != 1
and t1.USER_ID = t2.USER_ID
and t1.USER_IS_APPROVED = 'yes'
order by t2.USER_TOTAL_POSTS desc
limit {$config['TOP_POSTERS']}
";Adding the uID of users to ban (in this case, the line below):
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|