18 Oct 2016 Edited #1

MyDropzone 1.2

Administrator

You are viewing page #7

Show original post
Filename Size Downloads
MyDropzone 1.2.zip
30.04 KB 38
LIONHAERT, Tac, Enes Palit like this post
Shade 13 Mar
#61
Thank you for your report, I can confirm the issue. Will be fixed in the next update. If you want to apply the patch manually in 1.2, open inc/plugins/mydropzone.php, find around line 383:

        if($pid)
        {
            
$attachwhere "pid='$pid'";
        }
        else
        {
            
$attachwhere "posthash='".$db->escape_string($posthash)."'";
        } 
Replace with:

$attachwhere "posthash='".$db->escape_string(md5($thread['tid'].$mybb->user['uid'].random_str()))."'"
Seeker-Smith 14 Mar Edited
#62
So I'm removing the whole section or just the $attachwhere = "posthash='" line??

I've just changed the one line and it does appear to be working correctly
Shade 14 Mar
#63
The whole section.
Seeker-Smith 14 Mar
#64
I get the same issue when I change the whole section. All my attachments show.
Shade 14 Mar
#65
Sorry, you also have to add:

$thread 
to the global line above.

So, find on line 369:

global $mybb$forumpermissions$pid$db$templates$lang$attachbox$theme
Replace with:

global $mybb$forumpermissions$pid$db$templates$lang$attachbox$theme$thread
Seeker-Smith 14 Mar
#66
That did the trick. Thanks!!
Seeker-Smith 18 Mar
#67
Hi Shade
I hope are getting better for you over there. Canada where I am is in lock down (3 weeks late).

Anyway I don't know if you can help or offer a suggestion. I'm using MyBBlog as a plugin and I'd like to add the attachment {$attachbox} to the editor. Do you think it's possible?
Shade 20 Mar
#68
Unfortunately, third party plugins are not supported.
Seeker-Smith 20 Mar
#69
I understand.
My forum members like to upload images to the site. I mean, they like that the images are hosted on my server rather than on a different server. They want to copy the link of the image from another site and quickly upload it to my server.

I suggest you add this: Link address field when uploading images to attachments. The image on the external server should be automatically uploaded to my server. Like uploading images from a computer. The only difference is with the url.

Sorry for my bad english, i hope you understand.