Need to remove/disable Avatar, Friends and Search Members in Profile

Permalink
I've seen a lot of posts regarding this issue.
Esentially I want to remove the "Sidebar" entries from the Profile page. (and leave the editing capability.
I don't want my users using avatars and sending messages or searching other users - its a business function not for fun.

I've tracked it down the page "Single Pages / Profiles / and the "View.php" with all the other ones Friends, Avatar etc.

I'm not sure what the best appoach is here. Direction / Guidance much appreciated.

So far I've tried...
Copied Profiles / view.php from "Concrete / Single-pages / Profiles" to Root / Single-pages / Profile / view.php
I've commented out the "Load Sidebar" statement and copied the new version up to the root directory - cleared cache and it still shows.

Help appreciated - tips on how to acutlly do this would be good.

HOBOcs
 
HOBOcs replied on at Permalink Best Answer Reply
HOBOcs
Ok Follow-up - Resolved (I think)

1) To remove the Search Member feature I copied the Concrete / Elements / Profile / Sidebar.php to Root / Elements / Profile / Sidebar.php and edited the following (Commented out)

<!-- Commented out Search
<form method="get" action="<?php echo $this->url('/members')?>">
<h4><?php echo t('Search Members')?></h4>
<?php
$form = Loader::helper('form');
print $form->text('keywords', array('style' => 'width: 80px'));
print '&nbsp;&nbsp;';
print $form->submit('submit', t('Search'));
?>
</form> -->

2) To remove the Links to the Avatar, Messages and Friends page.. I went into "Sitemap" - Clicked on "Show System Pages" found Profile in the list and removed the pages for Avatar, Messages and Friends.

Hope this helps someone.. If this is the wrong approach please let me know.
ranxem replied on at Permalink Reply 1 Attachment
ranxem
My friend request function is not working at all. 'Member Search' window in Profile doesn't give any results at all.

Example is attached.

Please assist.
annar replied on at Permalink Reply
This was very helpful, thanks! I thought it wasn't working at first but found out to see my changes I had to go to System & Settings in the Dashboard and clear the cache, per this thread:http://www.concrete5.org/community/forums/themes/warning-include/#3...
Just in case anyone else is also looking for this information!
jshannon replied on at Permalink Reply
jshannon
You should be careful about just removing, e.g., the link (ie, the form) for member search. The page is still there and anybody who knows c5 should be able to use it to search other users.

Deleting "/members" from the dashboard makes sense here.

I'm not sure if viewing other people's profiles will work -- i'll be testing this in the next day -- but I presume it will.