Some users may not want to receive PMs from anyone, so we should let them be able to specify who they want to receive PMs from, i.e., people on their buddylist. Messages from Administrators, Moderators, etc. should always be sent. Or has this already been included?

Thank you!

Comments

MisterSpeed’s picture

Assigned: Unassigned » MisterSpeed

As far as PMs is concerned it displays a Send this user a message link on user profile page. So as asked here we don't need to display such a link for the users who are not in buddylist or in relation with that particular user. I will submit a patch to achieve this.

Thanks [LS]

MisterSpeed’s picture

Status: Active » Needs review
StatusFileSize
new2.87 KB

Im adding a patch here to achieve the above requested functionality. After applying this patch to user_relationships_ui.module and if privatemsg is installed it will display options to select the private messages on/off for users in or outside relationships on user edit page. According to that it will display send message link on user profile page.

Thanks [LS]

sadist’s picture

Fayna, have you already tried this patch yet?

regards.

63reasons-LS’s picture

Assigned: MisterSpeed » 63reasons-LS

Yes, I submit the patch here after testing it thoroughly Let me know if there is an issue

Thanks

alex.k’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

feloescoto’s picture

Thank you for this patch, it is more than useful, but I think there is a small bug in it.

The form will be displayed in each category of the user edit forms.

Just move line 623 to line 670 to close '}' the if and display the settings form only in the account category.

I hope this helps, but if you want I can open an issue for it.

Regards,
Felipe

alex.k’s picture

Status: Closed (fixed) » Needs review
Issue tags: +rc2block

Thanks for the report. Please reopen issues if closed, or else it falls off the dashboards.

merilainen’s picture

Why, oh why is '#weight' => -10? I guess the weight should be 10, otherwise it jumps before user name and email address fields.

alex.k’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -rc2block

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