1. QuickScriptz
  2. Support
  3. Saturday, September 23 2017, 05:46 PM
  4.  Subscribe via email
Hi there,

We use Membership Pro with a plugin that “maps” fields to EasyProfile. If the field is updated in Membership Pro, then the data is also updated in the corresponding field in EasyProfile. The only issue we’ve encountered is that EasyProfile field conditions are not being run (because the update happens via SQL and not through a regular “update profile” action).

That said, we’re wondering if there is some kind of hook, event, or trigger that we can use to notify EasyProfile that a field was updated, and that conditions should be applied?

admin Accepted Answer
sorry for late reply, it's a weekend for us :D

There are no way to manage this when you update profile data via SQL query. This is not a limit of Easy Profile, with a SQL query this is an impossible thing.

If you need to add/remove user from usergroup with conditions then I recommend you to add/remove from usergroup directly via Membership Pro.
  1. more than a month ago
  2. Support
  3. # 1
QuickScriptz Accepted Answer
Thanks for the reply! I definitely understand that this can't be done with SQL, but what I'm wondering is if it can be done in PHP? Something along the lines of...

// Custom SQL query to update the Easy Profile field
$query = 'UPDATE easyprofile_fields SET phone = ' . $db->quote($value) . ' WHERE user_id = ' . $user->id ;
$result = $db->execute();

// Some other code to let Easy Profile know the field changed, and that it should run field conditions

  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
you should use something like this:

require_once( JPATH_SITE.'/components/com_jsn/helpers/helper.php' ) ;
$epUser=JsnHelper::getUser( $user->id ) ;
$epUser->phone = $value ;
$epUser->save( ) ;

docs about this at

Note about your code: table is #__jsn_users (not easyprofile_fields)

Note about conditions: condition to hide/show fields is dynamics, so you does not need to add any other code, you can simply use a SQL query. Instead if you need to add/remove from usergroups then you can do this directly via Membership Pro (so you can still update Easy Profile values with a SQL query). Of course this is possible with PHP but it is much simpler via SQL query.
  1. more than a month ago
  2. Support
  3. # 3
  • Page :
  • 1

There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.


Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.