Page 1 of 1

Page after activation

PostPosted: Mon Jan 11, 2010 4:59 am
by iliakros
I would like to have a different page displayed after the activationlink is clicked in the activation email.

The steps would go as follows
Step 1: Register, an activation mail is send
Step 2: Open the email and click on the activation email
Step 3: The user gets activated
Step 4: A page is opened lets say shop.php.

Is this possible?
Can I achieve this with handlerequest?

Many thanks

Re: Page after activation

PostPosted: Mon Jan 11, 2010 11:22 am
by shannah
In the latest SVN I have added an after_action_activate event which allows you to do custom stuff after the activation is complete. You can use this to redirect to whatever page you like.

First replace your copy of actions/activate.php with the one at http://weblite.ca/svn/dataface/core/tru ... tivate.php

Then in your application delegate class add a function
Code: Select all
function after_action_activate($params=array()){
    $record =& $params['record'];  /// This is the current user record (will at least have the username of the user that was just activated).
    header("Location: index.php?-action=store&--msg=".urlencode("You have been activated and logged in."));
    exit;
}

Re: Page after activation

PostPosted: Tue Jan 12, 2010 4:32 am
by iliakros
It works

Thank you