Search in group Search
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.
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
Read moreModeration email
hello
Thanks for great module. I have small question because I don't know if this is possible to do with rules.
So what I would like to do.
So I have some kind of content type where registered users can add new node. But I would like to do 3 things with this
1. Show a message for the user that his/her node is added and wait for moderation.
2. Unpublish this created content
3. Send an email to moderator with information who and what added and with links to moderate actions like
Publish node - Edit node - Delete node
Replacing workflow modules
I currently use workflow as part of publishing workflow. A user can keep a node "unpublished". Its drupal status is published but has a workflow status "unpublished" to make sure it does not show.
Now workflow-NG is suppsoed to be successor of workflow and rules are supposed to be successor of workflow-ng.
Rules >> Triggered Rules >> Check the Content has Access (example: book access, forum access)
As the title suggests, I am trying to use the rules module to check Access Control.
Read moreAccessing CCK field in Execute Custom PHP Code
Hi everybody,
Here's what I'm trying to do: When the user submits a custom CCK content type (Newsletter), I have a rule setup to access one of its fields (field_pdf, a path to the associated pdf file), and generate a thumbnail from the file's front page. Here's what I've got so far:
Event: After saving new content
IF: Content is Newsletter
DO: Execute custom PHP code
However, in the PHP Code block of the Execute Custom PHP Code page, it is not obvious to me how I reference my content's field_pdf variable.
generateThumbnail(?????????);
How do I access that field?
Read moreA Issue in displaying the data while using Rules - Module
Hi,
I am using rules module to set a trigger for an action with "Execute Custom PHP code" My code
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?
Read moreCreate 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.
Read moreAssign values to individual elements of multivalued field
How do I assign values to individual elements of a multivalued field with Rules? I know how to assign a value to a single valued field with the "Populate a field" action. This does not work for a multivalued field, as I want to assign a value to specific fields in the array.
I tried to use custom PHP code following the suggestion under the code entry box:
Expected format:
return array(
0 => array('nid' => value for nid),
// You'll usually want to stop here. Provide more values
// if you want your 'default value' to be multi-valued:
1 => array('nid' => value for nid),