Support

  1. jimbo
  2. Support
  3. Tuesday, May 26 2015, 08:38 AM
Hi,

I have installed your Easy Profile Basic component. Is it possible for users to tag other profiles as 'favorites' so that they can organize their own profile list into preferred contacts?

Thank you
Accepted Answer
admin Accepted Answer
Admin
Hi,
no sorry, but you can do something like this: https://www.easy-profile.com/support/link-to-profile-data-with-select-list.html#reply-4835

Make a Select field with all user
in select field type you can retrieve options from DB table (example from Joomla user table)
so create Select field and set these parameters:
- Multiple Selection: Yes
- Table: #__users
- Column for Values: id
- Column for Text: name
- *SQL where parameter: id<>{user id raw}

Create HTML Delimiter field to show a User List module with Joomla loadmodule plugin
put in description this code**: {loadposition usermodule}


Create a User List module to filter users from previous Select field
Create a module of type Easy Profile - User List
Set these parameters
Position: usermodule
SQL Custom Where***: a.id={user select_field_alias displayed raw}



NOTE:
* id<>{user id raw} - with this you exclude your user from Select options
** {loadposition usermodule} - this code become from Joomla builtin Load module plugin and render all modules in "usermodule" position
*** replace "select_field_alias" with your select field alias

DOCS:
{user id raw} and {user select_field_alias displayed raw} become from our content plugin, docs at https://www.easy-profile.com/docs/26-plugin-content.html and they will be replaces from the user data.

NOTE2 keep in mind that this is a workaround, Easy Profile is not designed to manage lists or favorites, is just one component of profiling.
  1. more than a month ago
  2. Support
  3. # Permalink
jimbo Accepted Answer
Basic
Thank you very much. Great support.
  1. more than a month ago
  2. Support
  3. # 1
jimbo Accepted Answer
Basic
Hi,

I'm having issues with a demo site I set up to test the above (the tagging of users to create a 'favorites' workaround).
Single tagged users work well but the tagging of multiple users is causing problems (with the user list disappearing).

Many thanks for your assistance.
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
HI,
try to put in SQL Custom Where of module this
a.id IN ({user select_field_alias displayed raw})
  1. more than a month ago
  2. Support
  3. # 3
jimbo Accepted Answer
Basic
Hi,

thank you for the quick reply.

At first glance that seemed to do the trick but now I'm seeing a bug where the current user is appearing as a select-able option (where it wasn't before) and the next user to log in is being removed from the (previous users) list I tagged them in.
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
ok,
in select field try to put this into SQL where parameter:
id<>{user id displayed raw}
  1. more than a month ago
  2. Support
  3. # 5
jimbo Accepted Answer
Basic
Hi, thank you, that worked.

It looks like I was also causing an issue because I had edited mod_jsnusers/default.php to hide the current user. Which was then removing the current user from my module user list.

I previously tried hiding the current user from my module user list using;

user_id NOT IN (SELECT DISTINCT userid FROM #__session WHERE client_id=0)

but this causes all logged in users to be removed. Is there a way to just remove the current user using SQL Custom Where?

Thank you.
  1. more than a month ago
  2. Support
  3. # 6
admin Accepted Answer
Admin
You can exclude current logged in user with this code:
id<>{user id raw}
  1. more than a month ago
  2. Support
  3. # 7
jimbo Accepted Answer
Basic
That's the one. Thank you.
  1. more than a month ago
  2. Support
  3. # 8
  • 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 Online

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.