rules

Events happening in the community are now at Drupal community events on www.drupal.org.
tedbow's picture

Checking and Setting User Session variables with Rules

Is there way to set and check user session variables with the Rules module? I know I could this with custom php but I am wondering if there is built in way to this with Rules or a contrib module.

I basically want a boolean session flag. This will allow me to perform some action the first time a user views a page(or does something else).

My idea would be:

Condition:
Check session flag(or variable)

Action:
Set Session flag(or variable)

Any ideas?

Thanks

Read more
quentinsf's picture

Assigning 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 more
kscott22's picture

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 more
kscott22's picture

Get content to appear on specific page, based on user input in CCK

I've got a site with the content type "event." I'd like users to be able to create a poll specific to a single "event" page. I'd like the poll to appear on the related "event" page and only that page. (So Poll A only appears at the bottom of the Event A page; Poll B only appears at the bottom of the Event B page; etc.)

Using CCK, I can have the user enter the URL of the event page when creating the poll. But how can I tell Drupal to post that poll on the bottom of that URL?

Read more
midlake's picture

Using rules to set content permissions

I'm a Rules noob with what could be a very common and easy problem to solve, yet I'm stumped. I have a content type called "resource" that I'd like to partially gate so that anonymous users can see the title and teaser, but not the full body or file attachments without logging in. Is it possible to use Rules to make it so that a user must log in to view the full node for a specific content type?

Thanks!

Read more
dpatte's picture

Running 3 rules sequentially, once per day

Hi

I have been using rules-views integration. and have set up 3 different views where each view uses 'rules executor' to set some flags on my site.

Each of these 3 views works fine on its own.

But I need to schedule these three steps to run sequentially, once per day, but I'm not sure how to do that.

I need something that will run each view, one after the other, and do this every night at 2am.

Any ideas?

Read more
shushu's picture

Rules / SMS Framework integration - first step

Hello,

http://drupal.org/project/rules_send_sms

I created a new small module that integrate between Rules and SMS Framework.

All it does is to add two new actions - sending SMS to numbers, and sending SMS to users (using sms_user module).

In the future I believe we will be able to implement Rules events as well, using the incoming SMS messages feature.

Comments are welcome !

Regards,
Shushu

Read more
shushu's picture

New rule action - better message

New module Rules Better Message.

Following the discussion with fago in this issue, I decided to create a separated module that will give better message action, and the ability to clean existing messages.

Since my site is Drupal 6, I decided to submit this module to Drupal 6 for now, and hopefully to finish the process of implementing basic features into the Drupal 7 Rules module in the near future.

Your comments and remarks are welcome.

Regards,
Shushu

Read more
DrupalCuckoo's picture

How to redirect to a certain URL if a page returns an "access denied" message?

hi,

I think this problem can be solved with the rules module but I don't know how. I hope some one can help me on this one :-)

Current state:
- I've created a page with the panels module. This page is available at "www.domain.com/user/[uid]/friends" (so each user has his own "My Friends Page").
- User A tries to view the "Friends Page" of User B.
- If User A has no rights to view this page (i.e. they've no friends-relationship with each other) he will get an "Access Denied" Message. This is not very user-friendly.

Target state:

Read more
twistedindustries's picture

Automate Twitter Posts from Submitted Content using Rules

I need help! I have fought with this for hours and have search everywhere with no luck. What I am trying to do I would of thought to be very simple, WRONG! I have a form that collects the users name (Title of node) and link (CCK text field) when the user submits a form of this content type I would like to generate a post to twitter with that information. That's it!

Read more
Subscribe with RSS Syndicate content