Closed (fixed)
Project:
Privatemsg
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2008 at 23:00 UTC
Updated:
24 Jul 2010 at 21:21 UTC
Jump to comment: Most recent file
While the "send privatemsg to user" link appears on user profile pages, it doesn't appear on any Node full-views. Would like to implement this feature, and enable the site admin to chose which content types the "send privatemsg to user" would appear on. Another nice option, IMHO, would be that when sending a privatemsg via this method (i.e., "send msg to user" link on a node page) you couldn't add any additional recipients as you're trying to send the PM. Reason being: you're trying to send a message just to that user.
| Comment | File | Size | Author |
|---|---|---|---|
| #19 | privatemsg_display_link3.patch | 5.28 KB | berdir |
| #18 | privatemsg_display_link2.patch | 5.5 KB | berdir |
| #10 | privatemsg_display_link.patch | 4.15 KB | naheemsays |
| #2 | privatemsg.display_link_settings.patch | 4.38 KB | berdir |
Comments
Comment #1
spyderpie commentedAlso, to add to this, if you are using Content Profile, it would be nice if you could add this link there as well.
Comment #2
berdirOk, attached is a first patch which allows to add such a link to nodes. It allows to configure the following things:
- Configure which node types should display the link
- Configure if the link should be displayed for teasers too (global setting)
- Configure if such a link should also be displayed for the comments of the selected node types
- Configure if send private message link should be displayed on profiles (profile specific)
- Configure if send private message to xy should also be displayed for the current user ( globally controlled in privatemsg_get_link, works for every place where that function is used). This also provides a solution for #395632: Make "send this user a message" not appear on one's own profile.
Please test this. I think this should really contain enough configuration options, If someone needs something more complex, it should be written in an own module.
Comment #3
berdirComment #4
spacereactor commentedsorry new to drupal. how do i add the patch? when i click on the patch is another webpage.
Comment #5
mrgoltra commentedI use cygwin the easiest way for me under Windows
Comment #6
mrgoltra commentedhttp://drupal.org/patch/apply
Comment #7
mrgoltra commentedThis patch will not work for RC2 just incase someone wants to know.
Comment #8
parrottvision commentedsubscribe
Comment #9
sbydrupal commentedThe patch in #2 did not work with the latest 6.x-1.x-dev version on June 11 2009.
Would it be possible to get an update on this issue. Thanks.
Comment #10
naheemsays commentedRerolled, but setting to cnw as I think the text strings need improving.
I have also modified the patch to take advantage of new features since the original where the message default subject is also automatically set -but once again, the text strings here are poor.
Comment #11
sbydrupal commentedThanks Nbz.
In meanwhile, I tried to replicate the same functionality with Author Pane Module. It is pretty good.
The messaging link is already available for Nodes or Blocks.
With few tweaks, managed to insert the "Send Private Message Link" along with Online/Offline,... from Authors pane, into Node template.
I will check your patch. Thanks.
Comment #12
naheemsays commentedauthorpane works well in most cases - its what is used on my site too (all comments themes like forums, no pm contact for normal nodes.)
Comment #13
sbydrupal commentedin fact, author pane works for nodes also, including anonymous users sending message.... everything is fine so far. I use D6.12 and last version of author pane, pretty useful.
Comment #14
sbydrupal commentedFor information, as a solution with author pane, I inserted the below code (within php quotes)
$account = user_load(array('uid' => $node->uid));
print theme('author_pane', $account, NULL, 'author-pane');
to node.tpl.php, and everything flows with no problem afterall.
Comment #15
berdirIf using author pane works and is enough for most users, I'd say we can close this issue as won't fix. No need to implement a feature twice.
Comment #16
mrgoltra commentedGood Day,
I wish I could use author pane but I can't. I tried the patch @ #10 no failed hunks, config page shows up, selected content type but it is not showing up on the links. I am using RC3. Any other ideas?
Thank you,
Mark
Comment #17
volocuga commentedNeed it too for RC3.
Comment #18
berdirJust tested this again, nbz's patch works perfectly fine here.
I just changed the strings a bit (still not good, looking for improvements) added variable_del() calls and re-rolled to remove the offsets and fuzz.
Setting to needs review because that's what the patch needs :)
If you it does not work for someone, please provide a detailed description, if possible with screenshots (configuration and so on).
Comment #19
berdirRe-rolled against 2.x-dev. Removed "display link to self" option since that one is covered in #520390: Option to configure the display of the send message to themself link.
Comment #20
Bilmar commentedsubscribing
Comment #21
berdirCommited to 6.x-2.x-dev, needs to be ported to 7.x.
Comment #22
berdirPorted and commited to 7.x
Comment #24
druppeler commentedI would really like to have this feature as described in this issue.
I see it has been implemented in 6.x-2.x-dev but that is not a recommended version.
Could you please tell me:
1) Is there a plan to make 6.x-2.x-dev a recommended version?
2) Is 6.x-2.x-dev as it is now (not a recommended version) safe to use in a production site?
Thanks ahead of time :-)
Comment #25
berdir1) Of course.
2) Depends on how you use it I guess. It is rather stable and we have a lot of tests to ensure that it works correcty but there will be chances to the UI and structure. Also, there are no security notices so you need to keep it up to date on yourself.
Comment #26
iparsin commented@Berdir Just use the privatemsg as of today 7/24/2010, the lines was shifted but your patch still works like charm. Impossible to make it works without help from people like you, thank you!