Search in group Search
how to send customized mails depending on the value of a field with the rules module
i was wondering if i can use the selected value of a drop box or optiongroup to make an automated customized mail for my clients. For example i have a drop box with the following options:
price (drop box or option group):
a) 10 $ for 10 days
b) 20 $ for 20 days
c) 30 $ for 30 days
Mail Verification for anonym Webform Submission with Rules possible?
Is it possible to realize a Mail Verification for anonym (not registered users) Webform Submission with Rules and possibly in combination with other modules (Drupal 7)?
Read moreRedirect url for views with pager
Hello,
I'm trying to make comments to work with nodes organized in views (need navigation, filtering, etc).
The goal is to prevent comment submit to redirect to original node, but to a page of a view from where the comment was submitted.
The url of views is complex, and I have no idea which expression to put in Rules to get this to work. Redirecting isn't a problem in its self, but I cant find any documentation about complex views url variables.
Thanks in advance.
Read moreHow to restrict content creation of a specific type with user post quota
Hello,
Still a bit new to Rules, but I have been looking around and checking the documentation and API for the solution to my problem; still, I am quite lost as to where to begin, how to proceed.
So, all I want is to restrict, for a particular user role, the creation of nodes of a particular content type, by a quota. I want to count how many nodes of that type the user currently has. And say, that the maximum amount allowed for that user is 5, and he/she already has 5 nodes of that type when he/she tries to create a new one, negate the creation of the node.
Read moreMy condition parameter's 'optional' and 'default mode' options not having any effects?
Coming from a previous problem, I finally decided to just code my own condition, and the condition is working properly so far. Except for one thing, that is. There is one optional parameter I would like to add to my condition; basically, I'd like to let the user specify the content types he/she would like to restrict, if any. So, my condition function is as follow:
<?php
/**
* Implementation of hook_rules_condition_info().
*/
function nodecount_rules_condition_info() {
$conditions = array();
$conditions['nodecount_rules_condition'] = array(
'group' => t('Nodes'),
adding value(s) to user reference field
Hi,
I need a hint how to solve this:
In their profile, my users can select other users via a user reference field. By doing this, the selected users get the permission to set a reference to the users profile. This works well and is said here only for explanation. But additionally I want to define a rule, triggered when the node is safed, with the following action:
- all users of a specific role are added to the user reference field of the safed node
Is there a simple solution to do this? Or do I have to use some php? If yes, what would it look like?
Thank you for advice!
Sven
Using Rules to Update Content
I have users with 1 node of content type A and one of content type B - they can not create additional nopdes of these types.
When fields in node of content type A are updated, I need to update fields in the node of content type B automatically.
It looks like I can trigger an action in Rules when node A is saved, but could anyone suggest how I should copy the data to the required field in node B?
I've looked at the Reference, Node Reference and Entity Reference, but can not see how these will enable me to copy the fields.
Read moreAutopopulating the date field
The Goal: Clearing the date fields (From:, To:) previously set by user in his content profile, if the current date is greater.
On our site users set their "absence" in the date field in their content profile. We would need a rule that would clear this field after that absence time.
We use drupal 6.
How would you aproach this? How can I get a rule, that will check all the users content profiles?
Many Thanks!
Read morethe one-time-login URL versus my redirect-after-login dilemma. Please help
Hi,
I had a user run into this the other day: normally, when a user logs in, I redirect them to a landing page with relevant items on it. Works fine unless the user forgets their password, at which time they get the link to log in one time then ...
they are redirected to the landing page I have a rule for.
It seems as though I have to add a condition, though my attempts so far have failed. What is the right way to create a rule that says "anytime someone logs in from the one-time-login page, don't redirect them to the landing page...let them pass to the change password page"??
Read morePreview for Rules
Hi experts,
We are using rules extensively and it works great for us. We have several rules sending emails on node insert, update and delete of a certain content type, depending on various conditions and settings of the fields of this content type.
The issue we are having is that the operators of the service (website) would like to know in advance which emails will be sent when they press the 'Save' (or 'Delete') buttons, i.e. similar functionality as the 'Preview' button provides for checking how the post would look like, prior to saving.
Read more