Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eMember protected content not staying on page after login
- This topic has 1 reply, 2 voices, and was last updated 5 years, 9 months ago by wzp.
-
AuthorPosts
-
January 28, 2019 at 11:33 pm #15288c2lSpectator
I have videos on pages that can only be viewed if members are logged in. I want it to be an inline login with no redirection so that as soon as the person logs in they remain on the page where they can watch the video. I’ve searched the forums and followed the tips given. In settings I have unchecked “Enable Auto Login After Registration:”, “Enable Fancy Login Widget/Popup:”, and “Disable Inline Login Widget ” then I CHECKED “Prevent After Login Redirection When Logging in via Inline Login Option” . The code on the protected content part of the page is this:
[emember_protected scope=”verified_users_only”]<iframe src=”//player.vimeo.com/video/100064444″ width=”700″ height=”438″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>[/emember_protected]
However, this redirects to the join-us page and once logged in they stay on the login page that shows their username and membership details etc.
What I want is for them to remain on the original page where the protected content is. Link here: connect2learning.com/members/co-constructing-criteria/
ALSO, as administrator I’m naturally logged in while working in the dashboard yet when I view this page after editing it hides the content from me and I have to log in again and then navigate back to the page. Why doesn’t it recognize that I’m logged in already?
January 29, 2019 at 7:28 pm #79094wzpModeratorThe code on the protected content part of the page is this:
[emember_protected scope=”verified_users_only”]<iframe src=”//player.vimeo.com/video/100064444″ width=”700″ height=”438″ frameborder=”0″ allowfullscreen=”allowfullscreen”></iframe>[/emember_protected]
You cannot place an HTML tag (the way you did) in the middle of a WP page like that. To show you the shortcode ***is working*** place the text “Can you see me now?” inside the shortcode. The text will only be seen when the member is logged in.
ALSO, as administrator I’m naturally logged in while working in the dashboard yet when I view this page after editing it hides the content from me and I have to log in again and then navigate back to the page. Why doesn’t it recognize that I’m logged in already?
Being logged in as the WordPress Admin, doe not automatically log you in as an eMember “member.” You must separately log into eMember. While it’s true that you can setup auto login, whereby logging into WP as a WP user automagically logs you into an eMember account; that has its own set of drawbacks.
-
AuthorPosts
- You must be logged in to reply to this topic.