Rules + Features help (Rule is reverting with hook_default_rules_configuration but not saving)
Hi all
I have a exported feature, and I've created a "mymodule.rules_defaults.inc" with the following (which I built by configuring the rule then exporting it)
function mymodule_default_rules_configuration() {
$items = array();
$items['get_quote_from_flatrate_8'] = entity_import('rules_config', '{ "get_quote_from_flatrate_8" : {
"LABEL" : "UK Flat rate conditions",
"PLUGIN" : "and",
"REQUIRES" : [ "uc_order" ],
"USES VARIABLES" : { "order" : { "label" : "Order", "type" : "uc_order" } },
"AND" : [
Need a Rule for 2 users that flag each other
Hi. If this isn't the right place to post this, please let me know.
On my site, users can flag each other. When 2 users flag each other, a match is made. I would like to be able to use Rules to send an email to both users when a match happens. I'm having a hard time figuring out how to set up this rule. Any help/guidance/direction is much appreciated!
Thanks!
Read morehelp writing a rule to add a purchased file to customer account after payment received - drupal 7 and ubercart
I have found a problem after an upgrade from d6 to d7. When a user buys a file download, the files are not ascociated with their account even after payment is received, and I can't figure out how to write a rule for this to happen. I thought something was wrong with the download email not going out at first but this is the thing that's missing for me.
using ubercart / drupal 7
Read moreHow to identify if a user has 'clicked' the edit tab of an entity (as opposed to the view tab/page)?
Hi everyone
I've looked everywhere and cannot appear to find an answer to a problem I have and was hoping that someone might be able to advise.
To cut a long story short Profile2 permissions do not appear to be working properly whereby if you want a certain profile to exclude an authenticated user from being able to 'edit' the profile and only 'view' this is not possible (basically permissions only appear to work for Admin) - [for those that are interested please see http://drupal.org/node/1954290]
Read moreRules + flags
Hi guys.
I got an issue. I got 2 content types. Place and Event. Events using 1 field with Place name. People can bookmark Places. So the issue is. I want to make a rule on event: After saving a new content, to send an e-mail to user, who bookmarked the Place with new Events of this place.
Add and assign Taxonomy terms when a node is updated
Hi guys, I have to wrote to you because i'm becoming crazy, there are 2 days who I'm trying to add a taxonomy term to a node without luck.
Scenario:
I'm using a content type called: Place.
This content type own a field location (from location module) who has 2 values: street and city.
When a user compile these fields the GMap module make a google map with a marker.
When a node is saved i can access city and street using
print $node->field_place['und'][0]['city'];
print $node->field_place['und'][0]['street'];
Textual Comparison not working when I search for <img tag in node body
I have been trying to create a trigger so that when someone updates a page node by inserting an image into the body it will send me an email. So, in other words, I want the trigger to act (send an email) if it finds an img tag in the body of the updated node.
Event:
After updating existing content
ON even After updating existing content
If
Two texts to compare:
Text1:
<?php
print $body;
?>Text2: /<img/gi
**I have evaluate text2 as regular expression checked. Read more
Help with accessing data in rules..
Hi,
I am having a hard time getting the information I need into a rule in order to perform a calculation.. Hopefully I can explain it well and someone has a suggestion..
I have three content types.. For simplicity we will call them "A", "B" and "C"..
"A" is the main one and "B" and "C" each have a node reference back to "A"..
Read moreComparison rule - taxonomy terms
Hi all, hoping I can get a bit of help with something.
I have a taxonomy (call it category) that I have added to both the node and the profile (user). On the node, a single category is required. A user can be assigned to multiple categories.
I have a rule triggered by workflow state change. I would like to add a condition that compares the node's categories with the list of categories on a user, and proceed if any of them match. I can see that this should be possible - via data comparison or the "in list" option, but I can't get it to work.
Read moresetting Entity Reference with VBO and Rules, help needed
I migrated my reference module to the Entity Reference module and now i see we lost all the references to the nodes and since there with so much, i was thinking about doing it with rules and VBO.
We have the following content types that needed to be linked:
Album
Band
Album has a node reference field that links to a band-type.
Read more