hey guys. What if i want to achieve the following:
Extending the User entity with some additional fields. After the user has activated his account i want him to be redirect to a new page which i created were he should enter his new data.
Can someone guide me on how i can do this?
:)
Yes, you can use that :
$profile = ossn_user_by_guid($user->guid)
OssnSession::assign('OSSN_USER', $profile);
$url = $profile->profileURL("/address");
header("Location: {$url}"); ;
You should try this :
$profile = ossn_loggedin_user();
$url = $profile->profileURL("/address");
header("Location: {$url}"); ;
Here is method you can do that :
Register the page handler for uservalidate
and copy the user validation code from ossn.lib.initilize.php (you should see function ossn_uservalidate_pagehandler
)
In your new code after if($user->ValidateRegistration()){...
you can add redirect('yournewpage'); that shows the fields you wanted to add. After activation you can login the user automatically,
To add new user fields, please take a look at signup fields component.
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)