Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Is there a way, or is it possible to have the link "Send a PM to this user" when using panel to do a the formating of the users profil page. When I activate the page user/% in pages the link is remove and there is no way to make it show and i do not know how to make the link appear. Is it possible to have a block whis this link only ?
Thanks !
Comments
Comment #1
RaulMuroc CreditAttribution: RaulMuroc commented7.x-2.x-dev is still not possible so I change to this version.
Same problem for me, tried different workarounds: custom block, etc but no-one worked.
We could all help to port to D7: http://drupal.org/sandbox/dereine/1109340 which is referenced by issue: http://drupal.org/node/1123430
There we could include this functionality: A Block for link "Send a Personal Message to this user".
Thanks in advance.
Comment #2
Simon Georges CreditAttribution: Simon Georges commentedI just closed #1419962: Private Message Form in Panels Page as a duplicate of this one.
Comment #3
Simon Georges CreditAttribution: Simon Georges commentedI just closed #1123430: Privatemsg as block (for panels etc) as a duplicate of this one.
Comment #4
andypostAlso there's a project to replace this functionality - http://drupal.org/project/pm_existing_pages
Comment #5
ptmkenny CreditAttribution: ptmkenny commentedI am overriding my users' profile pages with Panels. I made a "Send a PM to this user" link using Views.
Here's what I did:
1. Create a view of users and fields.
2. Add a content pane.
3. Set "User: Uid" as the contextual filter. "Hide view" when the filter is not available. When the filter is available "Specify validation criteria" to be "User" and "only allow numeric UIDs."
4. Under pane settings, set argument input to "From context" and require the "User ID" from under User.
5. Under fields, remove the user name and add a "Privatemsg: Send privatemsg link" field.
6. Save the view.
You can now add this as a pane in Panels and it will give you a single link to place wherever you want. If you don't want to show the link on a user's own profile, you can adjust the visibility settings (in panels) to not show the link when the logged in user = viewed user.
Comment #6
Stado CreditAttribution: Stado commentedGreat!
Thanks a lot! I had wasted quite some time on this until I came across your post.
This is just perfect.
tnx
Comment #7
rogical CreditAttribution: rogical commentedAuthor pane is able to display in panels which have pm inside.
Comment #8
ptmkenny CreditAttribution: ptmkenny commentedComment #9
jessehsHere's an exported view designed to be embedded as a VIew Pane in a Panels page. It generates a link "Message [name]." It accepts the first argument of the panel, so it works when you're at /user/%user. It's hidden when you're at your own user profile page. (Don't import the opening or closing PHP tags.)
Comment #10
sayansk CreditAttribution: sayansk commentedWhere to insert this code?