Only Show Members with Photos for Dolphin 7

Sometime’s people dont upload an image or avatar for their profile. I dont really like the way that looks and maybe you dont either. Well there’s a fix for that. All you have to do is :

Open /templates/base/scripts/BxBaseIndexPageView.php. Save a backup copy of this file just in case you mess up.

Go to line 316 and you should see –
$sqlCondition = “WHERE `Profiles`.`Status` = ‘Active’ and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)”;

Change that to –
$sqlCondition = “WHERE `Profiles`.`Status` = ‘Active’ and `Profiles`.`Avatar` > ‘0’ and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)”;

That’s it! Just upload the file and its done.

Tags: , | Posted under BoonEX Dolphin | RSS 2.0

Author Spotlight

Taylor Toussaint

I enjoy working with computers and on the internet. I am good with SEO, PHP, SQL and other letters... get it? I am a family man and love my wife and kids.

Leave a Reply

Your email address will not be published. Required fields are marked *