Hi,
Easy Profile do not do this, but you can create a simple plugin with our triggers to do this.
- Create a custom field called "Invite Code" (alias "invite_code"
available only in registration page
Download, Install and Enable Skeleton Plugin (you will find it at
http://docs.easy-profile.com/index.php/article/triggers)
- Open file /plugins/jsn/skeleton/skeleton.php
- remove samples functions: triggerFieldAvatarUpdate, triggerProfileUpdate
- add function like this:
public function triggerProfileUpdate($user,&$data,$changed,$isNew)
{
require_once(JPATH_SITE.'/components/com_jsn/helpers/helper.php');
$invite_code=$data['invite_code'];
// HERE CODE TO CHECK, IF VALID $is_valid=true ELSE $is_valid=false
if( $is_valid )
{
$usergroup = 8; // REPLACE WITH ID OF USERGROUP
JsnHelper::addUserToGroup( $user, $usergroup );
}
}
You can test this also with Free version.
Here docs about our triggers:
http://docs.easy-profile.com/index.php/article/triggers
NOTE:
This code is not tested and not supported, this is only for example purpose.