Search in group Search
Associate user with multiple nodes using VBO
Hi, all- I am fairly new to Drupal and very new to rules, and I am facing a problem I am certain others have faced. I need a way to update a user field on multiple nodes in one submission, on Drupal 7 using the latest version of Views Batch Operations ("VBO"). VBO can easily do this for the "author" property - that appears to be a built-in drupal action. But if I use Rules to assign a user, I don't get the nice User field drop down list with a choice of all the users like the Change Author action does. Instead I get the "Set Parameter window with various data selectors.
Read moreCreating new actions not working properly D7
Hello everyone,
I'm trying to create a new action to generate a password. Seems easy, but I can't get it to work.
Read moreHelp with a list of conditions
My rule is that when a user is updated, the email domain must contain @domain1.com, @domain2.com, etc in order to become upgraded from Provider to GoldProvider. I've been trying to use the function AND without success. Can somebody tell me where and how do I need to add the additional domains?
thanks,
{ "rules_provider_upgrade_to_gold" : {
"LABEL" : "Provider upgrade to Gold Provider role after update",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules" ],
"ON" : [ "user_update" ],
"IF" : [
D7 Add rule when admin approves and assigns user role
I was wondering if any one here might be able to help. I am using userpoints module on D7. My site requires admin to activate users. I wanted to create a Rule that would assign points to an account when admin specifies the role level. So, Level 1 would get 1 point, Level 2 get 2 points, etc.
I hope this is the right place.
Read morePossible to use relative date in Rules?
Hello,
I would like to use the Rules module to automatically assign users specific roles, based on the user's current age. I have set-up a custom date field during the user registration process (field_birthdate). I also have created a rule that is executed every time the user logs in.
However, I'm having trouble using relative dates (i.e. field_birthdate + X years) in the data comparison condition. I receive an error message (The integrity check failed with the following error message: "condition data_is: Missing configuration for parameter data.").
Read moreStop system message on create node
I've put together a rule that sends an email on a create node for a specific content type and this is working correctly.
However, I would like to prevent the standard message for a node create being displayed and set one of my own.
I've tried adding an action to "Execute custom PHP code" with the following in it:
<?php
drupal_get_messages('');
drupal_set_message('My message in here','');
?>The result is that my message is displayed as well as the standard create node message in the form " has been created."
Read moreLogin script triggers never-ending looping
Hi!
I grabbed the "Node Access Control with Redirect" script from "http://drupal.org/node/1170470". I am using it with Drupal 6 and have applied the variable patch from "http://drupal.org/node/932460". Problem is that this will cause the redirect to loop endlessly. Checking the debug log I can see that everything seem to run fine except that the conditions-actions sequence goes on forever.
Any clues?
/Jon
Read moreAction: Display Image?
I'm trying to display an image as part of an Action.
Is my best bet to use Execute Custom PHP Code, and then do something like this:
<?php
$imagepath="phpimages/dog.jpg";
$image=imagecreatefromjpeg($imagepath);
header('Content-Type: image/jpeg');
imagejpeg($image);
?>Thanks!
Read moreHow to add multiple groups to a content's audience
This is basically a repost of http://drupal.org/node/1254662, but hopefully with a more Rules-focused discussion.
To recap:
Here's my use case:
-
I have a group type called "team."
-
I have a content type called "game."
-
I have a a content type called "announcement." It may optionally be group content. It may optionally refer to a game via nodereference.
-
Teams register for Games via a pair of nodereferences in a content type called Registration (nodereference(team) + nodereference(game) = a registration).
D7: Page redirect after node creation doesn't work
I'm building an event calendar that accepts submissions from anonymous users - but before the submitted events are published, they have to be approved by a moderator.
I have a event content type, with publish set to default. Anonymous users have the right to create events, but can only view published content. The problem is that after an event is submitted, users get "You are not authorized to access this page.", which makes sense.
So, I've installed Rules (7.x-2.0-rc1) and created the following rule, which checks to see if the user has submitted content and has the anonymous role:
Read more