PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

How to remove that pesky alert box?

s2Member Plugin. A Membership plugin for WordPress®.

How to remove that pesky alert box?

Postby jadev » December 20th, 2011, 12:02 pm

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.
User avatar
jadev
Registered User
Registered User
 
Posts: 6
Joined: December 20, 2011

Re: How to remove that pesky alert box?

Postby jadev » December 20th, 2011, 12:49 pm

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!
User avatar
jadev
Registered User
Registered User
 
Posts: 6
Joined: December 20, 2011

Re: How to remove that pesky alert box?

Postby Cristián Lávaque » December 21st, 2011, 3:01 pm

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. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: How to remove that pesky alert box?

Postby jadev » December 21st, 2011, 3:06 pm

Bless you!
User avatar
jadev
Registered User
Registered User
 
Posts: 6
Joined: December 20, 2011

Re: How to remove that pesky alert box?

Postby jadev » December 21st, 2011, 3:18 pm

in the url is there a value assigned to &s2member_skip_confirmation
as in &s2member_skip_confirmation=yes or something
User avatar
jadev
Registered User
Registered User
 
Posts: 6
Joined: December 20, 2011

Re: How to remove that pesky alert box?

Postby Raam Dev » December 21st, 2011, 5:51 pm

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.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: How to remove that pesky alert box?

Postby jadev » December 21st, 2011, 6:02 pm

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
User avatar
jadev
Registered User
Registered User
 
Posts: 6
Joined: December 20, 2011

Re: How to remove that pesky alert box?

Postby Raam Dev » December 22nd, 2011, 3:18 pm

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?
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: How to remove that pesky alert box?

Postby jadev » December 22nd, 2011, 3:24 pm

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 ....
User avatar
jadev
Registered User
Registered User
 
Posts: 6
Joined: December 20, 2011

Re: How to remove that pesky alert box?

Postby Raam Dev » December 22nd, 2011, 3:46 pm

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.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: How to remove that pesky alert box?

Postby Cristián Lávaque » December 23rd, 2011, 6:07 am

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron