1. kennethefford
  2. Support
  3. Friday, July 06 2018, 08:06 PM
Hi, I am a long time user and subscriber of Easy Profile. It has worked well for me. I have an update that I am implementing that requires I make additional changes using the JSNUser object. I reviewed your Developer page in your Documentation. All the references seem to refer to using JSNUser only for a specific user, the active logged in user. I need to find all users with a specific value set in a specific EasyProfile custom field. How is this done? It cannot be done by simply loading the current user.

Let me explain the change being made. I am adding a new admin feature through the front end that allows an admin user to change his organizations name throughout the site, for all his organizations users. For example, as an admin user for say the "Disney Land" organization, I may wish to change my organization to "Disney World". The organization is stored in an EasyProfile custom field. The change needs to be made for all users with that field value of "Disney Land".

Any suggestions and links are welcome. Thanks in advance.

Ken
admin Accepted Answer
Admin
Hi Ken,
and thanks for contacting us.

I know you are a loyalty customer, so allow me to give you a small gift, you can find attached to this reply a plugin, please follow these steps:
- Download and install it
- Go to Administration->Extensions->Plugins and search for "Easy Profile - Change Field"
- Enable this plugin
- Go into this plugin and set:
1) the field that you need to change (in your case organization field)
2) set the access to allow only to your admins to have available this plugin (see screenshot)
- Now on frontend you can access to this plugin from a link like http://your-site.com//index.php?option=com_jsn&view=changefield

if you need some adjustment then you can edit PHP file at /plugins/jsn/changefield/changefield.php

I hope this tiny plugin will meet your needs :D
Attachments (2)
  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.