• Resolved sergvasilievich

    (@sergvasilievich)


    Hello!
    I’m testing your “USP” plugin.
    Wordpress 4.8.2
    I have the following problem:
    I create a post and upload for example 3 images at the end or at the beginning of the post (no difference).
    All is well.
    Next, I leave a comment with the attached image (plugin “Comment Images Reloaded”, but it’s not important).
    And the image from the comment is also inserted into the post, next to the images created earlier in the post. That is, the post already has 4 images. Is it possible to fix it or is it an incorrigible bug?
    Sincerely Serg

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Hello! Actually what is happening is the images are displayed from multiple plugins/themes. For example, USP is auto-displaying an image, the comments plugin is auto-displaying an image, and your theme also probably is displaying an image. So it’s just normal functionality, not any sort of bug.

    I don’t know about your theme and comments plugin, but can tell you that USP has a setting that you can disable. It’s in the plugin settings, “Auto Display Images”. If you disable that setting, USP will not display any images. Then you can investigate your other plugin and theme to disable the other images.

    Thread Starter sergvasilievich

    (@sergvasilievich)

    Now I set the “Do not show images automatically” option in the “USP” settings.
    All 4 images in the post disappeared (3 images of the post and 1 image from the commentary).
    There are only images of the commentary.
    It feels like the plugin “USP” captures images from the comments in the post if “Automatically show images” is turned on.
    That is, when adding a comment with an image, this image is added to the post.
    This does not happen if you create a post from the admin panel.

    Plugin Author Jeff Starr

    (@specialk)

    Actually I was incorrect in previous comment. If you are using that setting (Auto-Display Images), then USP will automatically display any/all images that are attached to the post. So as you have discovered, you can disable the setting to stop USP from displaying submitted images entirely.

    Updated to add: Also, that setting only works for submitted posts, which is why posts created from the Admin Area do not have auto-displayed images.

    • This reply was modified 7 years, 5 months ago by Jeff Starr. Reason: further info
    • This reply was modified 7 years, 5 months ago by Jeff Starr. Reason: clarity
    Thread Starter sergvasilievich

    (@sergvasilievich)

    Thanks for the answer!
    I also found that in the library next to each image there is a “Uploaded for …”. If the post comment image has this papameter changed, or deleted, then this image will not be duplicated in the post. This image will be only in the comment. He will not be in the body of the post.
    The sad thing is that users leaving comments with the image seem to load their image into my post. At the same time, the main idea of ??fasting is lost.
    I have to use images in the created post. I should not turn them off. I also need images in the comments. But the image of the comment should not fall into the post.
    I have an idea how to prevent this. I would like to make the comment images do not have the “Loaded for …” option in the library. Then everything will be fine. Images of the comment will not be able to load into the body of my post next to the post images.
    I want to delete the “Loaded for …” parameter in the php code of my comment plugin so that it is not displayed in the mediotheque opposite the image of the comments.
    But I do not know how it can be called in PHP code. Please tell me how it might look in PHP code if you can.
    Sincerely, Serg.

    Plugin Author Jeff Starr

    (@specialk)

    Interesting! I am wondering about “Loaded for”.. can you link to a screenshot so I can get a better idea of what might be happening. Thank you, Serg.

    Thread Starter sergvasilievich

    (@sergvasilievich)

    Here is a screenshot:
    https://yaidiod.ru/wp-content/uploads/2017/10/scr01.jpg

    Here is the page with the problem post:
    https://yaidiod.ru/test.html

    Plugin Author Jeff Starr

    (@specialk)

    Thanks, but I need to see a screenshot that explains what you mean by “Loaded for”.. I am not familiar with that part of WordPress. Thank you

    Thread Starter sergvasilievich

    (@sergvasilievich)

    Hello!
    I finally dealt with my problem of side-by-side automatic copying of attached images from comment to post.
    Maybe my experience is useful to someone. Hou will share it:

    As I already reported earlier, when creating a post in the USP, the attached images go to the library and they are given the name of the post with the label “Uploaded for (name of the post)”.
    Images attached to the commentary also enter the library and they are also given the label “Uploaded for (post name)”. That is, these images belong to the same post and they have the same label of the post name. For this reason, a post created in the USP thinks that all these images belong to it. He captures them in his body from the library.

    Decision:
    -I replaced the comment plugin. Previously, I used the “Comment_Images_Reloaded” plugin. It stores the attached images in the library and assigns them a postmark (Loaded for …). Now I have applied another comment plugin. It stores the attached images not in the library, but in a separate folder. Accordingly, images are not labeled with a post. Accordingly, they do not fall into the body of the post, but remain attached only to the comments.
    Thank you for attention.
    Sincerely, Serg.

    Plugin Author Jeff Starr

    (@specialk)

    Awesome Serg, glad you got it sorted, and thanks for sharing your solution.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Post assigns images from comments’ is closed to new replies.