WordPress.org

Ready to get started?Download WordPress

Forums

Forcing Login? (9 posts)

  1. bangers
    Member
    Posted 11 years ago #

    Hi, Just like to say, WordPress is pretty sweet. Has everything I wanted (diary/blog) plus more.
    I have 2 copies. One is my public blog which anyone can read and post comments, and a private one.
    I just want to know, on my private one, I only have the single admin login, but can I force the user the login to view the page?
    I'm sure this would be pretty simple to enforce.
    If the code is simple, I will happily hack into my index.php. Thanks!
    Thanks

  2. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    I think what you want is post password, which isn't implemented yet.
    http://wordpress.org/docs/reference/post/#post_password

  3. bangers
    Member
    Posted 11 years ago #

    Well yes, that could do what I want.
    But I was hoping for something less complicated. Merely, login to view the site, or nothing at all.

  4. JimBrown
    Member
    Posted 11 years ago #

    I think required login to view the site would be a good addition.

  5. Matt Mullenweg
    Troublemaker
    Posted 11 years ago #

    I would do that on an Apache level, not the WordPress level. Using a combination of .htaccess and htpasswd you should be able to protect any directory in a highly secure fashion. Searching on google will provide many tutorials for this, and your host's control panel might even have a dialog for this.

  6. Anonymous
    Unregistered
    Posted 10 years ago #

    Second on allusion. To put this into a position of WP would be kinda foolish because WP could never do it as well as Apache could.

  7. gfmorris
    Member
    Posted 10 years ago #

    Third on allusion. :)

  8. djardine
    Member
    Posted 10 years ago #

    Part bump, part reply:
    I am looking to require people to register to the site before being able to see the blog. I would like to add a Login Screen to the front of the site (or add the Register php to an index page) to ask people to Register or Login if they have an account. Obviously Registered and Logged In users could skip this page after registering/logging in. If WP doesnt log you out unless you ask to, then users could skip the whole front page upon revisiting the site.
    I also need the registered users to only be able to add Comments, not add articles or update or edit the site in any way. Only adding comments allows me to maintain control over who can add posts/updates etc after they have become fairly active in contributing trackbacks etc and/or at my discretion. Basic registration would only entail the user to post comments. I guess its like being able to assign user priveledges to Membership Levels as i havent been able to find this functionality.
    Lastly, I have been trying to work out how to turn on the Registration feature of WP but every time I go to wp-register.php it says "User Registration is currently not allowed"... even though int he Options> General tab I have selected both Membership options. Any clues on this? I know I missed something small, but I cant see it!
    Thanks guys.. awesome job on this script and these forums!

  9. faewench
    Member
    Posted 10 years ago #

    maybe this link will give some answers to this?
    http://www.skippy.net/blog/2004/05/23/per-post-user-level-restrictions/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.