I would like to allow users to access their private messages from their user account pages, so I'd like the URL to be, universally, user/%user/messages.
It looks like, in D6, there was an admin setting to allow the choosing of an arbitrary path (instead of /messages) at which the user could view his messages. I was wondering if this setting will be reappearing.
Note that you can change the default URL in the administration settings (it is also possible to move it below /user/uid) but that actually *moves* it, which means that /messages is no longer available.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | allow_user_messages-1217280-6.patch | 1.41 KB | geerlingguy |
| #3 | allow_user_messages-1217280-3.patch | 1.33 KB | geerlingguy |
| #1 | allow_user_messages-1217280-1.patch | 490 bytes | geerlingguy |
Comments
Comment #1
geerlingguy commentedFor a simple fix, see attached patch. For the needs of my site, simply allowing the user access to messages on his own page is good enough. However, for many sites, I would presume the ability to have the entire private messages interface accessible from the account page would be ideal.
This patch just lets the user see his own
user/[uid]/messagespage.Comment #3
geerlingguy commentedUmm, yeah... the patch above basically allows anyone to view anyone else's messages list. That's not good :-/
So, the attached patch only allows the current user to view his own messages. The logic in that user access function is pretty crazy, in some ways (kind of a mini permissions system for the privatemsg module), but I understand the reason for the complexity.
Anyways, I still just want to be able to let users get to their private messages right on their profile pages :)
Comment #5
mefisto75 commentedsub
Comment #6
geerlingguy commentedYeah... just realized the patch didn't allow people to view other people's message lists, but DID allow people to view other people's threads (even worse!). This is still a somewhat hackish attempt, but it works for my site.
Comment #7
geerlingguy commentedComment #9
ptmkenny commented#6: allow_user_messages-1217280-6.patch queued for re-testing.
Comment #11
ptmkenny commentedPotentially related issue: http://drupal.org/node/1772236
Comment #12
ptmkenny commentedComment #13
ptmkenny commentedPotential solution (and patch) here: https://drupal.org/node/1772236
It does not allow the path to be changed, but instead provides user/%user/messages as the path.
Comment #14
ptmkenny commentedClosing as a duplicate of #1772236: Make "Messages" Tab on own user pages available for users and "admins" with "read all messages" permission