The Rules module is a module that allows site administrators to define actions that are conditionally executed, either programmatically or in response to predetermined events.
0
votes
0answers
7 views
Where to translate mimemail mails sent?
I've been searching everywhere but I really can't seem to find it:
Where do you translate mimemails sent by a Rules action?
Rules' core mail action allows to specify the language to be used and ...
0
votes
0answers
15 views
D7 - Rules - Conditions - PHP Evalution - Fetch Data
I am newbie to PHP evaluation. I have limited knowledge on PHP code in Drupal 7.
I am trying to use Rules to perform data comparison among three fields' value.
My logic is if (Field A < Field B - ...
0
votes
0answers
15 views
Donation and a Custom Price when Adding to Cart
I have watched rfay's (of Drupal Commerce) screencast on creating a donation form with custom line items. I have actually created it on the current version of our site. It works wonderfully, however, ...
0
votes
0answers
15 views
Access field value within Rules' “Set a data value” & “PHP Evaluation”
I am setting a data value within Rules (a field value on a node: field_expiration) using PHP EVALUATION.
However, to properly calculate the data value I'm setting (field_expiration), I first need the ...
0
votes
2answers
42 views
How to send an email that always contains all fields of entityform, without manually updating when fields are changed?
I have a client with an entityform with over 100 fields (trust me, I begged with them to lessen it). I need to send an email using rules with all of the fields exactly as they appear on the form. I ...
1
vote
1answer
30 views
How to make a rule for limiting one product per cart
Can anyone help me?
I want to know how to make a rule for limiting one product per cart. I found rule for limiting qty only but not order item.
I found this with code Drupal Commerce Shopping cart ...
0
votes
2answers
34 views
Automatic Node Expire / Unpublish with Renew Option
I have a classifieds site and would like to have a node expire after 45 days (unpublished), no matter how many times the user edits and saves the node. However after the node expires, the user has the ...
0
votes
0answers
3 views
How to programatically update time offset in a Featurized Rule?
I have a rule that compares the value of a date field to the current date. I also have a custom module with a config form that allows the user to set a number of hours of time offset. The rule is ...
0
votes
1answer
44 views
Set data (current nid) to entity reference field with rules and VBO
I'm currently stuck in the creation of a custom rule.
I would like to show a button on some content type, this button called a list of other content called "guide". I list these contents (guide) in a ...
0
votes
1answer
48 views
How can I add my field of his type of material to be used in the rule
I need to compare two different entities in the field after the update term.
Event: "After updating existing term"
One field is in the drupal commerce product, the other in a term. With the help of ...
0
votes
3answers
25 views
On content update email referenced users - Drupal 7 Rules module
I feel like I am almost there but I am running into a problem.
I have a contenttype called projects with some users assigned to each project node. When a project node is updated I want to send a ...
0
votes
0answers
20 views
Little problem with sending mail using rules
I have a rule with sending mail to the admin mail, the mail sends but the from detail shows like this:
=?UTF-8?B?2KXYr9in2LHYqSDZhdis2YXYuSDZgtix2LfYqNipINin2YTYs9mD2YbZig==?=@[my domain] ...
1
vote
0answers
14 views
Rules - Set data value - terms are overwritten
I'm using the Set Data Value action to set a taxonomy term for a user. The tag field exists in the user entity, and is set to "Unlimited".
I can set the term, but if there's another term set already ...
0
votes
0answers
27 views
Rules email notifications and Users
I have a User field type of 'List (integer)' storing a list of nodes the User has subscribed to i.e. Forum items.
I need to setup a notifications like rule to email all users that have subscribed to a ...
0
votes
1answer
36 views
How can I use Rules to publish nodes depending on changing the value in a Field?
I would like to set up rule to detect if I change one specific field in the content type. For example if I choose the field "dyzury", then the rule will publish this node to the front page with the ...
0
votes
0answers
12 views
Inject (Pre-populate) Node Field Data into Node Page View Via Rules
I'm using a combination of Rules Link, Rules & a custom Page layout (via Panels) in Drupal 7.2x to create a submit process for a logged-in user. I hoping I'm on the rights track, but seem to have ...
1
vote
2answers
17 views
In Drupal Commerce - Rules configuration. What is the default operator in the conditions section?
I'm setting up Drupal Commerce in the checkout Rules section. But this question also applies to any Rules.
Currently I have 3 conditions in my rule set. By default what is the default operator in ...
0
votes
1answer
20 views
In Drupal Commerce, on what page does this order status fire? When an order is first paid in full
I'm currently setting up my Drupal Commerce checkout Rules and came across that you have setup your own Paid Status on payment sucess. By default Drupal Commerce only updates the status to PENDING.
...
2
votes
1answer
22 views
content type showing as link but not in “node_type” table
In the development of a Drupal7 site, I have used various methods of creating profiles for customers of the site. One of the methods involved using a rule to create content for user who creates an ...
-1
votes
3answers
116 views
How do I schedule a reminder email with Rules to users that have flagged an event?
I have a content type: event
It has a single date field: date
It has a flag on it: reminder
When the user flags the node, I want to schedule a rule to send them an email the day of the event.
...
0
votes
1answer
40 views
Drupal user points and commerce
I have 3 products: A, B and C. After the user buy the product A, I want to give the user 5 points, for B 10 points and C 20 points.
How do I do this with rules?
1
vote
0answers
24 views
Drupal 7: VBO and Rules Component to update Node fields
I have a content type called 'Course' with subpages. In one of the subpages, a view is displayed. The view displays the node information of content type 'Learning object'. By Views Bulk Operations, ...
1
vote
2answers
37 views
D6 - Rule to simply redirect path to login
Currently I'm trying to add create a rule that simply redirects anyone from /node/add to /user/login. It's intended to be part of a larger rule, but I'm having No luck with this
Steps of the rule are
...
0
votes
0answers
14 views
How to add a new item to Rules data selection
On Drupal 7, I need to add an option to Rules data selection and I would like some directions on where should I "put my hands". So here is my usecase:
I need to set the value of a node field with a ...
1
vote
3answers
37 views
How to check whether a username is in use?
I'm currently trying to implement a function to check if a user already exists. I've read that this could be done by Rules whit the condition "Entity exists by property" but I can't find it anywhere. ...
1
vote
0answers
17 views
Deduct from a tax!
I want to manually check some info about the customer and after that with a checkbox to apply a tax or not, by default I apply it.
I created a boolean field on the order, then created a rule on the ...
1
vote
1answer
34 views
Compare user field
I would like some help with the following issue. In Drupal 7, I want to activate a newly registered user when his email id is saved in a content field.
I have created a content type email. Now ...
1
vote
2answers
22 views
How to prevent actions using Flag (or similar) module?
The Goal: I'm trying to setup functionality similar to a library with downloadable files. Only one user can download a file at a time.
The Solution: Use the Flag module.
Open to suggestions but ...
0
votes
0answers
37 views
Can I still use Rules to send “CC:” emails or am I going to have to do everything as a custom module?
I am currently using the Rules module along with workbench to determine when to send an email and this is working fine.
The problem is now the client wants to in addition to sending email to the "To:" ...
0
votes
1answer
33 views
How can I trigger a rules event by code ?
I'm using Commerce for the website I'm building right now.
I want to trigger the event "Calculate the sell price" after an order is updated to a status, I made one called "Approved".
The reason I ...
1
vote
1answer
31 views
Spam users and rules
I'm getting swamped by spam users. Can I use rules to automatically delete users that 1) don't have content/comments, 2) have never activated in a few weeks, and 3) have only activated the same day ...
0
votes
1answer
18 views
Set all boolean certain fields to 0 if 1 with rules
I'm trying to reset all field_flag fields of all terms of a taxonomy value, where field_flag is TRUE (or 1).
Does anyone know how to do that?
Maybe some more back-story: I have a rule that gets ...
2
votes
1answer
35 views
Rules in Drupal 7: EntityMalformedException in custom PHP
I used to run successfully the following custom PHP code in rules before a node is stored
$update_node = node_load($node->nid);
$lat1 = floatval($node->field_geo["und"][0]["lat"]);
//SOME MATH ...
1
vote
1answer
31 views
How do I change value of a boolean field on a node when a user clicks a button?
I am building a small site for a friend who is getting married and they have their gift list online. Each gift is a node which I am thinking will have a boolean field called something like "bought". ...
1
vote
1answer
62 views
Block Node Access After A Certain Amount of Views
I've come across a client requirement in Drupal that is very new to me.
The website is subscriber based, so users pay to subscribe at which point they are granted a subscriber role. They then have ...
0
votes
1answer
54 views
Rate module and rule integration
I don't fully understand how the rate module integrates with rules.
I'll try to recreate the situation:
1) I created a widget of the type: Number up / down widget which allow users to vote in nodes ...
1
vote
1answer
35 views
Limit taxonomy terms display on hierarchical select
I need to limit the taxonomy terms visible in a field type 'taxonomy term' using the module 'hierarchical_select' when creating a post.
There is a way to do this?
I have a vocabulary called ...
0
votes
0answers
34 views
How to create a new user with rules and set data value for his profile (profile2)
I have a problem when i use rules, webform and profile2 on drupal 7.x.
I want to create a new user after the submission of a webform and set data on custom field that i made on a user profile with ...
0
votes
1answer
29 views
Control content access based on field value in user profile?
I have two specific user types on my website: "Manager" and "Employee". I will have ten managers and 100 employees. Each Manager will manage 10 employees.
Employees will have permissions to create ...
1
vote
0answers
92 views
How can I get a relation by the endpoints using the “Fetch entity by property” action in rules?
Short version: I want to fetch a relation by the endpoints. The relation already exists in the database. How can I use the Fetch entity by property action to return the relation?
Long version:
I'm ...
0
votes
0answers
31 views
What´s wrong with this rule that doesn´t send any email? (it´s a drupal commerce rule)
Use case: (D7) I want to send an email if a particular field doesn´t have a specific text in it.
The field in question is a Drupal Commerce customer-profile called field_envio_mail_1. That field ...
0
votes
2answers
27 views
Rules offset with a fixed time
I'm trying to set data value for a date field. The value is 7 days after a node was created. This works fine but I would like to have a fixed time of 6pm as the time value. Currently the time is set ...
1
vote
1answer
23 views
Can users disable email notifications sent to them by Rules?
One of my Drupal sites has a bunch of Rules set up to send email notifications to various roles when certain things happen on the site (new content added, etc.)
Is it possible for one of the site ...
0
votes
0answers
20 views
Shipping conditions based on zip code in Ubercart 3?
I'm not sure if I am just overlooking this or if this feature is not available in Drupal 6 / UC 2... I am working on a D7/UC3 site, and I want to set up a flat rate shipping method that should only be ...
1
vote
0answers
33 views
hide a field using custom php in rules
Drupal 6 only: I have a button field on a petition node for users to sign that petition. I have custom php in a rule to check if they've signed it before. If they have, I need to hide the button.
So ...
1
vote
0answers
22 views
How can I make Rules react to `User has logged in` when user logs in through CAS?
I want to execute some php code when users log in, so I'm experimenting with the Rules module. I have it configured to fire a function of mine when a user logs in and it works fine, but it only works ...
1
vote
1answer
42 views
Rules replacement pattern for image type field
I am using Rules and HTML mail module to send HTML email on various events. It is working fine, but I am getting problem in rendering image field(ie image) in email template.
I have field ...
0
votes
0answers
27 views
Create a Launchrock type signup homepage on drupal 7
There are some pre-distros available on drupal.org such as Coming Soon, but I would like to be able to create my own custom which utilises the UC Affilate system (as I intend to use UberCart for all ...
0
votes
1answer
28 views
Scheduling review of content
I have a content type that includes a date field called expires. I'd like to set up some way to monitor all nodes of this content type and if the current date is close to the expires field value, ...
1
vote
0answers
109 views
Drupal 7: how to rewrite rules replacement patterns programmatically
i try to create different rule conditions or actions and need to rewrite different replacement patterns. for example:
defined replacement patterns:
[loaded-points:value] [vote:value]
i want:
if ...

