• Resolved kirill3772

    (@kirill3772)


    Hi

    I really like this plugin so far, it works better than any other free ones I tried. However, I am having an issue with sending attachments. It allows me to go to my folders on pc and select an image, but it does not upload it to the actual site.

    I assume this is how you share images via private messages. Perhaps this would be done easier if the media upload function from post editor was added instead?

    Thank you

    https://ww.wp.xz.cn/plugins/front-end-pm/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter kirill3772

    (@kirill3772)

    So the files are being uploaded actually, but to the wp-content/uploads/front-end-pm/2015/07 folder, i believe that the plugin is calling the wrong folder to show images. How do i call the image from the right location after it has been posted? I found the “echo” line in the fep-attachment-class.php what do I need to change this to to call the right folder?

    Plugin Author Shamim Hasan

    (@shamim51)

    so it was your problem, I didn’t understand that’s why I didn’t reply.

    so when you send a message you can access that message in your messagebox. you can see attachments there also. so if not uploaded to your site how can attachments be there?

    what is the right folder you think for attachmens of this plugin?

    Thread Starter kirill3772

    (@kirill3772)

    I have go through all the support posts, reinstalled the plugin through wordpress, now it seems that when I upload the image, at first it lets me download it, but a few moment later it gives me “invalid token” I have tried this on several websites and the result is the same. If the images are being uploaded fine, what function can i use to just display the image, I do not need a link to download it.

    I do not know which folder would be correct, perhaps make a new one in the front end pm plugin, but I can see them via FTP in wp-content/uploads/front-end-pm/2015/07 or wp-content/uploads/front-end-pm/ if i disable the “organize my uploads into month-and-year folders”

    Thread Starter kirill3772

    (@kirill3772)

    There is a plugin called wp user avatar, which uploads images directly into wordpress library, it attaches them to the author and displays them as soon as they are uploaded. I only compare because this plugin does not require a post to upload an image, so similar yo FEPM. Do you think that maybe using wordpress media library so wp-content/uploads instead of wp-content/uploads/front-end-pm and calling the image from that folder would work better?

    Plugin Author Shamim Hasan

    (@shamim51)

    to just display a image, folder is not a problem. from any folder you can display any image without download. this plugin’s first attachment option was that way.But user do not only send images. they can send any type of file (allowed). but browser can not show every type of file. users from forum wanted to make download link but show in browser. also I am making this plugin as secured as possible. user can send any confidential attachment with their message. so I make it that way so that only allowed users can doenload that attachment. also download link can be used only once. if you try to download with the same link you will get token error. you can refresh page and try to download again. than you will not get token error.

    Thread Starter kirill3772

    (@kirill3772)

    Could you please give me the function and where to enter it so that the uploaded image is from the correct user is displayed? Perhaps in my case just limit the files to images only, and only so authors and admin can send them, others can only view.

    However I do not want to ask too much of you. The code to just display attached image and where to place it would be great.

    Thank you

    Thread Starter kirill3772

    (@kirill3772)

    Something like echo fep_get_attachment_image() i assume, but that is not the whole function.

    Plugin Author Shamim Hasan

    (@shamim51)

    open fep-attachment-class.php around line 197

    replace

    fep_action_url("download&id=$attachment_id&token=$token")

    with

    esc_url($unserialized_file['url'])

    Now when you click on attachment image name it will show on browser and will not download. Remember when you will update this plugin this changes will be removed.

    If you need customization you can contact with me through https://shamimbiplob.wordpress.com/contact-us/

    Thread Starter kirill3772

    (@kirill3772)

    Very nice, thank you so much. I know i keep asking, but this is the last thing i need, is there a way for me to display this attachment inside the message box before the user clicks on it, without having to go into another browser?

    So users can see images directly in their message box?

    Thank you for your help, best response time and support so far out of all plug ins I have used

    Thread Starter kirill3772

    (@kirill3772)

    I figured it out, replace line 197 echo “<a href= with echo “<img src=

    Thank you so much for your help

    Thread Starter kirill3772

    (@kirill3772)

    Resolved

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Image Upload’ is closed to new replies.