Hi,

i tried do make a rule, which gives the sending user a message on the side "Your message has been send"..... I set it up in Rules but nothing happend after i trief several tests with several accounts.

Comments

mrtoner’s picture

We'd need to know what modules you're using, what steps you're using to create your rule, etc.

Timbalord’s picture

Module 1: PrivateMsg 6.x-2.x-dev
Module 2: Rules 6.x-1.2

Step by Step:
1. admin/rules/trigger -> new rule Trigger to "Private Message -> A message is sent"
2. Add Action: "System -> Show customized message on website" bla bla bla text
3. Save

Tried to send a private message, the message will be send, but nothing further happend.
Tried to give the rule a second Action: "redirect to recipient profile" -> Test, nothing happend.

mrtoner’s picture

Your best bet is probably to post a bug/support request in the issue queue for PrivateMsg. Also, remember that 6.x-2.x-dev is a development branch, 6.x-1.x is the current "stable" branch -- you may want to downgrade. Also, a condition might be necessary; I don't believe I've tried a rule without one, so I don't know if it will work with just an event (trigger) and an action. Anything that returns true (PHP code return true;) would work.

Timbalord’s picture

This problem was caused by another module.
The integration of phpfreechat stops showing messages on any theme with this code in phpfreechat.module:

if ($messages = drupal_set_message()) {
  unset($_SESSION['messages']);
}
mrtoner’s picture

How rude! Clearing all messages doesn't seem to be good form.