thanks..
thanks..
Thanks for your answer.I've been using plugins privacy, but it only hide the presence of Admin status (online-offline).
My intention is to hide the Admin user when a user click on a link //localhost/users
Not to hide Admin from the list of members
This will prevent any admins (even if you have multiple admins) from appearing on the members list on the users side.
open ow_system_plugins/base/components/users.php
inside of protected function process
here is the finished mod, you should be able to figure out what i added where, basically i just set some vars and then wrapped the list array with an extra if statement..
Important - this is not a copy of the whole function, just the section that has changes in it.
protected function process( $list, $showOnline ) {
$service = BOL_UserService::getInstance();
$idList = array(); $userList = array();
//added to grab admin list array for modification below
$adminlist = BOL_AuthorizationService::getInstance()->findAdminIdList();
foreach ( $list as $dto )
{
// added if statment to exclude admin from member list
$currentId = $dto->getId();
$checkforadminId = in_array($currentId, $adminlist);
// only process if not admin
if(!$checkforadminId)
{
$userList[] = array('dto' => $dto);
$idList[] = $dto->getId();
}//close if
}//close foreach
$avatars = array();
Based on first mod.
users_widget.php
protected function getIdList( $users )
{
$resultArray = array();
//added to grab admin list array for modification below
$adminlist = BOL_AuthorizationService::getInstance()->findAdminIdList();
if ( $users )
{
foreach ( $users as $user )
{
$currentId = $user->getId();
$checkforadminId = in_array($currentId, $adminlist);
// only process if not admin
if(!$checkforadminId)
{
$resultArray[] = $user->getId();
}//close if
}
}
return $resultArray;
}
We're also based out of Los Angeles and New York City and since it's a website for arts and entertainment, have a bunch of moderate well known celebrities (top producers, reality stars) and it's a shame that they won't be able to make profiles on the site, due to Privacy issues.
I'd actually donate a few dollars to oxwall if someone could find a better solution for me.
I meant our moderate celebs won't be able to make Public Profiles on the site, I realize they could limit theirs to friends only. .but they'd like public as this is a faith based site, and we'd like to publically share who's affiliated with us in newsletters, blogs, etc <3
Basically I'd just like different user roles (or more preferably even everyone ) to have the option to limit messaging from the rest of the public on the site.
Also admins would make it perfectly clear the public should use certain help tickets/ site email addresses to submit problems.
Could I pay/donate your team to implement this? Or if there's an easier custom code haha