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
(2015-06-28, 09:56 PM)hkkp Wrote: [ -> ]upload to imgur in the quickreply:

add in the plugin:

$plugins->add_hook('private_read', 'imgur_button');
$plugins->add_hook('showthread_start', 'imgur_button');

and in the templates after smilies or what ever in the quickreply-section:

{$imgur_button}
I'll add it as an option, to allow or not the upload in quickreplies (will be set in imgur options)

(2015-06-28, 09:56 PM)hkkp Wrote: [ -> ]and try please in the template imgur_button this: &

Do you mean in the link for the popup ? I think you're right Smile
Can you die , so make someone , ideally an account with Imgur hat , he did the same time logged in?
hello how to customize the imgur? because i want to change it in modal(bootstrap) its not compatible w/ my themes...
(2015-07-25, 12:28 PM)hkkp Wrote: [ -> ]Can you die , so make someone , ideally an account with Imgur hat , he did the same time logged in?

I had a reflexion about using an account, but I didn't find any way to securize it. I mean that to do this, I've to store and use the imgur login and pass, it could be quite dangerous for the personnal datas. But I keep it in mind and will search a little bit more in imgur API.

(2015-09-17, 09:42 AM)waraikobuot Wrote: [ -> ]hello how to customize the imgur? because i want to change it in modal(bootstrap) its not compatible w/ my themes...

It may be possible, but I need to know your theme to make it. I'll try to do an evolution to make the plugin adaptable to themes.
can you the javascript-code in outside file transfer?
(2015-02-24, 01:10 PM)Crazycat Wrote: [ -> ]
(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.

Just a tip: they can inject CSSĀ and stuff with that current regex.
can we use another image hosting service?
I want to use google drive for image hosting, because imgur is blocked by our ISP here
(2016-06-26, 10:06 PM)zukro Wrote: [ -> ]can we use another image hosting service?
I want to use google drive for image hosting, because imgur is blocked by our ISP here

Actually, you can't. This plugin needs an hoster wich furnish a web API, and if possible an anonymous access. Some other hosters may work, but I don't think that google drive will allow that.
Will be nice if you add some fiture like drop /drag image
Thanks
I've tested, it's totally possible to do that.
I'll do it soon, and it will allow to upload several pictures in the same time.

(2016-08-02, 03:31 PM)bekti Wrote: [ -> ]Will be nice if you add some fiture like drop /drag image
Thanks

Done Big Grin

No more button nor popup, just a small zone where you can drop your files.
As i said yesterday, the plugin allow to upload several pictures with only one drag.

You can try it: buid 14
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