Changing the Profile Page
Permalink 1 user found helpfulMy questions would be how can I take out the Avatar, Messages and Friends pages and keep the edit page of the user profile?
<?php Loader::element('profile/sidebar', array('profile'=> $profile)); ?>
I just cant find the location of profile/sidebar anywhere so I can edit it. I want to keep everything that appears on the left except those 3 pages.
Do the same for that file and copy it to elements/profile/sidebar.php
I'm guessing that will work for you.
I just removed the hard coded autonav and those links disappeared.
<?php if($u->getUserID() == $profile->getUserID()) { $nc = Page::getByPath('/profile'); $bt = BlockType::getByHandle('autonav'); $bt->controller->displayPages = 'custom'; $bt->controller->displayPagesCID = $nc->getCollectionID(); $bt->controller->orderBy = 'display_asc'; $bt->controller->displaySubPages = 'all'; $bt->controller->displaySubPageLevels = '1'; $bt->controller->displaySystemPages = true; $bt->render('view'); } ?>
The code snippet I posted in my last post, and which I could see in your PM message's sidebar.php extract, is what you need to remove.
When I tested all I needed to do was copy the file I mentioned to the root path i.e elements/profile/sidebar.php, and remove that embedded block (the code snippet)
All worked fine for me.
It sounds like you're testing - so if you're still having problems, and have hacked about with core files I'd be tempted to start with a fresh install.
Hope that helps.
Unfortunately, removing that block of code you're talking about removes all of the links.
Currently I get these links:
Edit
Avatar
Messages
Friends
Order History
(I have the eCommerce add-on)
I'd like to remove the Avatar, Messages and Friends links but not remove Edit and Order History.
Possible?
#page #central #body img.u-avatar { display:none; }
This line in the CSS will hide the Avatar from view and keep it from being seen. Please note that this will also make any hard coded alt and/or title tags not display in Google or other search engines due to your adding the "display:none" in the CSS. This will keep you from having to access the PHP to adjust the code so long as you haven't already added any special classes or id's to the source code.
Hope this helps!
http://www.concrete5.org/community/forums/usage/editing-the-my-prof...
Rony
Hope that helps.