Forums

Way to only allow thumbnail image uploading? (5 posts)

  1. sjusc10
    Member
    Posted 3 years ago #

    Hello!

    I'm trying to build a site for a family friend, and I'd like to scale the images to fit a certain size within the site.

    Would it be possible to only allow the person to use only the "Using Thumbnail" feature of the upload tool? (i.e. Can we disable the "Using Original" feature somehow?)

    By the way, I don't mind hacking the core WP files as there won't be a future upgrade needed. Thanks for any help!

    Andrew

  2. sjusc10
    Member
    Posted 3 years ago #

    I solved it...somewhat.

    For future reference to anybody who might need this feature, you'll want to look in inline-uploading.php.

    On line 361, replace:

    oi.innerHTML = usingoriginal;

    with:

    oi.innerHTML = usingthumbnail;

    And that's it.

    I'm not a PHP programmer in any sense, so please consult with your own programmer before doing anything drastic :)

  3. bgswm1
    Member
    Posted 3 years ago #

    I am actually looking for the opposite. I never want it to use thumbnail, which is currently the default.

    Any suggestion on how to mkae useing original the default?

    Thanks

  4. sjusc10
    Member
    Posted 3 years ago #

    Yup, it's possible :)

    If you never want to use thumbnail, you can replace that with a second "Using Original..." feature.

    On line 369 or so, you want to replace:

    oi.innerHTML = usingthumbnail;

    with:

    oi.innerHTML = usingoriginal;

    That should do what you want.

    Hope that helps!

  5. bgswm1
    Member
    Posted 3 years ago #

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic