• Hi!

    thank you for the great email Before Download plugin. It works very well. I am using it with Download Monitor and Contact Form 7.

    I need help fixing an issue. When the download is requested at this page https://aksert.com/business-insights/ the plugin Email Before Download will display a message “The link to the file(s) has been emailed to you”.

    This message breaks the page design as you can see here https://www.diigo.com/item/image/5pj5q/apdq

    This is caused by the following code in the email-before-download.php file:

     if($is_new_cf7){
            $additional_settings = $cf7->prop( 'additional_settings' );
            $additional_settings  .= "\n". "on_sent_ok: \"document.getElementById('wpm_download_$dId').style.display = 'inline'; document.getElementById('wpm_download_$dId').innerHTML='The link to the file(s) has been emailed to you.'; \"";
            $cf7->set_properties( array( 'additional_settings' => $additional_settings ) );
    	  }
    	  else
            $cf7->additional_settings .= "\n". "on_sent_ok: \"document.getElementById('wpm_download_$dId').style.display = 'inline'; document.getElementById('wpm_download_$dId').innerHTML='The link to the file(s) has been emailed to you.'; \"";
        }
    

    Please, is there any way to disable this message and avoid it being enabled again in future plugin updates?

    Any advice is welcome.

    Rgs

    IM

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try putting this into a CSS file somewhere that gets loaded for that page:

    
    div[id^="wpm_download_"] {
        display: none !important;
    }
    

    At one point I had that CSS … or similar CSS .. that mostly worked but didn’t work in one case. Then, I fixed it. Now, all I can find is that. I don’t know if that is going to work or not, but give it a shot…

    Thread Starter itmonitor

    (@itmonitor)

    Hi dtynan,

    many thanks. I tried the CSS, it will not work. For the moment, I commented out the line

    $cf7->set_properties( array( 'additional_settings' => $additional_settings ) );
    	  }

    but if a checkbox to disable it could be added on the Email Before Download plugin dashboard, that would be great ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove “Email Sent” message’ is closed to new replies.