rules

Create node and copy fields

I have two content types: Request and Response. When Request reaches a certain state in its Workflow, Response is created. At this point, some fields from the Request are copied to the Response. The field types include Integer, Text, File, Date and User Reference. I can see two potential solutions here:

1) Create a node of type Response and copy the field values there.
There is an Action that creates a Node. But I could not find an easy way to copy the field values into this new Node.

2) Clone Request and convert one of the copies into Response.

Login to post comments · Read more

Populate revision information field on edit

Our content contributors are not very good at populating the revision information field (Drupal 6).
On node edit, I would like to auto-populate a revision field with the editor's user name.
As an alternative, I have looked into Views 2 but it is not clear how I can retrieve the user name of the last person to save a node.

How would I go about implementing such a rule in Rules?

Login to post comments

Modify the Theme after the user login or set user default theme on registration. How to?

Hi,

I am new to Rules.

I would like to change Theme after the user login. In my web site, the user cannot change the theme.

In my mind, I have two choices:

1) Modify the Theme after the user login
2) set user default theme on registration.

Could this be done by Rules? We all know that we have the trigger "after a user login". Therefore, my main question is how to create the Action? Is it a must to write some PHP code?

Thanks.

hosais

Login to post comments

create trigger for rules to publish when user is added to group

Hi there,

I'm trying to do something that i thought would be fairly easy using rules, which is:
- publish a users content when user has role 'paid_member'. I cant use any on the existing triggers (such as 'on save new content) as they rely on the user clicking on the page to make the publishing process happen. To go with this i would need to create user driver triggers such as 'when saving new content' and role = 'paid member' then publish otherwise any new content they create wont get published.

Login to post comments · Read more
arphaus's picture

Can Rules be used for gradual content delivery on a per-user basis?

I'd like each member of a site to receive access to nodes of a specific content type based on their length of membership. For example, I have 4 nodes of content type X, and I'd like members to access them in 2 week intervals, like so:

Day 1: Member A joins, sees node #1
Day 15: Member A sees node #1 & #2
Day 29: Member A sees #1 #2 & #3; Member B joins and sees node #1 ONLY
Day 43: Member A sees all 4 nodes; Member B sees node #1 & #2 only

5 comments · Read more

Use rules to block specific field entries?

I'm fairly new to rules, but I've used it successfully to add a ton of great features to my site -- great module!

Now I'm trying to figure out if there's a way I can use Rules as part of a reservation system I created. Basically, I'm trying to create a rule that will disallow users from reserving equipment on a date if someone else has already reserved the equipment for that date. Is this possible with rules? Any ideas for ways I might test it out?

Any help is much appreciated. Thanks!

Login to post comments
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.

Login to post comments

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?

1 comment · Read more

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.

1 comment · Read more

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?

4 comments
Syndicate content