Privatemsg: An internal messaging System

The Privatemsg module allows users to send messages to each other without having to share their e-mail addresses. Once the module has been enabled, an inbox link will appear in the navigation menu. "Write to author" links are included in posts, allowing users to write private messages instead of commenting openly. Allowing users to communicate directly with each other is an important part of community building.

Optionally, users can select whether to receive e-mail notices of new messages by editing their user profiles. The contacts list contains only users that you have previously messaged. To contact users not in your list, you need to know their Drupal usernames. Administrators can set messaging options such as frequency of emails, message status display, and number of messages to display per page. They can also configure 'Write to Author' options.

You can:

  1. administer privatemsg at administer >> settings >> private message.
  2. view your private messages at http://example.com/messages view inbox.
  3. file issues, read about known bugs, and download the latest version on the Privatemsg project page.

The Drupal 5.x and 6.x version of Privatemsg is no longer maintained.

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

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

Guide maintainers

joshmiller's picture