XF 1.3 Redirect after clicking on confirmation mail link

  • Thread starter Thread starter Deleted member 77670
  • Start date Start date
D

Deleted member 77670

Guest
Hi there!

I've been searching all day but I can't seem to find a way to automatically redirect (if possible after 3 seconds or so) a user to my blog site at www.site.com instead of just waiting for the user to click something.

I've hear it has to do something with:
Admin CP -> Appearance -> Templates -> register_confirm
or
Admin CP -> Appearance -> Templates ->register_process


Example:
-New user registers, and a message of a confirmation email has been sent
-New user goes to email account and clicks link
-A page with "Your account has been confirmed"
(3 seconds after)
(redirects to www.site.com)

My forum url is: www.site.com/forum
My blos ulr is: www.site.com

I would really appreciate your help with this, it might be an easy one but I just can't understand xenforo hooks.
 
Add this code to either template (or both):

Rich (BB code):
<script type="text/javascript">
	$(document).ready(function(){
		setTimeout(function(){
			window.location = 'http://www.apple.com/';
		}, 3000);
	});
</script>

This is javascript to redirect the user after 3 seconds. Just put your URL in there.
 
This worked like a charm! Thanks a lot Jake.
I saw people could rely on you and I see why you are awesome! :D

Have a good one
 
Add this code to either template (or both):

Rich (BB code):
<script type="text/javascript">
    $(document).ready(function(){
        setTimeout(function(){
            window.location = 'http://www.apple.com/';
        }, 3000);
    });
</script>

This is javascript to redirect the user after 3 seconds. Just put your URL in there.
BTW
Is it possible to do it in a new tab instead of reloadint the same page?
 
Top Bottom