• Resolved A.I. Sajib

    (@aisajib)


    Hi everyone, I’ve been using WordPress for more than a year and recently I’ve decided to create a WordPress team site which will have multi author. But I was not willing to use WP MU.

    I’m trying out WP 3 RC 1 and it’s perfect for my need. However, I’m willing to disable media uploading feature for all my authors because of short space of hosting. I’m willing to ask my authors to upload image elsewhere, such as Flickr or Tinypic, and then put the photos into the post through a direct link.

    But I want the image/media uploader to be disabled for authors. Is there any trick to do that?

Viewing 5 replies - 16 through 20 (of 20 total)
  • It might be best to disable it for now and go with one of the plugins that adsrikanth suggested.

    Thread Starter A.I. Sajib

    (@aisajib)

    Alright, thanks to DigitalMcGrath and adsrikanth.

    Thread Starter A.I. Sajib

    (@aisajib)

    adsrikanth,

    uploader button is still remaining at the QuickPress. ??

    The QuickPress functionality is located in wp-admin/includes/dashboard.php. You can do a check in this file to see if the user is an admin. Look for this block of code around line 440:

    <?php if ( current_user_can( 'upload_files' ) ) : ?>
    <div id="media-buttons" class="hide-if-no-js">
    <?php do_action( 'media_buttons' ); ?>
    </div>
    <?php endif; ?>

    And change it to:

    <?php if ( current_user_can( 'install_themes' ) ) : ?>
    <div id="media-buttons" class="hide-if-no-js">
    <?php do_action( 'media_buttons' ); ?>
    </div>
    <?php endif; ?>

    Thread Starter A.I. Sajib

    (@aisajib)

    Oh God! McGrath that was great!It worked amazing. That adminimize plugin and your tweak both made exactly what I wanted.

    Thank you so much! ?? If you have a site or blog you would like me to go through, you are welcome to give me the URL. I will be glad to meet you later.

Viewing 5 replies - 16 through 20 (of 20 total)
  • The topic ‘How to disable image uploading in WordPress?’ is closed to new replies.