rules

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

Userpoints, Rules, and Taxonomy (Oh, My!)

I have been trying to use the Rules module to grant points to a user based upon the taxonomy term used for organizing points. I have been successful at granting points to the user but it always adds the points to the first term in the vocabulary and no matter what order I load the user id and term id into the rule, it always seems to ignore the term id.

I assume I am doing something completely wrong and am hoping someone can point at me and say: "Did you click the, blah blah?" Any help would be awesome, thanks!

If I solve it, I will post back here.

Read more
silkyD's picture

Removing Completed Tasks

I'm new to Rules, and haven't been able to figure this out. I'm sure it's quite obvious, so maybe someone will be able to help.

I have a basic rule that alerts users of a certain role to the creation of a specific content type. Everything works great, except the task doesn't seem to remove itself after the first message is sent. It just sits there in the scheduled task queue. Now it seems that every time cron runs, the original message is resent to the users.

How should I go about removing the task after its been completed the first time through?

Read more
adetoyan's picture

A little help PLEASE

I'm trying to get my head wrapped around the rules module and I've been searching for clues for 2 days now.

Scenario
I want to create a membership website that sells time based information
To bring prospective customers to the site I would like to show them information that our subscribers had access to but is no longer useful
That way they can see that at the time the information was published it would have been useful to them
I'm thinking the way to go is taxonomy by tagging the subscribers content as subscribed and the free content as free.

Read more
binford2k's picture

match an empty field

I am trying to write a rule to match an empty field and am not having much luck. I've tried about everything I can think of, including some very inventive regexes, but no luck yet. Anyone know how to accomplish this?

Read more
Levi DeHaan's picture

Using Execute PHP to set Permissions in TAC


require_once(drupal_get_path('module', 'taxonomy_access') . "/taxonomy_access_admin.inc");

function tgtbn($name) {
$db_result = db_query(db_rewrite_sql("SELECT t.tid, t.* FROM {term_data} t WHERE LOWER(t.name) = LOWER('%s')", 't', 'tid'), trim($name));
$result = array();
while ($term = db_fetch_array($db_result)) {
$result[] = $term;
}

return $result;
}

$srch_name = "".$author->name."-".$node->title."";

$roles = _user_roles();
$role_id = array_search($srch_name, $roles);

if(!is_numeric($role_id)){echo "role id is not a number";}

Read more
henrijs.seso's picture

sql query in/as condition

I am looking for a way to use sql query in condition of rule - if sql query returns something - proceed with rule, if it returns nothing - skip rule. Can anyone suggest way to go in this case? Thanks.

Read more
cameronheikkinen's picture

Rules Module with LDAP Integration Module

My Scenario: I have a triggered rule set up with an Event type of "User account has been created." The trigger has a condition of "User has Role." The argument is a "registered user", and the role is a "teacher."

I also have ldap setup to allow the teachers to login.

My problem: when a teacher first logs in (for instance), they are in the correct group according to LDAP, but the "User has Role" inside of the rules module doesn't recognize this, therefore the trigger/action never happens.

Read more
wb54321's picture

Trying to automatically unpublish content based on CCK date field, Rules and PHP field values

I am building a web site using Drupal 6.12 (plus the most recent stable releases of token, CCK, Rules and views) and am trying to create a rule that automatically unpublishes content based on the cck date field (generated by the Date API 'date' sub-module).

Read more
crea's picture

Workflow information in Panels

I searched for this kind of features, but haven't found any suitable solutions. There is need to display workflow state information and instructions at node page. Ofcourse, there is wonderful Rules module, and I could use it's "show system message" action. Hovewer I find using Rules with Panels is too embarassing: event "content is going to be viewed" is not fired at all, and "user is going to view page" has too few things to work with. To use Rules for this, one would have to use too many PHP, which I think is killing the purpose of Rules

Read more
matias.quaglia's picture

Rules Scheduler options not appearing in Rules Sets

Hi!

I am pretty new to rules.
What a great module!
Is helping me to solve quite issues I had for a webiste workflow, so many thanks to you!

I have a question... I want to create a Scheduled Rule Set to happen once a day, in certain time, to publish and unpublish certain content types, and also send some notifications.
So, I can set up the necessary rules from Administer / Rule Sets, but once I've donde so, I need to set up a Schedule to do it.

Right now, I'm not able to see how to do that in Rule Sets, I think I am missing something...

Read more
Subscribe with RSS Syndicate content