WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Members only page (3 posts)

  1. stonesthrow
    Member
    Posted 5 years ago #

    I'd like to have a multi-user blog, with one page containing a chat box that is only viewable by logged in members, others trying to go to the chat page would get a redirect or a failure page.

    Can I create a login/password form so that registered users can get in to the relevant page, whereas others not logged in can still read the blogs/posts but can't write or view the chat page?

    Thanks in advance.

  2. MichaelH
    Member
    Posted 5 years ago #

    Don't need to create a form as this widget can handle the login.
    http://wordpress.org/extend/plugins/sidebar-login/

    Then you just need to use something like is_user_logged_in () around your 'chat' code.

  3. stonesthrow
    Member
    Posted 5 years ago #

    That one will be good for users to log in to the site generally, but I found http://wordpress.org/extend/plugins/pagerestrict/, which does just the job: if anyone not logged in tries to go to the chat page then they get told they can't view it until they log in.

Topic Closed

This topic has been closed to new replies.

About this Topic