1. warrenzhu
  2. Support
  3. Tuesday, May 08 2018, 05:53 PM
I have easy profile basic. I am wondering if you support the following features:

Custom title in edit profile page. I can override the title in profile page with a custom title. But when editing the profile, only field titles are displayed. Joomla's built-in fields have a "Label" similar to your custom title but that "Label" is used in both profile and edit profile pages. It is confusing for users to see a custom title in their profile and another title when they edit the profile.

Is there any way to notify the admin and the user when a user changes a field in his profile?
admin Accepted Answer
Admin
Hi,
sorry for late reply.

It is confusing for users to see a custom title in their profile and another title when they edit the profile.
Sorry but I not understand well. Yes, we have an option to override title in profile page but this is something of optional, basically if you does not fill parameter "Custom title for profile page" then it uses same title in profile and edit profile page.
This feature was necessary in some cases (for example Age in profile and Date of Birth in edit profile) and of course you are freely to not use it.

Is there any way to notify the admin and the user when a user changes a field in his profile?
Easy Profile does not do this natively but with our APIs you can build a simple plugin that do this (docs with example plugin at http://docs.easy-profile.com/index.php/article/triggers)
- 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)
{
if(!$isNew)
{
// Start body of email
$body=$user->name." updated user profile. \n\n";

// Add fields to body email
foreach($changed as $fieldalias){
$body.=$fieldalias .": ". $data[$fieldalias] ."\n";
}

// Send Email
$result=JFactory::getMailer()->sendMail(
$user->email, // Sender Mail
$user->name, // Sender Name
'[email protected]', // Receiver Mail
'Profile Updated', // Subject Mail
$body // Body Mail
);
}
}

NOTE: This code is not tested and not supported, this is only for example purpose.
  1. more than a month ago
  2. Support
  3. # 1
  • Page :
  • 1


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