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.

File mgmt/shortcodes for protected files

Home Forums Community Forum File mgmt/shortcodes for protected files

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

Topic Author Topic
Posted: Wednesday Jan 30th, 2013 at 9:48 pm #40047

In this installation, s2Member is being primary used to protect downloadable files.

Q1 – Is there a way to upload files to be protected into this folder – /wp-content/plugins/s2member-files from the WP dashboard, or, do they have to be ftp’d to the server ?

Q2 – What is the correct way to insert this shortcode? [s2File download="example-file.zip" /]
Neither the Visual nor Text tabs seem to work.
As in, Download the file HERE. Highlighting the word HERE, and clicking on the link icon and pasting in the shortcode won’t work.

The only way I can get the short to work is the using the Text tab and manually type in the code:
Download the file HERE

but even the code gets stripped out when moving back and forth between the Text tab and Visual tab.

Said another way, what is the easiest way for a non-developer to use the shortcodes?

Thank you.

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Saturday Feb 2nd, 2013 at 6:08 am #40373
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

I’m reviewing this thread now.

Posted: Saturday Feb 2nd, 2013 at 6:16 am #40376
Staff Member

Q1 – Is there a way to upload files to be protected into this folder – /wp-content/plugins/s2member-files from the WP dashboard, or, do they have to be ftp’d to the server ?

Please see this page for some plugins that will help you with this.
http://wordpress.org/extend/plugins/search.php?q=s2member

Q2 – What is the correct way to insert this shortcode?
Neither the Visual nor Text tabs seem to work.
As in, Download the file HERE. Highlighting the word HERE, and clicking on the link icon and pasting in the shortcode won’t work.

This shortcode generates a URL only. So you would need to use the HTML tab and type the following.

<a href="&#91;&#91;s2File download="example-file.zip" /&#93;&#93;">click HERE</a>

Or, you can just create links in the Visual Editor like this.

http://www.example.com/wp-content/plugins/s2member-files/example-file.zip
Viewing 2 replies - 1 through 2 (of 2 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.