Hi,

Will there be an option to disable 'Trusted contacts'? I'm trying to develop a site for my organization and I'd like any member to email any other member.

PS Sorry for posting this in a closed issue before.

Comments

japerry’s picture

I'd suggest using the core contact form if you wish for people to contact each other. The trusted contacts system is basically meant to replicate facebook's friends system, where a two-way stream of information can be formed.

If all you need is email, then you can disable trusted contacts. Additionally, i think it'd be cool if there was a message button where it says to add a trusted contact.

BetaTheta’s picture

Sorry, I phrased my sentence poorly. I did mean I'd like my members to be able to message each user freely. We're a small organization where everyone knows each other. Everyone really already is a trusted contact of each other.

I'm not extremely familiar with Drupal and its hooks, but it seems to me (and I apologize if I'm wrong):
- code checks if user is a trusted contact, waiting approval or needs to be sent a trusted contact request
- perhaps a few additional lines in the code would do the trick: If drupal_commons_trusted_contacts is 1, automatically have user be trusted contact,
- on/off option for administrators to set value of drupal_commons_trusted_contacts

ezra-g’s picture

Title: Ability to disable 'Trusted Contacts'? » Allow users to message each other without being trusted contacts
Component: User interface » Trusted Contacts and Private Messaging

Thanks for the feature request, BetaTheta!

Re-titling the issue to more closely match what it seems like you're asking for. This isn't something we're explicitly currently planning to develop within the Acquia roadmap, but it's a feature that we'd be happy to see integrated (eg, by reviewing someone's patch to make it happen).

If you're interested in filing a patch, we'd be happy to help by reviewing and providing feedback.

One short-term option would be to disable the Commons Trusted Contacts module and enable only the Privatemsg module. I'm not sure how much of the themeing it would inherit for from the Trusted Contacts module, but it's worth trying and sharing your results here.

stewart.adam’s picture

Assigned: Unassigned » stewart.adam
Status: Active » Needs review
StatusFileSize
new10.71 KB

Attached patch adds a configurable boolean option 'commons_trusted_contacts_restrict_messaging' (default to TRUE/1). If set to FALSE (or 0), Commons will no longer restrict messaging and always show the "Message" link, unless the user has been blocked (relevant: #2053957: No place in the UI to un-ignore ignored trusted contact requests, no warning of this).

I haven't yet added a UI for toggling the option yet, but it can be done so using Drush or a module like variable_admin.

japerry’s picture

Looks good to me! I did a re-roll to add the setting to the Account Settings page where we have some other trusted contacts options. Perhaps Ezra or Devin can verify before we put it in.

Also reverse the variable to be an optional added feature instead of something you'd have to explicitly turn off to disable.

japerry’s picture

Issue tags: +commons 7.x-3.12 radar

Marking on the 3.12 radar ready to be reviewed to commit!

japerry’s picture

Status: Needs review » Fixed

Committed!

  • Commit ac99891 on 7.x-3.x by japerry:
    Issue #2045285 by japerry, stewart.adam: Give admins an option to allow...
mjwmeyer’s picture

I just had to post a huge thank you for this feature add before the issue gets closed. We're going to use Commons for our volunteer group, and I wanted exactly this - to be able to message other authenticated users regardless of "trusted" status. +1000!!

stewart.adam’s picture

Quick note: I'm patching up my Commons install to the latest releases and noticed that hook_uninstall() still references my variable name commons_trusted_contacts_global_messaging but the current one is commons_trusted_contacts_global_messaging... I can start a new issue if you'd prefer to handle it there.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.