Embed Privatemsg pages
This page explains how to embed certain pages of Privatemsg into your website. Be sure only to use code suitable for your respective version
Features of Privatemsg branches
This page lists the differences among the features of the various Privatemsg branches.
HOW TO: Limit messaging rights of certain roles
There are sometimes situations where a site administrator may want to limit the messaging abilities of certain roles. For instance, a site
How to change the order of messages in a thread
By default, Privatemsg orders messages in a thread from oldest to newest. This means that users have to scroll down in a thread to see the
How to: Auto deleting private messages based on their age
Problem: You have a site where users are sending each other private messages. These messages are accumulating and you want a way to
How to: Hide 'Write new message' tab, but still allow 'Send private message' links to work.
To simplify our users' interaction we wanted users to only start a new private message using links embedded in a page. This meant hiding the
HowTo : Count threads where a participant has not started the thread and those where he has not answered
These queries were proposed by Berdir (maintainer).
HowTo: Integrate Privatemsg with Application toolbar (AppBar)
The following code sample shows you how to integrate Privatemsg with the Application Toolbar.
HowTo: Integrate Privatemsg with UserPoints Module
There are two way to integrate Privatemsg with the UserPoints module. First, it is possible to use the privatemsg_rules module (see [#327938
HowTo: Integrate Privatemsg with a friendlist module
This page provides a skeleton to integrate a friendlist module with Privatemsg and provide features like autocomplete for friends and
HowTo: Integrate Privatemsg with the Flag and jQuery_Impromptu modules
I needed a way for a user to be prompted to send a message to the author of a node after it was flagged. This was my solution.
HowTo: Maintain a single thread between two users
Original discussion
HowTo: Make 'To: [username]' show as Non-Editable Text when UIDs are in URL
Credit: Thanks to Berdir for contributing the code!
HowTo: Remove recipients of a Privatemsg
This page explains how to remove all the recipients of the Privatemsg thread so that only the sender is visible in the participants.
HowTo: Show Send Privatemsg to Author Form on an Author's Node
This code by Gastonia and ul71m0 allows you to show the "send privatemsg" form for the node author on the node page.
HowTo: Theme messages menu
With the help of Berdir I was able to overwrite the output of the messages menu without losing the dynamic output of new messages.
Place a custom "Send a PM" link with Views, Panels
Use case: I want to show a "Send a PM" link to a user, but I want to control the placement.
Privatemsg API Documentation
The official API documentation for Privatemsg can be found here:
Privatemsg-Rules Integration
The Privatemsg module can greatly benefit from the powerful and flexible Rules module integration. This document is meant to be a basic
- // Introduction to Privatemsg-Rules
- Message notification via email depending on user's role
- Points system with messages
- Tag a privatemsg when it's being sent.
- Using Textual comparison and Numeric comparison (with regex)
- Using Textual comparison and Numeric comparison
- Welcome message after registration
- Welcome message after validation using LoginToboggan and Privatemsg
Theming Privatemsg New Message Indication Block
Sometimes the default messages outputted by Drupal or the contrib modules aren't always what we want and therefore we are tempted to make
