Search in group Search
Email sending with rules, taxonomy and content profile
I'm new to rules and trying to create rule that send email all users with same
taxonomy term when "NEWS" content type is published.
Below is summary what i have created, I don't know how to load all user email addresses where
newscategieries-tid is one of "referenced_news:field_newscategies-tids".
----
conditionCreated content is NEWS
AND
conditionCreated content is published
DO
actionLoad a referenced node "created_content"
actionLoad a term [referenced_news:field_newscategies-tids]
Need an action to create and delete roles
I need an action which creates a new role with default permissions and a customized name as well as an action to delete a role to make Rules like the following:
- When a new node of content type "company" is created, create a new role with name "role_companyname"
- When a new node of content type "department" is created, populate the referenced company node and create a new role with name "role_companyname_departmentname"
- When a node of content type "department" is created, delete the role with name "role_departmentname"
- etc.
Question:
Read moreHow to use Rules to change Workflow status in ProsePoint
I'm working on the redesign for a daily newspaper's website. I'd like to find a way for the Workflow status on stories to change automatically after a week from "Public" to "Archived." I think this can be done with the Rules module ... but I haven't figured out how yet.
I've read some information about using Workflow and Rules together in various places on Drupal.org, but most of what I've read is based on the workflow status being a CCK field. This is not the case in ProsePoint, where Workflow is built in, but not in a way that presents a CCK field that Rules can work with.
Read moreUsing Rules to update content date
I'm looking for information on how to setup Rules to automatically update the "created on" date of a node to the current date and time when that node is changed from "unpublished" to "published".
Basically, the site accepts content from registered users, which is not published until an admin/moderator reviews it. Upon review, the node's status is changed from "unpublished" to "published". At that moment, I'm trying to configure Rules to update the node's creation date to the current date and time (so that its creation date is the time it was published, not actually created).
Read moreProblem with "Machine readable variable name" on "Add a new vocabulary" action
Hi!
I have a problem with the "Add new vocabulary" action: if I change the "Machine readable variable name" I get this error on the evaluation log:
"Unknown variable name "taxonomy_vocab" return by action "rules_action_taxonomy_add_vocab".
I'm trying to create a new vocabulary when certain content type is created. I solved the problem changing "Machine readable variable name" to "taxonomy_vocab". I suppose that it could be a problem with the "Machine readable variable name" because the name that I used was correct and the problem was solved using the default name.
Read moreRules Module with Actions Module
Can the Rules Module and the actions module be used together. I'm building a recruitment site. i have content types [job, job_application] now i need to send two different emails to the recruiter and the jobseeker when a new application is created.
I can do this with Triggers and Actions but triggers doesn't seems to have a filter to send email only when a specific content type is created. but Rules can. So i was wondering if there is any way to integrate Actions Module in to the Rules Module. Is any of this making sense?
Help!
Read moreValidating form input using Rules
Hi!
I'm trying to setup Rules to validate my form input for me, when using CCK fields.
So far I've made 1 form, with one CCK text field, called field_email.
I've tried various ways to get Rules to check if this is a valid email address or not, by using Triggered rules:
ON event My node form is being validated
IF
NOT
condition Execute custom PHP code
DO
action Set form error on element 'field_email[0]'
The custom PHP code is simple:
return valid_email_address($form_state['values']['field_email'][0]['value']);
Read moreTokenize email with adv-poll content
Hi everybody,
first off I am a newbie with rules, tokens and Advanced poll.
I need to send an email to the users of the group who can vote in the poll, and the email has to contain the title of the poll, the content and the expiry date.
I managed to create a rule that sends an email to the right people, but I can't put title and content of the poll in the email.
I tried with local tokens like [title] and [body], which I expected to work since rules would take part into inserting the content (right?), but they appear unchanged in the email received.
Read moreChecking for domain in email field - custom PHP rule
HI guys,
I'm new to rules an am stuck on an issue. I am using rules_forms to process some input from a form. I'll describe what I am trying to achieve and hopefully someone can help.
1) My client wishes to prevent any user with a free email account from posting through the contact form.
2) I have set up a rule that triggers on form validation and prints and error for the email field.
I tried to achieve the logic with text-compare, but it's not working for some reason , so I am going down the php route.
Essentially I have a regular expressions:
Read moreRules to send mail when translated content has changed
I would like to send an email when content in one of my site's languages changes. The mails has to go to the editors of the other languages, so they can update their version. I installed the rules module, but can't find an out of date event. How can I quickly add i18n events?
Thanks !
Read more