When using BuddyPress, there is an annoying “View” link on the profile pages. To a logged out user it sits there alone, strangely, with no counterpart. Here’s how I removed it.
At first I thoughtI would alter the BuddyPress theme, but this View link is created in the core parts of BuddyPress. So the solution I settled on was to use CSS. In my custom CSS, I added
body:not(.logged-in) ul.subnav{
display:none;
}
Use this as a starting point. You might need to tweak it a little for your specific needs.