• Hi,

    first thanks for this wonderful plugin!

    There came up an issue here that when in the contact form no file was uploaded the placeholder for the mail text just stays raw as is.
    The placeholder tag is something like [upload-file-271] in the contact form mail text configs and so in the resulting mail text which was sended out.
    I had assumed it would just be replaced with emptiness.

    Is this correct behaviour?

    Kind regards,
    André Kelling

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @andrekelling,

    Yes, it’s a default behaviour.

    The tag can be replaced dynamically if files are uploaded; if no files are uploaded, the tag will remain displayed.

    But there’s also workaround to that if you want, I’ll give you the code that’s need to be add in your theme/functions.php that will remove the upload tag if it’s empty.

    Please let me know.

    Thread Starter andrekelling

    (@andrekelling)

    You mean some snippet to hook in to that contact form 7 mail out template? yes please!

    i am sure it would help others finding this post too!

    Thread Starter andrekelling

    (@andrekelling)

    @glenwpcoder ping

    from what my customer said the raw placeholder wasn’t visible ever when someone uploaded nothing. just a month ago.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    @andrekelling, can you please send me a link to your page?

    Thread Starter andrekelling

    (@andrekelling)


    Okay,

    thats is the relevant site with the contact form and file upload plugin active: https://plustaschen.de/kontakt/

    The plugin is in current latest version 1.3.7.5?there.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Thanks, can also provide a screenshot of your Contact -> Drag & Drop Upload settings?

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    I tried it on my server and it seems correct.

    As you can see the screenshot here

    https://ibb.co/0FjFQbk
    https://ibb.co/4MK4mXs

    Thread Starter andrekelling

    (@andrekelling)

    okay,

    here the config for the mail template: https://ibb.co/zPRTB1h

    here how it looks in mail https://ibb.co/BrdR8Vk

    so maybe something concerning other plugins in use. e.g. Conditional Fields for Contact Form 7 ?

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Thanks for all the screenshots.

    I will try and activate the Conditional Field plugin I’ll let you know if I can replicate the issue.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    I have tried with the condition field plugin and it doesn’t have any issue, can you check if there’s any plugin add-on/plugin that’s related to contact form 7? maybe it’s caused by other plugin.

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    I’d like to investigate further if you like, if it’s okay I would like to ask for your admin & password for your admin.

    Just let me know, you can email me [email protected].

    Thanks.

    Thread Starter andrekelling

    (@andrekelling)

    i created an account on the staging site for you. you should have gotten an email.
    the staging works almost the same. you are required to login to see the site.

    you can click around like crazy there. but you have no file access: define( 'DISALLOW_FILE_EDIT', true );

    i am really excited if you can find something.

    Thread Starter andrekelling

    (@andrekelling)

    and did you found something?

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hello @andrekelling,

    The latest release was a quick fix.

    I tried to copy the settings on your site and test in my stage/local but still I cannot replicate the issue.

    All the configuration in your settings is correct, so I cannot pinpoint what the issue is

    Can you allow my account to edit/add files in your staging? I will try to edit/add debug code, so I can identify the issue.

    Please let me know.

    Glen

    Thread Starter andrekelling

    (@andrekelling)

    hmm. no sorry, that won’t be possible.
    i will do a debugging by myself and i may find something and post that here.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Placeholder tag in mail stays raw when no file was uploaded’ is closed to new replies.