how setup browse page?
browse list member first with photo avatar
tnx
how setup browse page? browse list member first with photo avatar
tnx |
Any help me? |
Is the question that you want to list members with an avatar first and those without last? Geeks, making the world a better place |
Is the question that you want to list members with an avatar first and those without last?
Yes |
Any Help |
Change the following code in templates/base/scripts/BxBaseBrowse.php file (code in bold was added): // select sorting parameters ; $sSortParam = '`Profiles`.`DateLastNav` DESC'; if ( isset($this -> aDisplaySettings['sort']) ) { switch($this -> aDisplaySettings['sort']) { case 'date_reg' : $sSortParam = ' (`Profiles`.`Avatar` > 0) DESC, `Profiles`.`DateReg` DESC'; break; case 'rate' : $sSortParam = ' (`Profiles`.`Avatar` > 0) DESC, `Profiles`.`Rate` DESC, `Profiles`.`RateCount` DESC'; break; default : $this -> aDisplaySettings['sort'] = 'activity'; case 'activity' : $sSortParam = ' (`Profiles`.`Avatar` > 0) DESC, `Profiles`.`DateLastNav` DESC'; break; } } else $this -> aDisplaySettings['sort'] = 'activity'; Please note this code will work only if you are using Avatar module for the profiles avatars. Rules → http://www.boonex.com/terms |