I have a UGC site that allows users to write reviews on their own created nodes. I’m looking for a way this module can send private messages directly to the author of the node from the node itself in full node view. Sometimes users may want to write something to the author but does not want others to see it in the comment threads. I was wondering if a link such as “Send Private Message” in the user tools area can be created. The following page will then have a subject and message field along with the node title and author reference. The message will then appear in the recipient’s message box with the referenced node title and who it was sent by. I think this would be a nifty feature and if it’s feasible to do something like this, please shed some light.

CommentFileSizeAuthor
private message.jpeg109.16 KBmariner702

Comments

berdir’s picture

Status: Active » Closed (duplicate)

That feature has been added to 6.x-2.x-dev, you just need to enable which nodes should print that link in the configuration settings.

If you don't want to switch to the -dev version, you can implement something similiar to http://blog.worldempire.ch/de/api/function/privatemsg_link/6-2 yourself.

IWasBornToWin’s picture

Component: User interface » Code
Status: Closed (duplicate) » Active

I have the current dev module installed and when I hover over the "send message to author" link on my node, I can see the url which is shwing the destination with the current node referenced in the subject line...I says "Message regarding ?destination=node/694" but it only populates "message regarding" in the subject line. I'm not sure there is supposed to be a space between the word "regarding" and the "?" is there? I just tried it without the space between the ? and it still doesnt populate the node information

IWasBornToWin’s picture

Version: 6.x-1.2 »

I'm using version 6.2 dev

berdir’s picture

Status: Active » Postponed (maintainer needs more info)

This is working fine for me. Note that all it does is append the node title to that sentence. Maybe you don't have a node title?

IWasBornToWin’s picture

I just linked it to another node type to test it and it worked. The node that isn't working is in a node panel page. Do you think this has something to do with it? Also, This url does not populate the recipient or the title?

http://www.iwasborntowin.com/user/1/messages/new?edit[privatemsg][recipi... subject line

I took it from this page http://drupal.org/node/482554. I have prepopulate module installed as well. The fields are blank no matter what I try.

Thanks

berdir’s picture

Possible. As I said, we assume that there is a title element on the node and if there is not, then it breaks.

The URL doesn't work because the form names have changed, try leaving out the "[privatemsg]" part. Anyway, for recipient and title, privatemsg has built in support for prefilling the form.

.. messages/new/1,2,3/subject

Where 1,2,3 is a comma separated list of user id's.

IWasBornToWin’s picture

I took our the privatemsg part and it worked fine. Is there a list of available fields we can populate through the url or is recipient and subject the only two?

Thanks for your fast responses.

berdir’s picture

Status: Postponed (maintainer needs more info) » Fixed

These are the only two. Please update the status when you respond and set it either back to active or fixed, thanks ;)

Status: Fixed » Closed (fixed)

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