• I run a question and answer website.

    I moved to wordpress, and now this is the biggest of my problems:

    – All new users if automatically registered as “contributors” can sure post their question, but CANNOT upload any files. I need them to be able to upload their files, as many of my users have MSWORD files/PDFs.

    – If I accord new users as “authors” they get to do too much- like make questions public, when I would like to keep them private as a site wide rule.

    – I have tried a few plugins Whitelabel CMS etc. but I cannot help the contributor upload files – or even general public :/

    Please help!

Viewing 1 replies (of 1 total)
  • Add the upload capability to Contributors?

    <?php
    $_roles_object = new WP_Roles();
    $_roles_object->add_cap('upload_files','contributor');
    ?>

    Usage: Add it to one of your theme files, load a page that calls that file, then remove the code.

    The theme’s functions.php file would be fine, you’d only need load any page once, then remove the code.

    I’m not sure giving Contributors that capability is good idea (they might start uploading all sorts of things), but the above is how you could do it, if you so choose, use at your own discretion.

Viewing 1 replies (of 1 total)
  • The topic ‘Please help me !! – uploading and roles.’ is closed to new replies.