WordPress.org

Ready to get started?Download WordPress

Forums

Password protect blogs (6 posts)

  1. Stig
    Member
    Posted 9 years ago #

    Is it possible to have 10 users writing in the same blog, but their respective posts should only be readable/editable by themselves and the admin? Or do I have to set up 10 wp' s? And if I have to set 10 wp' s, how do I accomplish the above (only readable/editable by themselves and the admin)?
    Stig

  2. Mark McKibben
    Member
    Posted 9 years ago #

    With regular wordpress? No. Security in WordPress is based on the user's level. Image you have 4 users + the admin.
    "Bob" is level 3. He post to your journal.
    "Sue" is level 5. She can post to your journal; as well as edit both Bob & Joe's posts.
    "Joe" is level 5. He can post to your journal; as well as edit both Bob & Sue's posts.
    "Betty" is level 9. She can post to your journal; as well as edit both Bob, Sue & Joe's posts.
    The admin is level 10 and can do anything he wants.

    With WordPress Mu? Possibly, but that's currently just a developer preview and I was never able to get it up & running. So I can't say for sure.

  3. Stig
    Member
    Posted 9 years ago #

    Thought so.
    Also tried Mu with no luck. Was hoping someone knew of a plugin/hack or something.

  4. Stig
    Member
    Posted 9 years ago #

    I'm no programmer and haven't got the slightest idea about php but, I'm thinkin, login protects almost every page except index.php. Could it be that hard to make index.php included in the login-session?

  5. Stig
    Member
    Posted 9 years ago #

    Well, I went for it myself and copied a row from admin-header.php to wp-blog-header-php (below). As far as I can see, this password protects the whole blog. As a non coder I ask you all; is this solution ok, or am I missing something vital?

    <?php

    if (!file_exists(dirname(__FILE__).'/' . 'wp-config.php'))
    die("There doesn't seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.");

    require_once(dirname(__FILE__).'/' . '/wp-config.php');

    require_once(dirname(__FILE__).'/' . 'wp-includes/wp-l10n.php');

    //added this row
    require_once(ABSPATH.'/wp-admin/auth.php');

  6. Roy Tanck
    Member
    Posted 9 years ago #

    Anyone evaluated this solution yet? It sounds easy enough, but lik e Stig I'm no PHP coder...

    If it's this easy, a "blog visible to logged in users only" checkbox in the options section would be much appreciated... :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.