Thread Rating:
  • 4 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] ABP Imgur : one click upload and insert picture
#21
(2015-02-24, 12:47 PM)xiaoming Wrote: the https: was omitted..

[img]//i.imgur.com/uPfAatL.jpg[/img]

Sorry, I didn't check if MyBB parses this, and the response is "no"...

To make it work properly, create a new MyCode :
regexp:
\[img\]//(.*?)\[/img\]

replacement:
<img src="//$1" />

With that, the scheme will be the same as the one on your site.
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Reply
#22
hello and thank you for this plugin!

you would know a way to bring up the button on the quick reply from Quick Advanced Editor Plus please ?
Reply
#23
I'll try to add this, but I'm not sure I can catch the displaying of the quickreply.

First, I'll work on a better JS integration, with a modal window.
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Reply
#24
ok ,thanks for your job !
Reply
#25
hi i need to remove it from the smilies area, that panel sometimes disappears and sometimes not...LOL

How can i do it a TR below the textarea? thanks
Reply
#26
Modify your templates.

The plugin modify : newreply, newthread, editpost and private_send.
Find:
<!-- Imgur -->{$imgur_button}<!-- /Imgur -->

And move it where you want it to appear.
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Reply
#27
actually for newbies to this plugin, it deletes the whole smilies box in create new thread , instead of inserting Toungue

Also can you add it to the quick reply box too please

how can i pop this up into iframe with close button, get confirmation of success and auto insert but ready for next upload?
Reply
#28
Image thumbnails
There are 6 total thumbnails that an image can be resized to. Each one is accessable by appending a single character suffix to the end of the image id, and before the file extension. The thumbnails are:

Thumbnail Suffix	Thumbnail Name	Thumbnail Size	Keeps Image Proportions
s	Small Square	90x90	No
b	Big Square	160x160	No
t	Small Thumbnail	160x160	Yes
m	Medium Thumbnail	320x320	Yes
l	Large Thumbnail	640x640	Yes
h	Huge Thumbnail	1024x1024	Yes
For example, the image located at http://i.imgur.com/12345.jpg has the Medium Thumbnail located at http://i.imgur.com/12345m.jpg


How can i return one of the thumnails instead of the image? if the image is bigger than the thumbs
Reply
#29
So you cannot return a thumbnail and you need to manually add the thumb that you need?

Also how do i add the button to the quick reply panel?
Reply
#30
(2015-03-03, 04:35 PM)expat Wrote: So you cannot return a thumbnail and you need to manually add the thumb that you need?
You can edit the imgur_popup to modify the returned link.

Replace :
var code = '[img]' + JSON.parse(xhr.responseText).data.link + '[/img]';

With:
var link = JSON.parse(xhr.responseText).data.link;
pos = link.lastIndexOf('.');
var code = '[img]' + link.substring(0, pos) + 'm' + link.substring(pos) + '[/img]';

Note that I used 'm' arbitrary, you can use any of the 6 available thumbnail size.

(2015-03-03, 04:35 PM)expat Wrote: Also how do i add the button to the quick reply panel?
It's not so easy, it works with the showthread and the JS might be different than the actual one.
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)