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
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 :)
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
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!