Remove profiles from Search.php

On our site, I have 3 accounts that I do not want to show up on the home page or search.php page. So, far, I have successfully managed to remove these accounts from the homepage, but I am having the darndest time getting them not to show on search.php.

Basically, what I have is an addition to the sql of AND `ProviderType` != 'MTS' - so, the whole sql statement would be something like:

SELECT * FROM `Profiles` WHERE `ProviderType` != 'MTS'

but, as with all things Dolphin, there is a lot of coding going on. I did find how to accomplish this on the blosk on the homepage, by adding

AND `ProviderType` != 'MTS'

everywhere that seemed to make sense.

 

Does anyone know exactly where I would need to add the additional query parameters?

 

Thanks in advance.

caredesign.net
Quote · 29 Jan 2014

The changes below haven't been tested but should work :

To remove from browse results :

Find the line below in templates\base\scripts\BxBaseBrowse.php and add your filter to it :

    var $_sSqlActive = "`Profiles`.`Status` = 'Active' and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)";

 

To remove from search results :

Find the line below in templates\base\scripts\BxBaseProfileView.php and add your filter to it :

   $sWhere = ' WHERE ' . implode( ' AND ', $aWhere );

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 31 Jan 2014

thanks a whole bunch

caredesign.net
Quote · 31 Jan 2014
 
 
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.