Profile sidebar - elements/profile/sidebar.php doesn't do it all

Permalink
I don't want users to have or be able to edit Friends, Avatar, etc.

I HAVE been able to change the sidebar a LITTLE bit in elements/profile/sidebar.php (I removed the Members search form and changed it from echoing 'Member Since' to 'Client since') ...see attached image for proof... big deal!

So, how do I get rid of the rest of that stuff?

I checked the documentation already here...
http://www.concrete5.org/documentation/developers/permissions/profi...
...and despite what it says about what each page is supposed to do, I have not been able to remove MOST the stuff on this profile sidebar.

Just tell me what file I have to alter to get rid of this stuff, please! Thank you!

1 Attachment

 
zoinks replied on at Permalink Reply
Welp, commenting out the entire Line 3 in single_pages/profile/view.php removes the sidebar entirely, but I kind of wanted to keep the "Member Since..." bit.

<?php //Loader::element('profile/sidebar', array('profile'=> $profile)); ?>

Is there a way to remove bits of the sidebar line by line?
jelthure replied on at Permalink Best Answer Reply
jelthure
The remaining items are displaying in an auto-nav block so either delete the block on the profile page or you can edit the properties of the pages you wish not to show in the auto-nav.

to do this you go into the dashboard and then to "Sitemap", once on the sitemap page find the checkbox that says "Show System Pages", click it and then find the "Profile" page and expand the list so you see all the pages underneath. Then click on one of the pages you wish not to show up in the auto-nav block on the profile page and select "properties". then in the popup go to the "Custom Attributes" tab and from the drop down select "Exclude From Nav" then check the box on that pops in the list of attributes. Hit save and you should no longer see that page listed in the sidebar of the profile page.

Now this doesn't prevent them from actually getting to the page, just hides the link to it. If you don't want them to access it in anyway you should either delete the page in the sitemap (this can be undone) or change the permissions on the pages.

Sorry for being long winded, and I hpoe this helps!
zoinks replied on at Permalink Reply
I appreciate the long-windedness because now I know exactly how to do it! Thanks! I was approaching this all wrong and wouldn't have figured it out in a million years by futzing with the template files.

BTW, I think you're the one who asked me about karma before... I asked about this on chat and it appears the only way we can give people karma is by marking their answers as "best answer"... and you can only do this if it was your thread... since this IS my thread, I just marked yours best answer. Thanks again!
jelthure replied on at Permalink Reply
jelthure
Thanks, glad I could help!