Thanks for the heads up on this thread :-)
@ Dan Stramer
~ Thanks for your patience. I apologize for the delay guys.
But is there a way to remove the S2 prompt alltogether from all downloads?
I already have tens of files and would not like to change all the url’s with the shortcode.
In this project I will not need any JS prompt for the download.
You can set this global JavaScript variable to a value of true, to disable ALL confirmation prompts.
var ws_plugin__s2member_skip_all_file_confirmations = true;
So for instance, you might have an MU plugin that does this for you.
Please create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
(NOTE: these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins)
(See also: http://www.s2member.com/kb/hacking-s2member/)
<?php
add_action('wp_head', 'disable_s2_js_confirmations');
function disable_s2_js_confirmations()
{
echo '<script type="text/javascript">';
echo 'var ws_plugin__s2member_skip_all_file_confirmations = true;';
echo '</script>';
}
You won’t need to add skip_confirmation
onto the end of your links now. You’ve disabled these globally.