MyBB Community Forums

Full Version: ABP Imgur : one click upload and insert picture
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Very nice. However what I meant was to link directly to the image..

ie:" i.imgur.com/safdsfds.jpg" instead of "imgur.com/safdsfds"

So maybe another option to make the link direct?
Well, I don't really understand the trouble with imgur: the link is good (switch to "source edition"), but imgur seems to redirect to it's page.
And sometimes, there is no redirection...

BTW, the plugin does the link like it must do it... I'll investigate to see if there's a missing parameter in the url.
(2016-10-09, 11:06 AM)Crazycat Wrote: [ -> ]Well, I don't really understand the trouble with imgur: the link is good (switch to "source edition"), but imgur seems to redirect to it's page.
And sometimes, there is no redirection...

BTW, the plugin does the link like it must do it... I'll investigate to see if there's a missing parameter in the url.

Oh yeah, that's right. It recently started doing this.
(2016-10-05, 02:18 AM)sneak Wrote: [ -> ]Very nice plugin, thanks for making.

The reason I want to use this plugin is for users who are very bad at using computers so that means they also won't understand what to do when it comes to image sizes. If I select "original" in the options and the image is gigantic it will look sloppy. If I select one of the other sizes and the image is too large to read text on when cropped that's an issue too.

I would appreciate to be able to drag an image into this box and have a cropped thumbnail like currently which actually links to the full image.

You can use CSS to resize and restyle the image in the post display.
(2016-10-09, 11:06 AM)Crazycat Wrote: [ -> ]Well, I don't really understand the trouble with imgur: the link is good (switch to "source edition"), but imgur seems to redirect to it's page.
And sometimes, there is no redirection...

BTW, the plugin does the link like it must do it... I'll investigate to see if there's a missing parameter in the url.

Now I have this error when accessing the included help page of MyBB:

http://pastebin.com/wc7Mbr57

(posting this in code blocks gives me a cloudflare error)
Never use the help page ! Big Grin

I confirm this trouble, I'll coorect it really soon. I think that's it came from the upgrade to 2.0 (or 2.1): the upgrade procedure didn't remove the previous function used to make the popup.

Corrected : build #16 is working. I forgot to remove a hook in the plugin, and I didn't test the whole forum before release. Sorry guys Smile
Is there a way that all the http imgur links gets converted to https without actually proxying the images?
I think you can easily do that by modifying the inc/plugins/imgur.php and add:
code = code.replace("http://", "https://")
just before if (MyBBEditor) {

I won't modify the official plugin because it uses the url sent by imgur and there is actually no way to ask imgur to send https url.

Edit
You can also use:
code = code.replace("http://", "//")
This will be auto-adaptive
Thanks. I have another issue where loader doesn't show up
Missing informations... Query aborted Smile
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27