latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Redirect to a page before download start

Home Forums Community Forum Redirect to a page before download start

This topic contains 4 replies, has 3 voices. Last updated by  Jason (Lead Developer) 3 years, 10 months ago.

Topic Author Topic
Posted: Sunday Mar 10th, 2013 at 8:40 am #44203

Hi,
Is there a way to redirect to a specific page before download start. Something like in sourceforge website.
I want to redirect users to a page with ads and only then the download starts.

Thank you for your help

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Monday Mar 11th, 2013 at 11:18 pm #44304
Eduan
Username: Eduan
Moderator

Hello Youseff,

I’m afraid this is currently not possible. If you wish I can add this as a feature request. :)

– Eduan

Posted: Tuesday Mar 12th, 2013 at 2:32 am #44327

Yes please, Thank you

Posted: Wednesday Mar 13th, 2013 at 11:14 pm #44570
Eduan
Username: Eduan
Moderator

No problem. :)

Posted: Thursday Mar 14th, 2013 at 2:36 am #44575
Staff Member

Thanks for the heads up on this thread :-)

That specific functionality is not built into s2Member. However, you could certainly accomplish such a thing by simply providing a member with a link that leads to the page where your s2Member® File Download link is displayed. s2Member® generates the URL for you; so you can do whatever you like with that URL. If you would like to push it to browser for an automatic download; you might do something like this.

<script type="text/javascript">
setTimeout(function(){
	location.href = '[s2File download="example-file.zip" /]';
}, 5000);
</script>

See also: Dashboard -› s2Member® -› Download Options -› Shortcode Attributes & API Functions
See also: http://www.w3schools.com/jsref/met_win_settimeout.asp

Viewing 4 replies - 1 through 4 (of 4 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.