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™

Livestream site question

s2Member Plugin. A Membership plugin for WordPress®.

Livestream site question

Postby Supertvplayer » March 30th, 2011, 9:38 am

Hello to everyone,

Sorry for weired questions but I am not PHP guy and don't know how to solve the issues. I have created silverlight application and I am offering live streaming to my paid users. And with following code my users are watching livestream depending on their user levels but as you see on my root directory silverlight application is placed. If you point on your browser url of this file you can download.

My question is, if I put this file into s2member-files directory, may I protect to download directly?

Code: Select all
<?php } else if (current_user_is("s2member_level3")){ ?>

<?php } else if (current_user_is("s2member_level2")){ ?>

<?php } else if (current_user_is("s2member_level1")){ ?>
etc...


Thanks to everyone
Last edited by Supertvplayer on April 1st, 2011, 3:52 pm, edited 1 time in total.
User avatar
Supertvplayer
Registered User
Registered User
 
Posts: 6
Joined: March 27, 2011

Re: Livestream site question

Postby Cristián Lávaque » March 30th, 2011, 3:45 pm

Yes, you can protect it with s2Member.

You can read the section here WP Admin -> s2Member -> Download Options.
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: Livestream site question

Postby Supertvplayer » March 31st, 2011, 5:36 am

Thank you very much for reply,

I tried to put my silverlight application as inline files into my pages, I placed Silverlight XAP into s2member-files folder but no success. Do I have to make changes on htaccess file inside of this directory?

Thanks
User avatar
Supertvplayer
Registered User
Registered User
 
Posts: 6
Joined: March 27, 2011

Re: Livestream site question

Postby Jason Caldwell » April 4th, 2011, 3:38 am

Please take a look at the instructions I provided here for JW Player. The same basic concept applies to all embedded media. Although I've never tested with Silverlight, I suspect it will work just fine.
viewtopic.php?f=4&t=2937&p=8949#p8949

Please follow the JW Player example here. If you still can't get it to work, try it with a Download Key. Download Keys are discussed in your Dashboard under:
s2Member -> Download Options -> Advanced Download Restrictions.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests

cron