Admin

Is there a way of being the admin and active on the site without having a visible profile? In other words, I want my admin profile to be invisible to all members so that I'm not seen to be a member. Strange request?!

Quote · 4 Apr 2014

If you want to be able to moderate the site as admin but not show up on visitation lists and such then suspend the admin account.  Or you can make an admin account and a regular member account and use the site as a regular member for social activities.

Geeks, making the world a better place
Quote · 4 Apr 2014

Same problem here.

If you suspend it you can't see all content.

Quote · 4 Apr 2014

Yeah suspending account can limit functionality and changes some module behaviors.

Quote · 4 Apr 2014

Yes there is a way - I have done this on my site.

A - I created a field in the profile builders called Member_Type - this is only viewable to admin, when viewing a users profile edit page. For my usage, I listed those I did not want to be visible as MTS.

B - Then, in templates/base/scripts/BxBaseIndexPageView.php around line 158, find:

$sqlCondition = "WHERE `Profiles`.`Status` = 'Active' and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)";
        if (is_array($aParams)) {
             foreach ($aParams as $sField => $sValue)
                 $sqlCondition .= " AND `Profiles`.`$sField` = '$sValue'";
        }

and replaced with:

        $sqlCondition = "WHERE `Profiles`.`Member_Type` != 'MTS' and `Profiles`.`Status` = 'Active' and (`Profiles`.`Couple` = 0 or `Profiles`.`Couple` > `Profiles`.`ID`)";
        if (is_array($aParams)) {
             foreach ($aParams as $sField => $sValue)
                 $sqlCondition .= " AND `Profiles`.`$sField` = '$sValue'";
        }

 

This will make my profile not visible on the home page.

 

C - on templates/base/scripts/BxBaseBrowse.php around line 26, find:

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

and replaced with:

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

 

This makes my profile not visible on browse.php page.

 

D - on templates/base/scripts/BxBaseProfileView,php around line 752, find:

 $aWhere[] = "`Profiles`.`Status` = 'Active'";

and replaced with:

$aWhere[] = "`Profiles`.`Member_Type` != 'MTS' and `Profiles`.`Status` = 'Active'";

 

This makes my profile not visible on search.php and will not be included in any searches.

 

But, even with these changes, if someone types in your url directly - such as yoursite.com/admin - then they will be able to view your profile. And you still show up on the World Map.

caredesign.net
Quote · 4 Apr 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.