I'm developing a Drupal 7 based site. As an administrator of a site I want to add some specific access permissions for authenticated users. By default in Drupal authenticated users can read the content. And they can view the author of content. I want to disable the feature of viewing the author, but only for concrete contents. When an authenticated user creates content, I want to make him able to choose "creating a content as anonymous author", i.e. other users can read and comment that content, but unable to see it's author. And additionally this feature shouldn't affect quantity of content posted by that user. When the user creates content it will be incremented in "Number of content created by this user", whether content was created as "anonymous author" or not. I've looked up in "People > permissions" , but couldn't find a permission like that. I know a little PHP, so if the answer requires a knowledge of PHP, go ahead.
closed as too broad by Mołot, AjitS, Free Radical, Jimajamma, 4life Feb 17 '14 at 11:04
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
You could have a look at User points module, you also need userpoints_nodelimit, part of User Points Contributed modules to limit the number of nodes a specific user is allowed to create. For the deletion of nodes you'll need the rules modules so you can give the user a point back.
You could write your own implementation, but depending on your skills this might be harder, in short you need to implement:
- an access callback where you check the user and the number of available points
- use hook_menu_alter to replace the access callback of 'node/add'
- implement hook_node_delete and hook_node_isnert to change the counter