As requested, I'm submitting this request. Thanks!
**********
Regarding the ability to have content graduate from access by a restricted usergroup to public access on a timed basis.
Ideally, once submitted content was approved for publication to the member area, it's eventual move from member to public area would be automatic on the appropriate date.
This is totally off the top of my head and untested (so probably won't work straight off), but a quick dirty hack to not allow anonymous users to see content that's less than 30 days old might look something like this:
Edit the node_access() function in node.module.
Add to the top of the function the line:
global $user
And change this line:
return module_invoke($type, "access", $op, $node);
To something like this:
return module_invoke($type, "access", $op, $node) &&
(($user->rid != 1) ||
($node->created < (time()-(60*60*24*30))));
Comments
Comment #1
jonbob commentedComment #2
bdragon commentedThe Premium module (http://drupal.org/project/premium) implements this use case.