Page 1 of 1

How to remove that pesky alert box?

PostPosted: December 20th, 2011, 12:02 pm
by jadev
Everytime a click is made to a protected file, an alert box pops up telling the poor member how many times they have downloaded a file etc.... I need to completely remove that alert box.. it is pesky and obtrusive and in the way... If anyone has done this already kindly let me know where the call is? thanks.

Re: How to remove that pesky alert box?

PostPosted: December 20th, 2011, 12:49 pm
by jadev
This is the one where clicking a protected video file jumps up and screams - Confirm File Download -
it has to go.. found it in both .js files s2member.js and s2member-min.js but it just keeps on comin'.... help please!! it has to go!

Re: How to remove that pesky alert box?

PostPosted: December 21st, 2011, 3:01 pm
by Cristián Lávaque
You can add &s2member_skip_confirmation in the URL or use the attribute skip_confirmation in the shortcode. WP Admin -> s2Member -> Download Options -> Basic and Shortcode Attributes

I hope that helps. :)

Re: How to remove that pesky alert box?

PostPosted: December 21st, 2011, 3:06 pm
by jadev
Bless you!

Re: How to remove that pesky alert box?

PostPosted: December 21st, 2011, 3:18 pm
by jadev
in the url is there a value assigned to &s2member_skip_confirmation
as in &s2member_skip_confirmation=yes or something

Re: How to remove that pesky alert box?

PostPosted: December 21st, 2011, 5:51 pm
by Raam Dev
Hi jadev,

From the built-in documentation in WP Admin -> s2Member -> Download Options -> Shortcode Attributes & API Functions ( Explained ):

skip_confirmation="no" Defaults to no. If skip_confirmation="1|on|yes|true", s2Member will generate a File Download URL which contains a directive, telling s2Member NOT to introduce any JavaScript confirmation prompts on your site, for this File Download URL. Please note, s2Member will automatically detect links, anywhere in your content, and/or anywhere in your theme files, that contain s2member_file_download or s2member-files. Whenever a logged-in Member clicks a link that contains s2member_file_download or s2member-files, the system will politely ask the User to confirm the download using a very intuitive JavaScript confirmation prompt, which contains specific details about your configured download limitations. This way your Members will be aware of how many files they've downloaded in the current period; and they'll be able to make a conscious decision about whether to proceed with a specific download or not.


So, you should be able to use &skip_confirmation=yes in the download URL.

Re: How to remove that pesky alert box?

PostPosted: December 21st, 2011, 6:02 pm
by jadev
ok thanks.. i tried adding it and it just stopped the link from working (used =yes) will try it again but for now in trying to call a flv file it just stops the download

Re: How to remove that pesky alert box?

PostPosted: December 22nd, 2011, 3:18 pm
by Raam Dev
Are you trying to visit the link in your browser or are you trying to use the link in an FLV player of some sort?

Re: How to remove that pesky alert box?

PostPosted: December 22nd, 2011, 3:24 pm
by jadev
this is in the browser using flowplayer... accessing flv files in the s2member files directory... the player works great with the s2member inline code but dies when adding the skip element ....

Re: How to remove that pesky alert box?

PostPosted: December 22nd, 2011, 3:46 pm
by Raam Dev
But have you tried visiting the URL with the skip_confirmation in your web browser to determine if it's actually skipping the confirmation prompt?

If it IS skipping the confirmation prompt when you visit the URL in your browser, then the problem you're experiencing is probably related to the flowplayer itself.

Re: How to remove that pesky alert box?

PostPosted: December 23rd, 2011, 6:07 am
by Cristián Lávaque
jadev wrote:in the url is there a value assigned to &s2member_skip_confirmation
as in &s2member_skip_confirmation=yes or something


&s2member_skip_confirmation=yes if in the URL, skip_confirmation="yes" if in the shortcode.