Support

  1. harnisa
  2. Features Request
  3. Sunday, June 15 2014, 12:29 PM
Hi,

I want to change the email the admin gets when when a new user is being registered. I want to add field he gets about the user.

For example, email:

Hello administrator,

A new user has registered at TAMNS.
The user has verified his email, and requests that you approve his account.
This email contains their details:

Name : Harnisa
email: [email protected]
Username: harnisa

You can activate the user by clicking on the link below:
http://www.tamns.org.my/index.php/2013-07-05-19-11-46/membe.........


I want more details that I created in easy profile form like telephone number, address, qualification, group member type and so on, not just only name, email and username. Is it possibble to do that?
Accepted Answer
admin Accepted Answer
Admin
Hi,
I have mede some test on your site.

Skeleton plugin works but 2 problems:
1. You have choose checkbox for selecttitle, this type of field allow you to use multi selection, so the value are stored in json format.
JSON = ["value1","value2"]
you can use the function json_decode and implode result array with ", " string.

2. Maybe the selecttitle field are stored after that Powerful Email Editor send email. Sorry but I have no experience with this component.
  1. more than a month ago
  2. Features Request
  3. # Permalink
admin Accepted Answer
Admin
Hi,
sorry not possible, these email is managed by Joomla.

But there is another way to do this, you can create a plugin (based on our skeleton plugin - see at https://www.easy-profile.com/docs/44-triggers.html) to send another email with Easy Profile fields.

an example here: https://www.easy-profile.com/support/notification-upon-updated-profile.html#reply-995

This way is not simple and required PHP & Joomla Knowledge.
  1. more than a month ago
  2. Features Request
  3. # 1
harnisa Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 2
admin Accepted Answer
Admin
You can use our triggers.

example:
- create a field gender in Easy Profile with alias "gender"
- Download and install our skeleton plugin (downloadable from https://www.easy-profile.com/docs/44-triggers.html )
- Enable skeleton plugin
- Edit this file: /plugins/jsn/skeleton/skeleton.php
delete triggerFieldAvatarUpdate and triggerProfileUpdate functions
add this functions:
triggerFieldGenderUpdate($user,&$data,$changed,$isNew){
$db=JFactory::getDbo();
$query="UPDATE #__users SET gender=".$db->quote($data['gender'])." WHERE id=".$user->id;
$db->setQuery($query);
$db->execute();
}


This function write in #__users the gender value.

NOTE: this function is an example, not tested and not supported.
  1. more than a month ago
  2. Features Request
  3. # 3
harnisa Accepted Answer
Hi,

Thank you but sorry. It is not work.

Can you please help me? I just want the field value from table jsn_users also automatic save in table _users like field value name and email which I see it is automatic save.

I really need help.

Thank you.
  1. more than a month ago
  2. Features Request
  3. # 4
admin Accepted Answer
Admin
Hi,
Sorry for we it's night. I will check this tomorrow.
  1. more than a month ago
  2. Features Request
  3. # 5
harnisa Accepted Answer
Hi,

Thank you for your reply. Where should I put JSON format?

triggerFieldSelecttitleUpdate($user,&$data,$changed,$isNew){
$db=JFactory::getDbo();
$query="UPDATE #__users SET selecttitle=".$db->quote($data['selecttitle'])." WHERE id=".$user->id;
$db->setQuery($query);
$db->execute();
}

or how about if I use field type Select box with multiple selection?
  1. more than a month ago
  2. Features Request
  3. # 6
admin Accepted Answer
Admin
you can convert to simple string with
$gender=implode(", ",json_decode($data['gender']));
$db=JFactory::getDbo();
$query="UPDATE #__users SET gender=".$db->quote($gender)." WHERE id=".$user->id;
$db->setQuery($query);
$db->execute();

from ["value1","value2"] to value1, value2
  1. more than a month ago
  2. Features Request
  3. # 7
harnisa Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 8
admin Accepted Answer
Admin
In your function you have leave $db->quote($data['selecttitle']), replace with $db->quote($selecttitle])
  1. more than a month ago
  2. Features Request
  3. # 9
admin Accepted Answer
Admin
Sorry remove ] from previous code
  1. more than a month ago
  2. Features Request
  3. # 10
harnisa Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 11
harnisa Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 12
admin Accepted Answer
Admin
  1. more than a month ago
  2. Features Request
  3. # 13
m-r-promotion Accepted Answer
Content Protected
  1. more than a month ago
  2. Features Request
  3. # 14
admin Accepted Answer
Admin
Hi,
We support Easy Profile and we not have experience with "powerful-email-editor" component. I hope in a reply of Harnisa Azrin.

We have helped only to make a plugin to copy Easy Profile data into Joomla user table.

Maybe this link can be useful https://www.easy-profile.com/support/email-user-registration-information.html#reply-6220
  1. more than a month ago
  2. Features Request
  3. # 15
m-r-promotion Accepted Answer
Hi,

the problem is solved. The combination of Easy Profile and ACYmailing (business version) works very fine!

Best regards
Markus
  1. more than a month ago
  2. Features Request
  3. # 16
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

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.

Guidelines

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

Search Users

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.