Issues Regarding My "Member Site"

Currently I have a member site right now with videos only accessible once the user is logged in. Below are some of the issues encountered any help would be greatly appreciated.

The 1st issue of redirecting at the current moment let say a user visit my site and decided they want to watch a video. The user flow will look something like this (visit site > click on a video they want to watch > since video page is restricted, they are redirected to the login page > login > after logging in redirected to that specific video page)

This is working normal right now however if the user does not have an account and after signing up, they are redirected to the home page instead. It looks something like this (user visit site > click on a video they want to watch > redirected to login page since they are not a member > sign up for an account > after verification they are directed to the home page) would it be possible in this case for the user who initiate the sign-up process upon visiting a restricted page to automatically be directed back to that page upon verifying?

2nd issue is there a way I can send the user specific email pertaining to the video once they have landed on the video page (CMS)? For instance, in this scenario

(Scenario A)
User Logs In
User click on “watch now button” on a CMS page called “Page A”
Directed to CMS Video Page with video “A”
Send them an email with “A” related content once they entered the Video Page with video “A”

(Scenario B)
User Logs In
User click on “watch now button” on a CMS page called “Page B”
Directed to CMS Video Page with video “B”
Send them an email with “B” related content once they entered the Video Page with video “B”

Thanks in advance for the replies. :slight_smile:

Not natively. Custom code would be your friend for this.

Not natively. With custom code you’d need to store their email on login and then pop off an email to that address on page visit. Custom code will get it done for you, but be careful where & how you store peoples information. It can get you into trouble.

Yes, with custom code. It’s a bit convoluted, but the approach is;

  • On the login page capture the redirect part from the url if one is specified
  • Store it in a cookie, I’d give it a 12 hr expiry
  • Also check the referrer. If it’s sign-up, than this is an auto-login after a successful email verification link click
  • You now know this is the first login after a signup, and you know where they originally intended to go, so redirect them there

Remember there can potentially be a fair gap here between when the user tries to access the video, and when they actually get to their email to verify. Thus the 12 hrs.

Yes. Use the Sygnal Attributes Logged-In User Info lib;

On your video page, configure a page-level callback, which will be called with the User data. This will give you the current user’s info, and the location href will tell you the video page. You’ll need to pass this to a 3rd party service to do the actual email sent- I recommend Make.com + Mailjet.