All Questions
28 questions
0
votes
1
answer
1k
views
How to make the permissions of a module more granular?
Assume a (contributed) D7 module, say module ABC, comes with only a few permissions (which can be set on the typical /admin/people/permissions page). For example:
Administer module ABC.
Access (view) ...
2
votes
1
answer
1k
views
Rule to store user's last post date and scheduled rule based 30 day reminder
In this scenario, user's can post 1 node of a specific content type every 30 days (interval changes depending on user role). We are using node_limit to accomplish this; it's doesn't play with rules.
...
2
votes
1
answer
347
views
Which user related token(s) can be used to create a Rule for setting up a message type?
I have created few activity logs using the Message module. All works ok, but when I try to create a message type for example "username started following you on github". When setting up the rules for ...
8
votes
4
answers
2k
views
How can anonymous users be allowed to post while still maintaining content integrity?
A little background: As you see on http://charlotte.ebayclassifieds.com, if you click 'post an ad' and then choose a category, you can fill out the form and submit content without having to sign up. ...
2
votes
1
answer
847
views
How to revoke edit access to the node's author after publishing a node?
I am trying to build a new rule on Drupal 7 with both the Rules and Content Access modules (and its sub module Content Access Rules integration). Thus, I get new actions like "grant or revoke an ...
3
votes
2
answers
504
views
How to implement a Rules Condition like [account:last-login] = never?
Here is my contextual explanation:
I would like to redirect on a special page for first time after login. But registering system is using an email validation, so the path to the first login is "user/...
0
votes
2
answers
1k
views
Send user a reminder email after x-number of days if Profile2 field is empty and user has specific role
I have a multi-step user signup process. When the user creates their account, they are assigned role "A" and are redirected to a Profile2 form with various fields. If they complete and save their ...
7
votes
2
answers
5k
views
Disable editing of a node after it has been published
Scenario:
A user can create a node (content type "story"). All story nodes that are created are unpublished by default.
I have a boolean field called "publish my story". Once this has been checked ...
5
votes
1
answer
5k
views
How to create custom rules action event conditions?
Is there any universal formula or module to create custom rules actions, events and conditions? So that I just have to replace the required values and rest of the code remains the same. I searched, ...
3
votes
2
answers
146
views
How to login-redirect users to their profile page on specific days only?
By using Rules Once per Day module, logged in user would be redirected to profile page on specific day. My issue is, every time when user logged in to the site, the user is redirected to profile page.
...
1
vote
2
answers
726
views
How to grant permissions for some role to execute custom Rules Components?
I created a view (table) and i asociated views bulk operations. I created 4 rules components. I have permissions only for user/1 (admin). Another user role (eg. editor) can't see these options. "...
-2
votes
3
answers
498
views
How to create a rule to email all users with a profile field X with same value as the current-user?
I'm using Drupal 7.57 and I have 2 roles in my website, role X and role Y.
I want to compare a field (field_code_postal) of the X member profile of the current-user, with the fields (...
6
votes
2
answers
459
views
Which user does the Rules module execute as?
I've set up a rule which is triggered by "after saving a new user account". This rule simply sends an e-mail. The e-mail contains various tokens, one of them is the field [account:field_country].
I'...
5
votes
1
answer
869
views
How to show messages starting with "Debug : " to an administrator only?
I'm developing a lot of complex rules in D7 and for debugging reasons it is very handy to have different messages (the standard Drupal message) within the website. For this I use "showing a message on ...
5
votes
3
answers
869
views
How to use the Rules module to award userpoints to referring users?
I am creating a referral program on Drupal. I have almost everything working right except awarding userpoints to users. I want to award userpoints to users after the person they refer to the site ...
3
votes
1
answer
469
views
How to create a rule to assign roles to users based on some checkbox items in their profile?
I am pretty new to Drupal. I am using Profile2 so that the user can select there own user role. So say I have a profile page with some checkbox items like
Automotive
Computer
Garden
etc
How would I ...
3
votes
2
answers
3k
views
execute a php code after a user login
I see that triggers page is changed from the version 6, It's pretty wierd..
I can't find When user logs in execute a php code thing...
What I have to do is exactly that..
control some user roles ...
2
votes
3
answers
1k
views
How to create a view of all recent activity on a site?
I want to create either a view or a module (preferably view) to display all recent activity on the site such as a new user joined in, a user read some article or blog, a user gained some points and so ...
2
votes
2
answers
725
views
How to prevent users from being registered when their username contains a space?
I'm trying to prevent a user from being saved with Rules when he/she tries to use a username that contains a whitespace. I've already read How can I disallow spaces in usernames? and used the User ...
1
vote
1
answer
44
views
How to display a Rules Link only if access to display the linked content was granted?
I'm using the Drupal Commerce 7.x, Rules Link, and Content Access modules.
In my site Classified ads can be created, and then people can use credits (via User points) to pay for unlocking "contact ...
1
vote
1
answer
239
views
How to access node properties of another node using the Rules Link module?
I wonder how to access node properties via another node with Rules. I already store the link of my other node in a field (of the original node), but I don't know if we can do that.
I'm using the ...
1
vote
1
answer
94
views
How to create a rule to flag users when they're approved as a Trusted Contact?
I need some help with Drupal Commons (7.x-3.46), Trusted Contacts (one of its modules), and Rules. I need to create a rule so that whenever a user is approved as a trusted contact, the user is also ...
1
vote
2
answers
493
views
Spam users and rules
I'm getting swamped by spam users. Can I use rules to automatically delete users that 1) don't have content/comments, 2) have never activated in a few weeks, and 3) have only activated the same day ...
1
vote
1
answer
578
views
emailing users in user reference field with rules
I am working on a site for an academic conference. Right now, we have two content types (1) proposal and (2) peer review. In the proposal content type, an author can add multiple presenters to a user ...
1
vote
2
answers
88
views
Why can my view not access the data of a new node when using Rules event After saving new content?
Using the Rules module and Drupal 7, I set up a rule "After saving new content of type X".
This is what I want to happen when adding a new content of type "X":
Based on its nid, call a view, which ...
1
vote
1
answer
313
views
Send email with profile2 fields with account email token in rules
I am trying to send an email to users contains information they put into their profile2 fields when they registered on the website.
My problem is that their is no email field token available in rules ...
1
vote
2
answers
6k
views
How to force users to logout after X minutes of inactivity using Rules, Views?
How to force users to logout after X minutes of inactivity using Rules, Views or any other popular module ?
update 2012-01-27
Where can I find an example how to do the forced session expire using ...
0
votes
1
answer
1k
views
"Fetch entity by property" for users that share terms with new node
I have a content type of RFP that has a term reference field named "RFP Categories". The users also have this same term reference. When I publish a node, I want to email all users who selected a ...