1. clearwebsolution
  2. Support
  3. Thursday, September 10 2015, 05:24 PM
Hello,

Currently when a user tries to reset their password their account gets deactivated until they reset the password, does this have anything to do with Easy Profile, I'm have looked everywhere and cannot find the reason why this is happening.

Also, when i look in the user manager I see that some users are displayed with First Last name and other with Last, First name, is there a way to fix it so they are all displayed with Last, First Name? I have attached a screenshot so you can see what I mean.

Thanks in advance for your help,

Daniel
Attachments (1)
admin Accepted Answer
Admin
Hi,
Currently when a user tries to reset their password their account gets deactivated until they reset the password, does this have anything to do with Easy Profile, I'm have looked everywhere and cannot find the reason why this is happening.
Hi, Easy Profile extends Joomla user management, registration,edit profile,reset password,login (and others) are the same of Joomla, so this is not due to Easy Profile.

Anyway, I have tried on system without Easy Profile and I have same thing. Strange but this is a Joomla behavior.

Also, when i look in the user manager I see that some users are displayed with First Last name and other with Last, First name, is there a way to fix it so they are all displayed with Last, First Name? I have attached a screenshot so you can see what I mean.
No sorry, Easy Profile made up the name with Firstname Secondname(if activated) Lastname.
  1. more than a month ago
  2. Support
  3. # 1
clearwebsolution Accepted Answer
Pro
Hello, thank you so much for getting back to me so quickly.

Can you please elaborate a little more when you say "No sorry, Easy Profile made up the name with Firstname Secondname(if activated) Lastname.", is there anything in Joomla that decides how the names will be displayed?

Thanks

Daniel
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
is there anything in Joomla that decides how the names will be displayed?
No sorry, Joomla have a unique field called "name".

With Easy Profile you can split name in firstname,secondname and lastaname. Easy Profile simply concatenate these parts and store in Joomla "name". You can customize the views (with Joomla template override feature) of Easy Profile to get "Last, Firstname", but this will work only on profile page (frontend) and users list (frontend).

Alternative is to write a plugin (based on our skeleton plugin) to store name in your format after update/registration profile:
- Download, install and enable our skeleton plugin, you can download from https://www.easy-profile.com/docs/44-triggers.html
- open file /plugins/jsn/skeleton/skeleton.php
- remove examples functions: triggerFieldAvatarUpdate, triggerProfileUpdate
- Write your function like this
triggerProfileUpdate($user,&$data,$changed,$isNew){ 
$name=$data['lastname'].", ".$data['firstname'];
$db=JFactory::getDbo();
$query="UPDATE #__users SET name='".$db->quote($name)."' WHERE id=". (int) $user->id;
$db->setQuery($query);
$db->execute();
}


NOTE: this code is not tested and not supported, this is only for example purpose. to write a plugin you need PHP and Joomla dev Knowledge
  1. more than a month ago
  2. Support
  3. # 3
clearwebsolution Accepted Answer
Pro
Hello and thank you for your response, I will look into your suggestion to see how I can fix it.

I did have one more question, is there a way to export the Users from a specific User Group? I need to export a list of users that contain the extra fields I created and cannot find a way.

Thanks,

Daniel
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
No sorry, this is not a feature. The best way is to export directly by using some Database tools like PhpMyAdmin.

Custom fields are stored in table #__jsn_users
  1. more than a month ago
  2. Support
  3. # 5
clearwebsolution Accepted Answer
Pro
Hello, I have tried several things but the majority of names are showing as Last, First name and only some are First Last name, any idea how this can be fixed, they are showing like this both in the frontend and backend. I really really need your help figuring this out because the client is blaming it on Easy Profile and I need to be able to offer a logic reason why some names display one way and others display another way.

Thanks again for your support,

Daniel
  1. more than a month ago
  2. Support
  3. # 6
admin Accepted Answer
Admin
Hi,
this code is triggered when user register or update his profile. So not change name of existing users if they not update their infos
  1. more than a month ago
  2. Support
  3. # 7
  • 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.