PDA

View Full Version : Activation email


chefy
06-07-2013, 04:19 PM
Hi guys,

If a member registers on my forum and he don't get the activation email then he can go to register.php?do=requestemail and fill the form with his email address in order to request to the system a new copy of the activation email to be sent automatically.

Is there any way in how I can link to that page without the need for the user to write his own email address? Something like this:

If you haven't received your activation mail click here to request a new copy.


And "click here" should be a link that looks something like this:

register.php?do=requestemail&userid=X

So this way after the users clicks the link he would only need to click on the button to send the form without the need to write his own email address manually. Or, even better, is there a way so he can click on "click here" and automatically send him a copy of the activation email and just show him the confirmation page with the "you're being redirected" message?

Thanks.

kh99
06-08-2013, 10:17 AM
Is there any way in how I can link to that page without the need for the user to write his own email address?

You could do it, but you'd need to write a plugin that looks up the email from userid.


Or, even better, is there a way so he can click on "click here" and automatically send him a copy of the activation email and just show him the confirmation page with the "you're being redirected" message?

I don't understand this part of your question. It kind of sounds like you want to bypass the email (you can of course turn off email verification if you want).

Simon Lloyd
06-09-2013, 06:45 PM
You'd have to check that they are not guest, are logged in, not activated/verfied then retrieve their email address. One thing i'd say is if they have a poor password spammers/hackers would have a field day with your site and your members.

It would probably be better to check the criteria above and then redirect them to register.php?do=requestemail where they have to enter their own email address in.

--------------- Added 1370808565 at 1370808565 ---------------

In fact thinking about it you could just do this, put this code at the very top of the header template above everything else<if condition="is_member_of($vbulletin->userinfo,'3')">
<meta HTTP-EQUIV="REFRESH" content="0; url="www.mysite.com/forum/register.php?do=requestemail ">
</if>now when a member who isn't activated visits they get redirected to the requestmail page :) (dont forget to change the url to reflect yours).