I have some rules. On is to redirect the user to the profile and to show the user a message like "hello user, welcome back - Your last login was...."
The message does not appear.
Are system messages created with rules not supported?
I have some rules. On is to redirect the user to the profile and to show the user a message like "hello user, welcome back - Your last login was...."
The message does not appear.
Are system messages created with rules not supported?
Comments
Comment #1
bennos commentedI have looked up in rules.
File: system.rules.inc
line 78: function rules_action_drupal_message($settings) {
drupal_set_message($settings['message'], $settings['error'] ? 'error' : 'status');
}
I haven't looked in purr messages code.
Comment #2
Rosamunda commentedSubscribing :)
Comment #3
bennos commentedCould be a caching problem?!?!
Hook_theme_registry_alter is only new loaded on a cache refresh. will try it out.
Comment #4
tancHi bennos, did you find out whether it was a caching issue?
Comment #5
bennos commenteduntil yet, I had no time to clear it.
Comment #6
BenK commentedSubscribing...
Comment #7
CarbonPig commentedDid anyone ever resolve this issue? I'm having the same problem.
Thanks,
CarbonPig
Comment #8
CarbonPig commentedFYI - posted to module developers site... http://getsatisfaction.com/netperspective/topics/confuguring_the_purr_mo...
Comment #9
CarbonPig commentedBump...
Comment #10
Bilmar commentedsubscribing
Comment #11
bennos commentedanother module wirth growl like messages
http://drupal.org/project/rawr
Comment #12
YK85 commentedHello,
Is this still an issue?
Thanks!
Comment #13
tancFinally had some time to take a look at this. I did the following test:
The test message showed up fine.
To debug this I'll need more details of the exact situation it isn't working for you. Drupal version, Rules version, Purr version. Also details of the rule you created where this error occurs.
Comment #14
Rosamunda commentedI can confirm that the error persists.
I´ve got the latest stable releases of purr and rules, and this is my rule:
ON event User has logged in
IF
User has role(s) indent
AND
Userpoints amount is >= than x indent
DO
Show a configurable message on the site
The differencie in my rule is that the triggered event is the same...
Notes:
- I´ve cleared cache
- Purr is working very nicely in every single message on the site. It won´t work with the one that is generated by the rule.
Hope this clarifies.
Thanks for your help!!
Rosamunda
Comment #15
Rosamunda commentedUPDATE: After deleting my rule and re-creating it, the problem is fixed.
Comment #16
Rosamunda commentedWell, sorry for the mess, but after several testing (and setting a new D6 install with rules and purr), I must say that the messages fired by the rules module "not always" appears.
I mean this is what I´ve done:
Create a new rule that shows a message each time a user logs in.
The message appears, so it works.
I install purr, theme and configure it.
All system messages (normal and error ones) appears as purr messages.
All goes smooth.
I want to try the message that should appear each time I log in.
I log out and log in again.
It works.
I log out and log in as user A.
It works.
I log out and log in again, as user B.
It won´t appear any message, not in the "purr way" not in any other way.
I check the message syntaxis. It has this tags:
<h1> <h2> <small> <b> <a> <br> and the token: [account:user]I delete all html tags, and write dow a single line of text: "welcome user"
I check it again, and it works again.
Hope this helps to find the problem... I didn´t want to change the title, because I don´t know if this issue should be remaned or maybe started a new one?
Rosamunda
Comment #17
Rosamunda commentedHmm... now that I´m reading your message again, you say:
The latest Rules version is the 6.1.2, wich is the one that I´m using.
Could that be related to the issue?
Comment #18
tancHi Rosamunda, thanks for the detailed bug report. I'm a little strapped for time but I'll try and take a look at how Rules submits its messages and whether there is some kind of race condition that is stopping purr messages from working correctly.
Comment #19
Rosamunda commentedThanks in advance for your help!!
(As I´m not a developer, the only way I think I can help is doing some testing :)
Comment #20
tancI just took another look at this issue and I can't reproduce the problem at all. On a fresh site installed Rules and Purr Messages 6.x-1.x-dev. I created a new rule with the following:
EVENT
User has logged in
IF
User has role(s) : Authenticated User
DO
Show a configurable message on the site: User login test
I then logged out and logged back in a few times and the message was shown each time. I also turned caching on and the message continued to appear fine.
Feel free to open this ticket again if someone is having problems, but please make sure to submit an accurate bug report with the steps needed to reproduce the issue with a fresh install of Drupal, Rules and Purr Messages.