phpBBHacks.com - Fix The "Top Ten Posters" Memberlist Option
Discuss internet community strategy at CommunityAdmins.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Add Us:     MySpace     Facebook     StumbleUpon
Username:    Password:
Remember Me?    
Fix The "Top Ten Posters" Memberlist Option
BlinkList
del.icio.us
Furl
linkaGoGo
reddit
Simpy
Mister Wong
Yahoo! My Web

Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Customizing Your phpBB
 See a User Guidelines violation? Please contact us.
Author Message

drathbun
Experienced User

Joined: 10 Jun 2003
Posts: 422

PostPosted: April 30th 2005, 2:16 pm    Post subject: Fix The "Top Ten Posters" Memberlist Option Reply with quote

The "Top Ten Posters" option on memberlist.php has been "broken" since phpBB 2.0.4 was released. If you select the top ten, wouldn't you expect to see the members with the most posts? But since the default sort order is "Ascending", that doesn't happen unless you select "Descending". Way back in 2.0.3, it worked. But, in the 2.0.4 released, it was broken.

On the other hand, perhaps it is not considered "broken" but a feature instead. In any case, here is the fix if you want your "Top Ten Posters" option to always be the ten members with the most posts.

open memberlist.php
find
Code:
        case 'topten':
                $order_by = "user_posts $sort_order LIMIT 10";

Replace with
Code:
        case 'topten':
                $order_by = "user_posts DESC LIMIT 10";


So I'm not classifying this as a "bug" as some folks might not agree with me, but I thought I would post it as it just seems to make more sense.
_________________
<php echo $signature; ?>
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 2: Customizing Your phpBB All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB.it - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil

Network: iFroggy Network Blog - iFroggy Hosting - SportsForums.net - KarateForums.com - YanksBlog.com - DeveloperCube - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - PhotoshopForums.com - MicrosoftBlog.com - DrGregHouse.com - Bad Boy Blog - BadBoyForums.com - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Staff - User Guidelines >

Copyright © 2001-2008. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. Hosted by 100MegsWebHosting. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.