Search in group Search
Send e-mail to all users of a role EXCEPT one user
I'm sure there is a thread with this discussion somewhere, but I can't seem to find it, so sorry if it's a duplicate...
I have my site set to notify all users of a role if any users of that role post a forum topic. So if a "teacher" posts a forum topic, all "teachers" are notified.
HOWEVER, one "teacher" wishes not to be notified. Is there a simple what to notify all users of a role EXCEPT for username xyz?
Read moreAdd user to a role based on profile selection
Im trying to make two rules:
- add user to 'roleA' if they select 'term1' from a profile selection 'profile_type_business'
- add user to 'roleB' if they dont select 'term1' from a profile selection 'profile_type_business'
At the moment, i think that profile selection lists are stored as one string,
eg: term1 term2 term3 term4
and so when i create a new user and select any term, the user gets added to both roles as both conditions would return true:
return $account->profile_type_business == 'term1';
return $account->profile_type_business != 'term1';
Triggered Rules not accepting actions
I have to say this module looks awesome and is probably the most practically useful module I ahve seen since CCK. Unfortunately my triggered rules won't accept any actions I keep getting an error. "Select an action to add field is required. " I select an action that sends me to a page to select the details and then ineveitably I get sent back to the action selection page with the "Select an action to add field is required. " as an error.
Read moreHow to make a user role expire after 14 days?
Hi guys,
Sort of know how to do this, but looking for some help. Basically have a trial account role that I want to be able to have expire after a certain number of days (let's say 14 for now).
I have:
ON User logs in
AND Numerical comparison using [account:reg-since]? Is that going to do it for me?
DO Modify user roles (I think I can use this to remove a user's role, right?)
Read moreRegister or login before content is save
I'm scratching my head over this one for four days now. We've seen this everywhere. Visitors fills up a certain form but they need to login or register before the action takes place.
I am able to display an error message or redirect them to the register or login page. But what I want here is the process to be seamlessly consistent without losing the session.
User fills up the form -- hit submit -- prompt to login or register if anonymous-- user logs in or register -- content posted -- author now authenticated user redirected to the newly created node.
Read moreRules for Users/profile Quota
I'm doing some playing around with drupal and user quotas. I have a handful of test user accessing my site uploading pictures, audio, and video files. Now you now the IMCE module allows you to set profiles for users and you can have all your user assigned to a profile/group. With on of my profiles I have allowed 20MB to be used for their Directory Quota and Total User Quota.
Now is there a way I can create a rule that blocks or disables the account when the user goes above their directory quota and total user quota.
Thank
WM
Read moreAssigning a taxonomy term when published
I want to make sure that a certain content type is only visible to users with a specific role.
I've already got a taxonomy vocab called 'role requirements' and Taxonomy Access Permissions set up to do the right thing for the right roles, so this boils down to making sure that any new content of a particular type is assigned a particular taxonomy term.
I wrote a couple of rules to do this and it all works nicely except that I get an error if the user has been diligent and already assigned that term to the node. The system still works, but I don't really want SQL errors appearing...
Read moreUsing Rules to check if Fields are the same.
I am hoping to create a Property-based website which has two databases:
1. Database of Properties
2. Database of customers looking to buy a property
The database of Properties will contains information about property such as Property Age, Property Value, Number of Bedrooms etc
Each property will have its own node, and the information about the property will be stored as fields.
The database of customers contains details of the features specific customers would like in a property, with details such as: Desired Property Price, Desired number of bedrooms, Desired Location.
Read moreMy GSoC Experience
I successfully completed my GSoC project after a terrific summer and here I’m going to share my experience with the whole program and what I learnt from it.
I was very excited when my proposal got selected by the community but didn’t know where to proceed, at that moment my mentor klausi and co-mentor fago helped me; they gave me initial instructions about CVS, git/github, Eclipse and Drupal. I spent almost three weeks to understand how these stuff works. In the same time I was trying to understand Rules 2.x and somewhat entity. Rules 2.x in my opinion is a great module (fago is doing a wonderful work) with a large code base and I am also newbie to OOP, so I also thought it would take more time to trace the Rules code than actually doing my proposed stuff. But as we decided a weekly open meeting throughout the program, I got an idea about my work in first meeting; it was really a tough meeting for me to grasp. We (klausi, fago and me) discussed about whole idea with a shared google diagram.
Read moreEvent Reminder
Somebody directed me to the rules module. I am using the date and calendar modules to have group specific calendars. When creating a event I want the author to be able to set a reminder to the audience of the event. So for example, a day before the event a reminder email is sent. Can I do this with the rules module, or how else can I do this?
Read more