I've had success with this module and placed a "messasge the author" link on the node template.

This works ok, but the node send from isn't apparent, which would be very nice.

I'd need to pass the $nid of the node in the link created. With clean URLs would this be...
<a href="privatemsg/msgto/2&49">Message the Author</a>
...49 being the node id.

Then in the privatemsg.module file I could add it to the parameters and use it to load the title and end up as great info in the private message and email notification.

What I don't know is:

1. Is that link valid?
2. What functions need the $nid parameter to carry it to the message and notifications?
3. How does the parameter end up as a !title alias or perhaps I could just use $title?

I think I can alter the messages fine once it comes through.

I LOVE DRUPAL!

Comments

doublejosh’s picture

Sorry, to be more clear the above code...
<a href="privatemsg/msgto/2&49">Message the Author</a>
should probably read...

<?php echo '<a href="privatemsg/msgto/' . $user->uid . '&' . $node->nid . '">Message the Author</a>'; ?>
berdir’s picture

Status: Active » Closed (won't fix)

No new features are added to old branches so I'm setting this to won't fix. This feature is already part of Privatemsg 6.x-2.x-dev.