Wish Item: All Blog Access per Users

I’m building a couple of multi-user blogs and I’d like to have it so that a person can login to any one of the blogs within the one domain and post on any of the blogs within the domain structure. Registering for each and every blog is cumbersome and I’d restrict their access to “contributor” level. Is this possible now and I just don’t know it? I’ve looked on codex for help on this, but everyone seems to shy away from this capability.

  • Andrew
    • Champion of Loops

    I may have misunderstood what you’re asking for so correct me if i’m wrong.

    Basically you want a few users to have access to all blogs without having to be added to each blog individually? If this is correct then you could make those users site admins. Other than that I don’t believe there is any way to do what you described.

    Thanks,

    Andrew

  • andrea_r
    • The Incredible Code Injector

    If they are registered on the system already, it’s really easy to add them to the remainign blogs. They don;t have to go to the full registration for each one. Each individual blog owner can easily add a user from the community at large from a simple drop-down box under Users.

  • drmike
    • DEV MAN’s Mascot

    If you know these folks ahead of time, you can also add in a line to the wp-includes/wpmu-functions.php file. It’s already do that by having new users become subscribers to blog #1.

    Take a look at line 1168:

    add_user_to_blog(‘1’, $user_id, ‘subscriber’:wink:;

    Something like that but within the function that creates new blogs.

  • Luke
    • The Crimson Coder

    Without knowing the end user, I have to admit that it would bother me personally to have just any user be able to contribute to any blog.

    As a contributer, there isn’t too much damage they could do, but just going through and weeding out all the “crap” would seem like it could get to nightmare levels pretty quick.

  • drmike
    • DEV MAN’s Mascot

    You can thank andrea for it. It was her suggestion/idea to begin with. It’s in the code so that those users who just sign up for an account have a dashboard when they login.

    You could probably hard code a page template for the main blog, copy that line up there for all of the blogs you’re using while modifing the blogid for each blog you want and the user you want in there, and run that when you wanted to add someone into each blog. It’s doable fairly easy with an editor like ultraedit.

  • Luke
    • The Crimson Coder

    I ended up switching mine from blog_id 1 to a new blog. Called it dashboard. Made more sense to me than to have a ton of folks on my main blog, which I actually use.

    Reminds me I need to put a redirect in the header of that theme… oops. lol