browse.php show new members first?

How can i get my browse.php to shom my new members first or the lastest members registered or online?

Quote · 20 Aug 2009

Yes me too!  I like how all photos line up on the first page.  That's very exciting but not so exciting after seeing the same people on the first page over and over.  is there a way to show new photos first, not last?

I know where is it but not sure how to fix it.  Here's the code I have now.

$profiles_list_query = "SELECT `ID`, `NickName`, `Sex`, `DateOfBirth`, `Couple`, `DateReg` FROM `Profiles` WHERE {$sql_add} AND `Profiles`.`Status`='Active' ORDER BY `Couple` ASC, `Picture` DESC LIMIT {$real_first_p}, {$p_per_page}";

Any ideas?

Thanks!

Quote · 29 Oct 2009

this one is easy files to edit

/templates/base/scripts

BxBaseBrowse.php

on line 671

$sSortParam = '`Profiles`.`DateLastLogin` DESC';

change to

$sSortParam = '`Profiles`.`DateReg` DESC';

that should do it :D

Quote · 29 Oct 2009

upsss sorry the fix is for d7 only

Quote · 29 Oct 2009

 

Yes me too!  I like how all photos line up on the first page.  That's very exciting but not so exciting after seeing the same people on the first page over and over.  is there a way to show new photos first, not last?

 

I know where is it but not sure how to fix it.  Here's the code I have now.

 

$profiles_list_query = "SELECT `ID`, `NickName`, `Sex`, `DateOfBirth`, `Couple`, `DateReg` FROM `Profiles` WHERE {$sql_add} AND `Profiles`.`Status`='Active' ORDER BY `Couple` ASC, `Picture` DESC LIMIT {$real_first_p}, {$p_per_page}";

 

Any ideas?

Thanks!

 Try this:

 

$profiles_list_query = "SELECT `ID`, `NickName`, `Sex`, `DateOfBirth`, `Couple`, `DateReg` FROM `Profiles` WHERE {$sql_add} AND `Profiles`.`Status`='Active' ORDER BY `Couple` DESC, `Picture` DESC LIMIT {$real_first_p}, {$p_per_page}";

Quote · 29 Oct 2009

Thanks.  I found a solution for D6.  I simply added `id` DESC  and that's it.  Laughing

Quote · 29 Oct 2009

wow thanks for your quick replies.  Laughing adding `id` DESC  works great.

$profiles_list_query = "SELECT `ID`, `NickName`, `Sex`, `DateOfBirth`, `Couple`, `DateReg` FROM `Profiles` WHERE {$sql_add} AND `Profiles`.`Status`='Active' ORDER BY `Couple` ASC, `Picture` DESC, `id` DESC LIMIT {$real_first_p}, {$p_per_page}";

Quote · 29 Oct 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.