This plugin might help with what you’re seeking, as it allows you to configure private blogs. It’s a premium plugin though.
http://premium.wpmudev.org/project/sitewide-privacy-options-for-wordpress-mu
Make it private (or rather ‘public = no’) and add the users manually?
This post touches on it: http://www.problogdesign.com/how-to/build-a-client-development-site-with-wordpressmu/
Thread Starter
fuzzie
(@fuzzie)
It looks like the More Privacy plugin may do the trick.
We really want users to register at the main blog, and then let us select which users can see the restricted blog.
It appears right now, a user would have to be registered on each individual blog, including the restricted blog. Does that make sense?
Thanks!
http://wordpress.org/extend/plugins/more-privacy-options/
http://wordpress.org/extend/plugins/network-privacy/
Either one of these give tons of options. Like
– to view this blog, a user must be signed up to the network
or
– to view this blog, a user must be signed up to the network AND be listed as a member of this blog.
We really want users to register at the main blog, and then let us select which users can see the restricted blog.
This is pretty much how it works out of the box with one of the plugins above. (which was the plugin referenced in the link given by Ipstenu, except this plugin download link works).
Thread Starter
fuzzie
(@fuzzie)
Excellent, Network Privacy worked like a charm.
Still trying to figure out how to:
1) add an existing user to that sub-blog. Say User1 registered at root blog. He defaults to a subscriber. I want to give him access to the protected sub-blog. How do I add him?
2) add a link on the main blog for the member-only blog that only shows up if the user is logged in and has access to the member-only blog. Is that possible?
Thanks!
1 – go to Super Admin -> Sites, find the site, click “edit”. Look on the lower right and there’s a section to add a user to that blog/site.
if it;s not the super admin, the administrator can go to the Users menu in the backend and add existing users from there, as long as the Super Admin -> Options page has the option “allow users to add users” is checked.
Thread Starter
fuzzie
(@fuzzie)
1. Thanks! I see that option. If they have already registered, how do I add them to the sub-blog? Just type in their username in the Add User?
2. Do you know how to make a link appear if the user is logged in and has access to a member-only blog?
Thanks!
Thread Starter
fuzzie
(@fuzzie)
Very nice…I’m getting close:
<?php global $current_user; get_currentuserinfo();
if ( is_user_logged_in() ) { ?>
<a href="/LINK TO PROTECTED BLOG">PROTECTED BLOG</a>
<?php }; ?>
This sorta works…Guests don’t see the link, but ALL register user see the link. I need to limit it to only users in the protected blog.
Is that possible?
Try
is_user_member_of_blog( $user_id, $blog_id )
from wp-includes/ms-functions.php
Thread Starter
fuzzie
(@fuzzie)
Getting closer….
<?php
global $current_user;
get_currentuserinfo();
if(is_user_member_of_blog($current_user,20)){
echo 'Member Only Blog Link';
} else {
echo 'No Access';
}
?>
No matter what user is logged in, the No Access is returned. All I could find as far as help was:
http://codex.wordpress.org/WPMU_Functions/is_user_member_of_blog
Thanks for all your help!
Thread Starter
fuzzie
(@fuzzie)
Got it!
Thanks for all the suggestions and help!
$user_id = $current_user->id;