Support » Plugins and Hacks » Detect User Role and Redirect to a Members-Only page

Detect User Role and Redirect to a Members-Only page

Viewing 3 replies - 1 through 3 (of 3 total)
  • This one has a Protected Content page 🙂





    Thank you for your reply Kimberly.

    I have seen that plugin and tried it out. It does most of what I need for protecting, but it goes a little too far for me (unless I set something up incorrectly).

    You see, I want the user to be able to use the OneAll plugin mentioned above to login. But if the user is not already a member (meaning I -the admin- have not switched their account from “new” to “subscriber”), they get redirected to a page that explains their account registration is pending.

    So for non-logged in users (user type “new”), I want them to be redirected to the login page. I have done that successfully in the Membership options (under “Protected content page”) so that no matter what URL I try to access when not logged in, I am successfully redirected. Good.

    But then once the user clicks the social media button from OneAll to login (Twitter for example), they are typically redirected to the page I mentioned above explaining their account is pending registration. But when I turned on the Membership plugin, I can no longer access that page. I have setup the “Positive Rules” for the account level “new” which matches the user role “new” to include the page they should see, but no matter what the user is always redirected to the login page as directed in the protected content page section.


    Hi Markus.

    Does the plugin have the ability to display two different content types on the same page. In our membership plugin for example you could have the same page handle to sets of logins. so you could basically have to login forms with their own redirects, one would be visible to say your new members and another to the subscribers. the same goes for any content page or post type.



Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Detect User Role and Redirect to a Members-Only page’ is closed to new replies.
Skip to toolbar