Search in group Search
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.
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 moreRules 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 moreRules 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 moreRules 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 moreShow 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 moreHelp: 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 morePrevent 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",
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 moreRules components running other components..
I need to create a situation where a rules component is scheduled to run on certain nodes selected from a VBO view on a certain date, the component then runs another component as part of it's actions..
So in other words..
VBO View schedules Component 1 for a certain date..
On that date Component 1 runs and executes its actions and executes Component 2 which executes its actions..
The issue is that the Component 1 is running but Component 2 isn't..
If I execute Component 2 manually it works fine so the component is working..
Read more
