Re: want only to make only one blog per user
that was cool, but this is great!
<?php
function oci_restrict_access()
{
global $bp, $bp_unfiltered_uri;
if (!is_user_logged_in() &&
(
MEMBERS_SLUG == $bp_unfiltered_uri[0] && !empty( $bp->current_action ) ||
BP_GROUPS_SLUG == $bp->current_component && !empty( $bp->current_action )))
{
nocache_headers();
header(‘Location:’.get_settings(‘siteurl’).’/register’);
exit();
}
}
add_action( ‘wp’, ‘oci_restrict_access’, 3 );
?>
Good Luck!