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™

Serving Files from S3 using shortcodes or links ?

s2Member Plugin. A Membership plugin for WordPress®.

Serving Files from S3 using shortcodes or links ?

Postby barefootango » October 24th, 2011, 9:47 pm

Can someone tell me if this shortcode is right please ???

I am looking at the documentation, and at this point I AM GUESSING!!!

Ahem.

[s2File download="/bucketname/filename.zip", count_against_user="no", check_user="1", rewrite="1", download_key="1", storage="s3"]

And would this generate a link to the file or do I have create a <a href>link</a> and if so what would that look like ?

Thanks.

Miles.
User avatar
barefootango
Registered User
Registered User
 
Posts: 19
Joined: October 4, 2011

Re: Serving Files from S3 using shortcodes or links ?

Postby barefootango » October 25th, 2011, 12:48 am

Found the solution to my own problem in case anyone wants to know:

<a href=[s2File download="filename.zip" download_key="true" count_against_user="1" check_user="1" rewrite="1"storage="S3"]>test</a>

will generate the link you're wanting....
User avatar
barefootango
Registered User
Registered User
 
Posts: 19
Joined: October 4, 2011

Re: Serving Files from S3 using shortcodes or links ?

Postby Eduan » October 25th, 2011, 8:24 am

Okay thanks!
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot] and 0 guests

cron