Search in group Search
help 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 moreNeed 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 moreRules + 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" : [
Rules and Token Conversion Issue
Notice: Array to string conversion in RulesTokenEvaluator->evaluate() (line 203 ...)
I have the following code in a computed_field, its saving the values correctly and showing it in the display without issue.
$participant = array_pop(array_pop(field_get_items($entity_type, $entity, 'field_activity_participants')));
$email = db_query("select field_broker_email_email from field_data_field_broker_email where entity_id = :entity_id limit 1", array(":entity_id" => $participant))->fetchField();
$entity_field[0]['value'] = $email;
In my Rule I have the token for the field set as follows:
Read moreCan't set data value using a filename
I am trying to set the data value of a text field using the filename of attached image but I can not figure out how to do this. I can access the fid and many other values but not the filename.
this works
print $node->field_photos[$node->language][0]['fid']; this does not
print $node->field_photos[$node->language][0]['filename']; Any suggestions?
Thanks
Using VBO to change workflow state at cron maintenance
Hi,
I wanted to use a triggered rule with a VBO action to change a workflow state on some contents of a content type depending on the time the action is being executed.
The view works well when I execute it as authenticated user (I must be authenticated with a proper role because corresponding contents are not public).
But, when the action is called at maintenance cron runs, no user is logged and no content can be changed !
Using rules to disable flag access
Hi everyone. I'm a beginner on drupal and I'm building a site with booking management with rules and flag module. I met problems when implementing booking function,which disables flagging to user roles on specific node(content type) when exceeding limitation. Actually I have two plans, one is to hide the flag link, the other is to remove flag access on node with user roles, but I can't make either with actions provided by rules. Any suggestions? Of course not to implement the hook_flag_access() :(.
Read morehow can i get returned values from rules_invoke_event_by_args ?
Hi i have created my own events and actions.
I am invoke Events programmatically and when the conditions are met i want my actions to return some sort of value to the invoker function.
to trigger the event i use
rules_invoke_event_by_args();
this can be done with some global parameters.
is there a cleaner way of doing it with rules.
Cheers,
avinoam
varios rules to rule set
Hi there, I need some help to get the proper set up working as needed.
I use Field formatter conditions, Rules and ImageCache Actions to set an image overlay when a node belongs to certain term ... That works just fine.
However, I need to set different image overlays for different terms and not sure how to accomplish this.
Read moreSetting 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
