Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have the following two requirements:

  1. I want to allow users with the contributor role to upload media (images mostly) in their posts and preferably they shouldn't be able to delete existing ones before submitting it for review.

  2. I want to make sure once an article is published that it can't be edited by the contributor (the writer of the plugin with user role contributor) or if it can be edited the newer version isn't updated before going through a submission process.

I was recommended the Role Scoper plugin but I couldn't figure out how to do it. Any information about any other plugin or how to do this in Role Scoper would be great.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You can do all of this using the User Role Editor plugin. I normally tend to avoid answering questions by linking directly to a plugin but in this case, what you need comes in this package.

share|improve this answer
    
thank you so much ! exactly what i wanted :) –  Danny Dec 29 '12 at 16:29
    
You are welcome. And please let us know if you have any further questions around this subject. I run a multiple author platform myself where I use similar features so I am very familiar with this territory. –  Christine Cooper Dec 29 '12 at 16:38
    
i have actually.if we give access to upload media to contributors it implies that they have option to delete it as well . Is there any way that they are allowed to upload files but not delete or edit them to safeguard the data. secondly i mentioned this before also . By default the contributors are allowed to edit the posts once they are published. This results in a problem thiat is they can change something if the contributor feels so and that will we updated in the post. i would love a functionality that post,s edited version has to be approved again while the original version still visible –  Danny Dec 29 '12 at 17:40
    
I don't believe there is a way to prevent a user from deleting an image (file) they personally uploaded. I would suggest starting a new question for the best support. –  Travis Pflanz Dec 29 '12 at 19:02
    
@Danny are you asking a feature that stops the user from deleting a published post? If you post a new question I can answer that for you :) –  Christine Cooper Dec 29 '12 at 19:30

For image upload option to contributors

Add this code in your current theme's functions.php

if ( current_user_can('contributor') && !current_user_can('upload_files') )
    add_action('admin_init', 'allow_contributor_uploads');
function allow_contributor_uploads() {
    $contributor = get_role('contributor');
    $contributor->add_cap('upload_files');
}
share|improve this answer

protected by Community Jul 22 at 12:37

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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