Reply To: hide profile from non-logged-in users
Hi,
you have to modify from within a child theme the profile-loop.php file
your-child-theme/members/single/profile/profile-loop.php
On the first line of the file, add <code><?php if ( is_user_logged_in() ) : ?></code>
At the end of the file, insert between the last endif and the last do_action this:
<code><?php else : ?>
<?php echo “<div style=’width: 600px;height:25px; padding: 4px; border: 3px solid #ff0000; text-align: center; font-style:bold; font-size: 1.3em;’> You must be logged in to view a member profile</div>”; ?>
<?php endif; ?></code>
Change the div inline style to whatever you need accordingly to your theme. The example fits with bp-default.