Members with pictures only? - For Dolphin 7.

Can someone let me know how to make the members block on the home page only show members with photos?

Pretty much exactly what was done here http://www.boonex.com/unity/forums/topic/Members-with-pictures-only-in-members-block-.htm

Happiness is a warm gun.
Quote · 1 Apr 2010

Open file: templates/base/scripts/BxBaseIndexPageView.php

and find this function: function getMembers ($sBlockName, $aParams = array(), $iLimit = 16, $sMode = 'last') {

and this lines:
// possible conditions
$sqlC alt= "WHERE `Profiles`.`Status` = 'Active' and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)";

Change  to:
// possible conditions
//$sqlC alt= "WHERE `Profiles`.`Status` = 'Active' and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)";
$sql alt= "WHERE `Profiles`.`Status` = 'Active' and `Profiles`.`Avatar` > '0' and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)";

Quote · 1 Apr 2010

Thank you, that worked but tt looks like your code got messed with by the WYSIWYG.

So for anyone else, it should look like this

Happiness is a warm gun.
Quote · 1 Apr 2010

Can someone help me out tried this  a few times but keep getting a error

Parse error: syntax error, unexpected T_STRING in /homepages/9/xxxxxxxxxx/htdocs/network/templates/base/scripts/BxBaseIndexPageView.php on line 317

Thank

Quote · 2 May 2010

Try code below

$sqlCondition = "WHERE `Profiles`.`Status` = 'Active' and `Profiles`.`Avatar` > '0' and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)";

Quote · 3 May 2010

Change works great thx but the Number of all members shows me a wrong number now of all members I have got 152 members but only 47 with avatar is it posible that the real number of members will shown here?

Quote · 11 Sep 2010

Thanks so much for this.

Quote · 10 Feb 2011
 
 
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.