Closed (fixed)
Project:
Facebook-style Statuses (Microblog)
Version:
6.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2011 at 04:03 UTC
Updated:
24 Mar 2011 at 12:58 UTC
Comments
Comment #1
erik2e commentedHi mastermtg,
You can use an action to load a user account from the ID you have in the status object.
Then on the next action, you have the ability to create a send mail to user action, and you have either the sender or recipient account (or both) depending on the account you loaded just before. This works fine for me like this.
I think the "send a mail to user" you had in 3.0-beta was due to the bug fixed in this issue http://drupal.org/node/1079000. Now you have to explicitely load the user account, as statuses can be posted on something else than users.
The rule triggered on "User saves a status" could be :
Condition :
- If NOT 'Status was posted to own profile' (the current user posts a status to someone's profile)
Actions :
- Load a user account with User ID set to token [status:recipient-id], named 'recipient'
- Send a mail to user, and use the now available 'recipient'. You have tokens from the status and the recipient user accounts.
You can also load the sender user account this way, and I think I may need to add a check for the [status:recipient-type-name] being user, and not a node or something else.
NodeOne company made some brilliant tutorials on basic and advances Rules usage :
http://nodeone.se/blogg/learn-rules-with-nodeone-part-1-overview
Hope this helps.
Comment #2
mastermtg commentedHey erik2e,
Thanks your solution worked beautifuly! It was a lifesaver.
Thanks!
Comment #3
erik2e commentedGlad to hear that was useful :)