We have to talk about you faggots not being able to figure out thumbnails

  • 🐕 I am attempting to get the site runnning as fast as possible. If you are experiencing slow page load times, please report it.
Edit: This script seems to work, at least on my PC.
JavaScript:
// 'sync' is accessible from the outside and called before the post is sent or saved.
XF.EditorHelpers.sync = (() => {
    const fn = XF.EditorHelpers.sync;
    return function sync(editor) {
        fn.call(this, editor);
        // XF places a bunch of attributes on the pasted images for no apparent reason.
        // These attributes do not appear in intentionally attached full images.
        editor.$el.find('[data-attachment^="full"][status="ok"]').each(function (x){
            // XF synchronizes draft by just grabbing HTML value.
            // 'src' appears to be ignored in the end.
            this.dataset.attachment = this.dataset.attachment.replace('full', 'thumb');
        });
    }
})();

Testing...

1721608357432.jpeg
 
Ah I see honestly I won't complain and ask Null to make it. Adding a new feature can be a real pain in the ass sometimes.
Null could theoretically just look for the code lines for the “Add Image” option and void them. It could either just be as simple as editing the template or it could domino and unintentionally fuck up areas of the site. You would be surprised at how fiddling with one thing can sometimes make a mess of others.

I’m not a web dev, I’ve just done regular software dev work, I do not know dick about Xenforo 2 or whatever he’s running it on. I suspect Josh feels like we should be less fucking stupid as opposed to him having to stupid-proof everything constantly.
 
  • Agree
Reactions: ㅤㅤㅤ
when I link photos I often copy and paste them so I don't have to download, then find the file to link again - however doing so imbeds the full sized image to the post and not the thumbnail. I have been trying to take the extra step of clicking the image and removing it so i can re-add it as a thumbnail, but that's still a lot of steps. could there be a "convert to thumbnail" button on the image options bar, or maybe a "convert all images to thumbnails" button you can click before posting? Or maybe make it so when you paste an image to a post it automatically inserts the thumbnail version instead of the full sized version, which you can switch to full sized with a click?
1722242233928.png
 
I have been trying to take the extra step of clicking the image and removing it so i can re-add it as a thumbnail, but that's still a lot of steps. could there be a "convert to thumbnail" button on the image options bar, or maybe a "convert all images to thumbnails" button you can click before posting?
If i'm cutting and pasting things in i just cut and paste everything in and go to bbcode clear all the stuff turn bbccode off and hit insert, select all, thumbnail.
 
Back