Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Search User -> sort by Account creation

edited July 2005 in Vanilla 1.0 Help
UPDATED to version 0.9.2

Hi!

I needed this functionality and made a quick patch for Vanilla version 0.9.2.
Please don't be too harsh, this is my first time hacking Vanilla. ;-)

Alex
Index: controls/search.php
===================================================================
--- controls/search.php (revision 22)
+++ controls/search.php (working copy)

$this->OrderSelect->Attributes = " id=\"UserOrder\"";
$this->OrderSelect->AddOption("", $this->Context->GetDefinition("Username"));
$this->OrderSelect->AddOption("Date", $this->Context->GetDefinition("DateLastActive"));
+ $this->OrderSelect->AddOption("DateFirst", $this->Context->GetDefinition("DateFirstVisit"));
$this->OrderSelect->SelectedID = $this->Search->UserOrder;

// Type
Index: library/Vanilla.User.class.php
===================================================================
--- library/Vanilla.User.class.php (revision 22)
+++ library/Vanilla.User.class.php (working copy)

function GetUserSearch($Search, $RowsPerPage, $CurrentPage) {
$s = $this->GetSearchBuilder($Search);
$SortField = $Search->UserOrder;
- if (!in_array($SortField, array("Name", "Date"))) $SortField = "Name";
- if ($SortField != "Name") $SortField = "DateLastActive";
+ if (!in_array($SortField, array("Name", "Date", "DateFirst"))) $SortField = "Name";
+ if ($SortField == "Date") {
+ $SortField = "DateLastActive";
+ }
+ else if ($SortField == "DateFirst") {
+ $SortField = "DateFirstVisit";
+ }
$SortDirection = ($SortField == "Name"?"asc":"desc");
$s->AddOrderBy($SortField, "u", $SortDirection);
if ($RowsPerPage > 0) {
Index: languages/English.php
===================================================================
--- languages/English.php (revision 22)
+++ languages/English.php (working copy)

$Context->Dictionary["ConfirmPassword"] = "Confirm password";
$Context->Dictionary["AllCategories"] = "All categories";
$Context->Dictionary["DateLastActive"] = "Date last active";
+$Context->Dictionary["DateFirstVisit"] = "Date first visit";
$Context->Dictionary["Topics"] = "Topics";
$Context->Dictionary["Comments"] = "Comments";
$Context->Dictionary["Users"] = "Users";
This discussion has been closed.