0

I am new to drupal 7 and was willing to implement something like time based unsubscription from a OG Group.

I have users added in OG Group. I want to implement time based unsubscription of the users already added in the group say 'Computers'.

User say 'Tony' is added to the group 'Computers' today, now I wish that a user 'Tony' should be unsubscribed from the group 'Computers' after a subscription of 3 months (a specific time period).

A Notification message should be sent to user 'Tony'.

All the process should be based on systems current date and the joining date of user 'Tony' to the group 'Computers'.

Please help me with any solution.

1 Answer 1

1

This is definitely a job for rules. It is also quite a complexed subject as you are going to need to utilise components so that you can schedule this to happen every day. I would do it like this:

  1. Set up a views_bulk_operations view that looks up all users that have been members of groups for 90 days.
  2. Create a rule component that loads the list of users, loops through the list, sends a notification and unsubscribes the user from the group.
  3. Schedule the rule to do this every day.
2
  • i am not able to create a view which shows username along with the membership creation date, so could you help me with it?
    – Shashank
    Commented Jul 3, 2012 at 10:53
  • I have created a VBO but not able to load VBO in the rule section?
    – Shashank
    Commented Jul 12, 2012 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.