Someone should put that bit of code in a plugin and add it to the plugin directory, it would be handy for people.
For temp. solution, have you read this sticky post?
https://buddypress.org/forums/topic/faq-how-to-code-snippets-and-solutions
btw, haven’t seen Burt for a while…
That was the code I’d been using. I forgot where to put the following in register.php:
<?php
if($_REQUEST["s"]){?>
<script type="text/javascript">
jQuery(document).ready(function () {
setTimeout(function(){ jQuery("#error").fadeOut("slow"); }, 6000);
});
</script>
<div id="error" class="error">
<h3>The page you were trying to access is for members only. Please login or register to continue.</h3>
</div>
<?php } ?>
Did tried this plugin ?
https://wordpress.org/extend/plugins/wp-members/
Seems to do what you looking for.
Possibly some people subscribed to this topic would like to know that i modified my access restriction plugin and now it works with buddypress 1.2.
Please try
https://wordpress.org/extend/plugins/registered-users-only-2/
Thank you Jehy. RUO2 works great. Everything but the registration page is disallowed for guests.
thanks Jehy, but would be great to be able to decide what part of the site we can limit… personally, a whole site is too much, i would like profiles and activity to be blocked to guests, nothing more…
could you create a admin backend where we select what part of the site we want to be blocked to guests?
*(it’s quite easy though)
You see, my plugins are designed to work with wordpress, wordpress MU and buddypress…
I am having an awful headache just trying to keep them working up to date, and don’t have any time to make more detailed configurations… Even through I’d like to.