Hello.

I have successfully installed Mentions with jQuery textcomplete library, which is a pretty cool solution, but I'd like to show in the suggestion list only users who has a relationship with the current user. That relationship was stablished using User Relationships module. Looking at mentions.module it seems I would need to modify the query in the function mentions_autocomplete($string =''), but I'm not sure if it is the right way and how to do it.
Looking at User Relationships module it seems that to know if a user has a relationship with the current user I should verify in DB if that user requester_id or requestee_id is the current user and if the user relationship status is approved.
Have you ever implemented such integration? If not could you advise how to change that code in mentions.module to add that query for requester_id, requestee_id and relationship_status?

Thank you

Comments

garcia.leandro created an issue. See original summary.

Dr.poop’s picture

subscibing

Deciphered’s picture

Version: 7.x-1.0-beta2 » 7.x-2.x-dev

There are many changes underway at the moment, and this is definitely on the cards, but I have actually removed the autocomplete functionality from the 7.x-2.x branch at the moment to give @markcarver a chance to look at a better solution for the front-end functionality.

Worst case scenario, I will re-add the jQuery textcomplete functionality, but more likely I will be making the front-end component pluggable.

ivnish’s picture

Assigned: garcia.leandro » Unassigned
Category: Support request » Feature request
ivnish’s picture

Status: Active » Postponed

Postponed because the 2.x branch has no maintainer since 2015. If the branch does not have a maintainer within a month, the issue will be closed

ivnish’s picture

Status: Postponed » Closed (outdated)