By bartezz on
Hi,
Been searching for this, but probably with the wrong keywords.
I was wondering if there is a module to remember users based on their role or permission to be reminded to publish certain content on set intervals (if they haven't already within the set interval). I've build similar functionality into a custom CMS a long time a go and it really helps to push news moderators to publish some news every now and then. Hoping there is a module that does this for Drupal setups...
Cheers
Comments
You can try Rules to do this
First, set up a view with the userid as an argument. So say, lets list all nodes of content type x by user.
If the view is empty, then the user has not published anything.
Then create a ruleset using Drupal Rules module and add a condition that tests whether the view is empty
eg
================
$result=FALSE;
$view = views_get_view('my_view');
$view->set_display('default');
$view->args = array($account->uid);
$view->pre_execute();
$view->execute();
if (empty($view->result)) {
$result=TRUE;
}
return $result;
=======================
From this you can then schedule your emailing
More onscheduling here
http://nodeone.se/blogg/learn-rules-with-nodeone-part-12-repeating-sched...
Brilliant solution! Thanx for
Brilliant solution! Thanx for sharing and will definately try it out!
Cheers
________________
Live fast die young