Send an email when a node gets unpublished
Rules have a great way to email a user when a node is created or updated. But lets say a 3rd party module like scheduler.module that publish and unpublish nodes is used. Rules can send an email when a node is published but not when it is unpublished. Any ideas, coz this shoud be simple.
Read moreCan Rules do this?
I have a node with a date field. For this discussion let's assume that the value in the date field is 1/1/2010. I would like to check all the nodes (of a particular content type) and, once that date is equal to or greater then x number of days from today, send an email to someone. Obviously, each node would have a different date as populated at the time the node was created. I want to iterate through the nodes and if the node date is equal to or greater then x number of days from today, do something like send an email.
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 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 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 moreAdd Rule After Login - Unpublished Content Requiring Review
Hi There.
I successfully added a Rule -- ON event User has logged in, DO show a configurable message on the site.
Basically, I want to add logic to this -- show message IF there is unpublished content. I allow anonymous users to submit a specific node, and admins can choose to publish or delete the content after reviewing. I already have a notification email that goes out, this is just another feature I would like to add.
Read moreLinks, Views, triggers
I am looking for a way to trigger rule from views result. I started issue with http://drupal.org/project/rules_executor just to see how author looks at this. And maybe there are some other ways to get what I want, but here is the idea.
Views render list of node titles and displays them as links. Links triggers rule(s).
Read moreHow can I remove rules when not logged into drupal?
Hi, I accidentally created a rule that creates an infinite loop for any logged in user, in essence rendering my site unusable. I was able to remove the rules module to get the site working, but now I can't use rules as each time I add the module back in it restarts the problem.
Is there a way to remove individual rules or all of them from out side of drupal? Where are the rules stored? Would just deleting them work?
Thanks
Omar
role expiry triggering content deletion
Hi,
I was wondering if anyone has any ideas on how to implement part 'd' of the below problem please?
a)User is assigned role X
b)Role X allows user to create ‘products’
c)User is removed from role X
d)‘Products’ created by user are deleted
Any help is appreciated- thanks in advance!
Evelyn
Read moreExamples of datetime field form validation w/Rules?
I'm working on a Drupal 6 site that includes the ability to book resources (meeting rooms, projectors, etc). When somebody submits a new reservation/booking, I need to validate the reserved time to make sure it doesn't fall outside of business hours. I was hoping to do this with the Rules module, as I'd like the ability to change the validation criteria via the Drupal web UI.
Read more
