Page after activation

A place for users and developers of the Xataface to discuss and receive support.

Page after activation

Postby iliakros » Mon Jan 11, 2010 4:59 am

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
iliakros
 
Posts: 13
Joined: Mon Jan 04, 2010 8:14 am

Re: Page after activation

Postby shannah » Mon Jan 11, 2010 11:22 am

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;
}
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Page after activation

Postby iliakros » Tue Jan 12, 2010 4:32 am

It works

Thank you
iliakros
 
Posts: 13
Joined: Mon Jan 04, 2010 8:14 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 11 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved