stonesthrow
Member
Posted 3 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.
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.
stonesthrow
Member
Posted 3 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.