-
naplpm replied to the topic Protecting Buddypress pages from non-logged in users. in the forum How-to & Troubleshooting 11 years, 4 months ago
Hello,
@drill_sgtlewis, can you tell me how can I adapt this code to avoid non-logged user to get to a specific page?
I was trying something like this:
function restrict_access(){
global $bp, $bp_unfiltered_uri;
$component = $bp->current_component;if (!is_user_logged_in() && ($component == “events”)
) {bp_core_redirect( “/home/” );…[Read more]
-
echofoxtrot replied to the topic Protecting Buddypress pages from non-logged in users. in the forum How-to & Troubleshooting 11 years, 5 months ago
Hi, @drill_sgtlewis – that looks great. Where do I put that bp-custom.php file? In the buddypress plugin root?
@drill_sgtlewis
Not recently active