Hi,
sorry for late reply,
you can build a simple plugin based on our skeleton plugin, follow these steps:
- Download, install and enable our skeleton plugin (you can download from
http://docs.easy-profile.com/index.php/article/triggers)
- Open file /plugins/jsn/skeleton/skeleton.php
- Remove examples frunctions like: triggerFieldAvatarUpdate and triggerProfileUpdate
- Create your function like this:
public function triggerProfileUpdate($user,&$data,$changed,$isNew){
if($isNew)
{
// Here code to launch your query
// all new field values are into array $data
}
}
Docs about our triggers at
http://docs.easy-profile.com/index.php/article/triggers