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™

video help - protected files won't show up

s2Member Plugin. A Membership plugin for WordPress®.

video help - protected files won't show up

Postby cote289 » May 27th, 2011, 4:49 pm

I've searched the forums and found that flowplayer should work fine without issue, but i'm having some trouble with it

I'm building my site at www.trulysimpletech.com Its rough, so don't make too much fun of me yet.

here is a test post i did for the videos
http://trulysimpletech.com/2011/05/test-video/

the flowplayer with the protected video does not work. it does work just fine with the same video in an unprotected location.

Here is the code I used in the post:

test video here

protected file
[flowplayer src='http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&s2member_file_inline=yes']
nonprotected file
[flowplayer src='http://trulysimpletech.com/videotest/testmovie.mp4']

I have no download restrictions set up, all levels are unlimited and I have setup the video extensions in the inline settings for the s2 plugin.

Please let me know what i'm doing wrong and how to fix it

thank you

Ben
User avatar
cote289
Registered User
Registered User
 
Posts: 16
Joined: May 27, 2011

Re: video help - protected files won't show up

Postby Cristián Lávaque » May 28th, 2011, 1:45 am

Hi Ben.

Could you try adding a download key to it? WP Admin -> s2Member -> Download Options -> Advanced Download Restrictions

Let me know if 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: video help - protected files won't show up

Postby cote289 » May 28th, 2011, 12:06 pm

still nothing

here's what i did. let me know if its right.

protected file
[flowplayer src='http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&s2member_file_inline=yes']
nonprotected file
[flowplayer src='http://trulysimpletech.com/videotest/testmovie.mp4']
downloadkey file
[flowplayer src='http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&s2member_file_download_key=<?php echo s2member_file_download_key("video/testmovie.mp4"); ?>']

here's the page to see the results:
http://trulysimpletech.com/2011/05/test-video/

thanks for the help
what should i try next?

Ben
User avatar
cote289
Registered User
Registered User
 
Posts: 16
Joined: May 27, 2011

Re: video help - protected files won't show up

Postby sgtcory » May 28th, 2011, 12:24 pm

Hello Ben,

In your download key, you are trying to execute php within the post - specifically here :

Code: Select all
<?php echo s2member_file_download_key("video/testmovie.mp4"); ?>


You'd wither need to call this via a custom page, or install a plugin to execute php in your post :

http://wordpress.org/extend/plugins/php ... on-plugin/

Let me know how it goes!

EDIT - I have not used that plugin with the latest version of WP - so I do not know how stable it is. Worth a shot.
Webmaster Services - http://rentedweb.com
User avatar
sgtcory
Experienced User
Experienced User
 
Posts: 24
Joined: May 28, 2011

Re: video help - protected files won't show up

Postby Cristián Lávaque » May 28th, 2011, 1:25 pm

sgtcory is correct, your PHP is not being executed. You need a plugin that allows you to execute PHP in your post. It could be the one he mentions, which I haven't tried, or Exec PHP http://wordpress.org/extend/plugins/exec-php/
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: video help - protected files won't show up

Postby cote289 » May 28th, 2011, 9:13 pm

thanks i'll look into those

Is there an easier way to do video than what i am trying? '

I've seen some posts of others doing video and i'm just looking for the easiest way. Flowplayer looked like the easy choice as it was said to work without issue in other forums.

appreciate any advice on the video part

Ben
User avatar
cote289
Registered User
Registered User
 
Posts: 16
Joined: May 27, 2011

Re: video help - protected files won't show up

Postby Cristián Lávaque » May 28th, 2011, 10:23 pm

Hmm... I don't know. I think the download key is the only way protected files were able to playback with FlowPlayer... You could try other players like JW Player, maybe?
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: video help - protected files won't show up

Postby Harty » May 29th, 2011, 3:42 am

Hi. Haven't checked what I am about to say... But wonder if flow player requires video files to be in a flow player folder. You might have an adoption to alter the source folder in flow player as the place for it to call your video files. I.e., you 'tell' flow player the full address of the video folder within s2member's protected area.
Just an idea...
User avatar
Harty
Registered User
Registered User
 
Posts: 104
Joined: April 27, 2011
Location: New Zealand

Re: video help - protected files won't show up

Postby cote289 » May 29th, 2011, 11:06 am

@Harty

I've given flow player the full address within the s2 protected folder and its still a no go. I tried both with inline and download key, but neither works.

flow player works fine if you give it the address of an unprotected file

Ben
User avatar
cote289
Registered User
Registered User
 
Posts: 16
Joined: May 27, 2011

Re: video help - protected files won't show up

Postby Cristián Lávaque » May 29th, 2011, 11:43 am

Ben, the key test in your page still has this address to the file:
Code: Select all
http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&amp;s2member_file_download_key=&lt;?php echo s2member_file_download_key(\&quot;video/testmovie.mp4\&quot;); ?&gt;


As you can see, instead of a key, the PHP code is there, looks like the <?php and ?> tags got changed somehow, probably the visual editor. Could you edit your test so that an PHP is actually executed and you get a key there and see if that solves your problem? :)
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: video help - protected files won't show up

Postby cote289 » May 29th, 2011, 11:56 am

the example for the download key is this:

http://trulysimpletech.com/?s2member_fi ... nload_key=<?php echo s2member_file_download_key("example-file.zip"); ?>

is that the right code I should be putting in the flowplayer address?
User avatar
cote289
Registered User
Registered User
 
Posts: 16
Joined: May 27, 2011

Re: video help - protected files won't show up

Postby Cristián Lávaque » May 29th, 2011, 12:29 pm

Correct. Just make sure you have Exec PHP plugin installed and you only edit that page with the HTML editor, not the Visual one (it changes the < and > to their HTML entities &lt; and &gt;, which is what you had that I mentioned above).
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: video help - protected files won't show up

Postby cote289 » May 29th, 2011, 4:07 pm

thanks, I installed the exec php plugin and corrected the code you mentioned above and still have the same results

what should I try next?

http://trulysimpletech.com/2011/05/test-video/

anyone else doing video with this plugin?

Ben
User avatar
cote289
Registered User
Registered User
 
Posts: 16
Joined: May 27, 2011

Re: video help - protected files won't show up

Postby Cristián Lávaque » May 29th, 2011, 9:04 pm

I still see the PHP code instead of the key there:

Code: Select all
http://trulysimpletech.com/?s2member_file_download=video/testmovie.mp4&amp;s2member_file_download_key=&lt;!--?php echo s2member_file_download_key(\&quot;video/testmovie.mp4\&quot;); ?--&gt;


Although now it looks like it's inside an HTML comment. :|
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: video help - protected files won't show up

Postby drbyte » May 29th, 2011, 10:56 pm

Wow, that's some serious embed code :) Well, we can't see the movie because we are not logged in. http://trulysimpletech.com/?s2member_fi ... tmovie.mp4

the video folder...is it set to 755 or 777?
Try this! Copy the .htaccess that you have under the s2 plugin folder to the /video folder

Sam
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010

Re: video help - protected files won't show up

Postby cote289 » May 30th, 2011, 2:13 pm

sorry, forgot to include a login for you guys

you can use this:
username: joblo
password: password123
User avatar
cote289
Registered User
Registered User
 
Posts: 16
Joined: May 27, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron