Support

  1. oliviergut
  2. Support
  3. Tuesday, September 05 2017, 11:37 PM
Hi
I use easy profile and membership Pro. I was able to show the current subscriptions of a user in the profile tab.
I would like to be able to filter users on the users list according to which subscriptions they have. (e.g. I will only see all users that have the subscription A).

Is there a direct way to do that?
If not, is there a workaround?
- I have the possibility to execute a php-script in membership pro, when a user has paid a subscription (is it possible to change values in easy profile by php script?
- The users will be added to a different joomla user group when the have a paid subscription. Is it possible to use this as a help?
- ... do you see a different approach?

Thanks a lot.

Olivier
admin Accepted Answer
Admin
Hi,
Is there a direct way to do that?

this is not possible natively

1) I have the possibility to execute a php-script in membership pro, when a user has paid a subscription (is it possible to change values in easy profile by php script?
Yes, see how to at http://docs.easy-profile.com/index.php/article/jsnuser-object. Keep in mind that all membership component should allow you to launch a SQL query, so it is easier to change the value directly into the table.

2) The users will be added to a different joomla user group when the have a paid subscription. Is it possible to use this as a help?
You can't use search on usergroup (this is because we do not want to expose Joomla usergroups). But you can create a User List with a static filter based on usergroups, see docs and examples at http://docs.easy-profile.com/index.php/article/sql-custom-where. If you use this solution then you need to create a menu item of type Easy Profile->Users List for each Usergroup.

- ... do you see a different approach?
mmh, no sorry, the best ways are explained above, if you need to have a search then you need to use solution 1, if you need to have different lists then is better solution 2**

** "SQL custom where" parameter allow you to set a static filter for the Users List with a simple query like "group_id IN (ID1,ID2,...)". But you can also use a complex query to get users with active subscription from membership pro DB table (see example to get online users at http://docs.easy-profile.com/index.php/article/sql-custom-where).
  1. more than a month ago
  2. Support
  3. # 1
oliviergut Accepted Answer
Thanks a lot.
  1. more than a month ago
  2. Support
  3. # 2
  • 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.

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.