It would be useful for contact module to print out a direct link to contact the author.
Attached, a simple fix that adds _link hook to contact.module.

Comments

dries’s picture

When comments are disabled, this might be a good thing. When comments are enabled, this probably isn't a good thing. Also, you should check whether the author has enabled his personal contact form.

(If you attach a patch, set the status to 'patch'.)

matteo’s picture

Ok, Dries, I'll work on your suggestions (I agree with you) and repost a new patch....
Matteo

matteo’s picture

StatusFileSize
new554 bytes

Here is the new patch for this module.
According to Dries suggestions, contact link is printed out only:

- comments are not enabled for the node
- user is accepting contact

Please let me know if the patch can be finalized.
Matteo

killes@www.drop.org’s picture

I'd be surprised if this patch would work as advertised. $user->contact is only available after user_load() (which isn't done usually). Doing user_load for each user is not a good idea.

matteo’s picture

I'm working on a dedicated mailto.module which will give the possibility to mail the authors of posts and the registered users, as an admin helping tool, which will incorporate this patch.

I'll publish the module when ready.
Pleae consider this enhancement as closed.
Matteo

firedancer5’s picture

Is this available in a stable form? It seems to be just what I am looking for. Please let me know. Thanks!