Discussions

Events happening in the community are now at Drupal community events on www.drupal.org.
technotim2010's picture

Updating three date fields from current date using Rules

Hi

I think I am more or less there,

I have a Drupal 7 Commerce site that needs to calculate three dates based upon the event of a customer buying a membership subscription product.

The basic logic is that based upon the current date (as this will be triggered when payment is received in full for the transaction) is that three user account fields are updated.
Membership Starts a Date type field
Membership Ends a Date type field
Invoice Date

The logic for the calculation of these dates can be done using php5.3's date() and relative date methods so

Read more
spessex's picture

Prevent a user from being allocated points more than once when viewing a URL.

Hi

I have a Rule that allocates a certain amount of points to a user when they visit a certain URL. However, how do I prevent them from accruing any more points if they re-visit the URL?

As background information, if the user completes a survey they get sent to a return URL which then allocates them the points. What I want to ensure is that they do not re-do the survey and then get more points!

My current Rule is:

{ "rules_ste_ls_test_1_complete" : {
"LABEL" : "STE - LS - TEST 1 - COMPLETE 22\u002F11\u002F13",
"PLUGIN" : "reaction rule",

Read more
elvin - albania drupal developer's picture

Help: create a rule that demotes nodes of a view from front page

I have this usecase that i need to implement.

I need to have only 5 nodes promoted to the front page at all times.

I have a view that lists all the nodes that are promoted to the front page WITH AN OFFSET OF 5.
This view gives me the rest of the nodes that i now manually demote from the front page.

i need to create a rule that every time i promote a node to the front page, it automatically removes all other nodes from the front page with an offset of 5.

Read more
jmkaep's picture

Show tag statistics using rules

I want to do the following using Rules.

When new or existing content item is saved and has "positive" or "negative" tag selected and a specific taxonomy vocabulary term selected

Count the total number of content items for the selected vocabulary term with a "positive" or "negative tag"

divided by

total number of entity content items for the selected entity vocabulary term with a "positive" tag

show total as percentage

Put value in read-only custom field of the selected entity vocabulary term selected for this content item.

Read more
danharper's picture

Rules and user profile fields

Im trying to build a rule that sends an e-mail when a profile field has been changed, so I have created the following rule that makes a data comparison of the fields then sends an e-mail if they have changed. The problem is that it only sends and e-mail if both fields have been changed and not one or the other, I have tried using and OR condition but this just stops the e-mail sending in any circumstance. (I have omitted the details of the e-mail)

Read more
joecanti's picture

Rules distance calculator for Drupal Commerce

Hi,

So for Drupal Commerce, Rules is used for calculating shipping.

In my case, I want to calculate shipping based on distance...EG:

0 - 25 miles FREE
25 - 50 miles £10
50 - 100 miles £25

This would require that rules takes the customer postcode, and compares it to my postcode using Google Maps to find out the distance, and then spits out the price.

The problem is I have no idea how to do this in Rules! So any help would be very much appreciated.

Magento Cart have something similar as a plugin, but I've seen nothing for any other ecommerce systems.

Many thanks, Joe

Read more
b_willems's picture

Rules email action "from" field

Hi I'm new to using Rules in D7. I'm on Rules 7.x 2.3.

I've setup a relatively simple rule to send an email to users of a specific role when a new piece of content of type X is saved.

I'm in development and testing with the site, so started off with sending the emails from the default (my primary email), but went back in and edited the rule to come from an email that belongs to the client.

Read more
paul_constantine's picture

A question if I am on the right track.

Hello all,

I don't really know if my question is right here. So I'll just go ahead and ask. I've been building a little social site for friends and family. But I am having a hard time setting up certain rules.

This may be because what I am trying to is not possible with rules. Or because my understanding of rules and the language used within isn't adequate. Anyway here it goes:

As with most social sites my site (https://www.zooot.net) is very selective about who gets to see what. To achieve that I based my whole site on "Organic Groups".

Read more
avinoama2's picture

Showcase using rules to play games inside Drupal 7

I started off with a question about a year ago.
My question was "Can I use Drupal to create a game that is playable by players”?
To build it in Drupal I had to think differently from what i used to CMS or OOP.

My most basic idea was that I will define a set of Entities that acts as my “game”.
Game – is the static game that will hold a title, description and some preset fields that will by determine by game type.
Game type – is the bundle of game and allows it to be field able.
Running game – is a running instance of the game at hand.

Read more
murias's picture

Setting data value to a list (text) field

Hi,

I have two content types they both have a field which is a list (text) field, and this field has been setup identically in both content types. As part of a rule set I am creating I need to take the value from one of these list (text) fields and set data in the other list (text) field. As experienced Rules people might know, doing this with "set a data value" gets the error "data selector (insert chosen field) for parameter data is invalid. Yet with same data chosen I can set a standard text field.

Read more
Subscribe with RSS Syndicate content

Discussions

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: