Welcome Guest, Not a member yet? Register   Sign In
preserving link from email through login to post
#1

[eluser]new_igniter[/eluser]
can you point me in the right direction?

I am looking to generate an email with a link to a post on my site, that requires a login, but allows the user to continue on to the post, after logging in.

So basically, someone gets an email, they click on the link, they log in, they then go to the link (some post id) in the email.
#2

[eluser]adamp1[/eluser]
You need an auth library which stores the referral_link. FreakAuth does exactly what you want. If you don't want a pre-built library when you send a user to the login page save the referral_link in a session so after login you can send them to the post.

I don't know how to fully explain it but if you want to know what to do Download FreakAuth then look at the FreakAuth_light.php library file. Should give you some hints




Theme © iAndrew 2016 - Forum software by © MyBB