The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
DEFAULT VIEW: Memberlist -- Top Posters
I'm guessing/hoping that this hack has probably already been requested and created but I haven't been able to find it while looking so far:
Right now the default view for the memberlist is to show members alphabetically. Is there a hack existing that changes the default view (the view you get when you first click on the memberlist button) so that it shows the members listed by the highest number of posts to lowest number of posts? Thanks if anyone has this or knows where I can find it. |
#2
|
||||
|
||||
In memberlist.php find:
Code:
if ($what=="topposters") { $orderby="posts"; $direction="DESC"; } Code:
if ($what=="username") { $orderby="username"; $direction="ASC"; } Code:
if ($orderby=="" or ($orderby!="username" and $orderby!="posts" and $orderby!="joindate" and $orderby!="lastpost")) { $what = 'username'; $orderby="username"; } Code:
if ($orderby=="" or ($orderby!="username" and $orderby!="posts" and $orderby!="joindate" and $orderby!="lastpost")) { $what = 'topposters'; $orderby="posts"; $direction="DESC"; } Code:
<td bgcolor="{secondaltcolor}"><smallfont><a href="memberlist.php?s=$session[sessionhash]"><b>List Alphabetically</b></a></smallfont></td> Code:
<td bgcolor="{secondaltcolor}"><smallfont><a href="memberlist.php?s=$session[sessionhash]&what=username"><b>List Alphabetically</b></a></smallfont></td> |
#3
|
||||
|
||||
The better way would be to do the following:
open memberlist.php and find PHP Code:
PHP Code:
|
#4
|
||||
|
||||
If you do it that way the List Alphabetically and List by Date Joined links will no longer work b/c $what will always be defined as topposters.
The easiest way to do it would be to simply replace the memberlist link with this: <a href="memberlist.php?s=$session[sessionhash]&what=topposters"> But I figured the guy has already considered that and didn't wanna do it that way for whatever reason. *shrugs* |
#5
|
||||
|
||||
Quote:
|
#6
|
||||
|
||||
Quote:
|
#7
|
||||
|
||||
Quote:
|
#8
|
||||
|
||||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|