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.

About: Philly

Happy to help if asked, give me a tweet @Philly_Max


My Favorite Topics

Viewing 11 topics - 1 through 11 (of 11 total)
Topic Count Last Reply
Memberships and Buy Now with ccBill

By:  Some Dude in: Community Forum

voices: 2
replies: 6

3 years, 12 months ago  Some Dude

Download Counter Not Resetting

By:  Tony Schwartz in: Community Forum

voices: 2
replies: 4

4 years, 3 months ago  Raam Dev

CCBill not demoting as of 120601 1 2

By:  Lee Keels in: Community Forum

voices: 4
replies: 30

4 years, 5 months ago  Jason (Lead Developer)

Mailchimp Integration Without Double Opt-In

By:  Uli Iserloh in: Community Forum

voices: 3
replies: 3

4 years, 6 months ago  Cristián Lávaque

s2member, jw player, iPad, NOT happy together

By:  Mary May in: Community Forum

voices: 2
replies: 7

4 years, 6 months ago  Mary May

CloudFront Err 400: Unable to del existing…

By:  Eran in: Community Forum

voices: 4
replies: 5

4 years, 7 months ago  Cristián Lávaque

Slow response searching through users

By:  Skip Shean in: Community Forum

voices: 2
replies: 3

4 years, 7 months ago  Raam Dev

Facebook integration advice

By:  Brett Adcock in: Community Forum

voices: 3
replies: 2

4 years, 7 months ago  Jason (Lead Developer)

s2 pro form : login with email id & pw

By:  RK Creative in: Community Forum

voices: 3
replies: 6

4 years, 8 months ago  RK Creative

Customer can't buy a post and a membership

By:  Lee Keels in: Community Forum

voices: 4
replies: 18

4 years, 8 months ago  Cristián Lávaque

User/Member Export CSV is Garbled

By:  Nigel in: Community Forum

voices: 3
replies: 9

4 years, 10 months ago  Cristián Lávaque

Viewing 11 topics - 1 through 11 (of 11 total)

Topics I'm Subscribed To

Viewing 25 topics - 1 through 25 (of 120 total)
Topic Count Last Reply
Can't inline my jpg's from protected CF/S3

By:  Colin Erwin in: Community Forum

voices: 3
replies: 5

3 years, 4 months ago  Mike (Volunteer Moderator)

Payment can be processed when using a card

By:  Rosie Millen in: Community Forum

voices: 2
replies: 3

3 years, 4 months ago  Rosie Millen

Block Downloads in advanced JWPlayer Setup

By:  Steve Graham in: Community Forum

voices: 2
replies: 1

3 years, 4 months ago  Philly

DONOTCACHEPAGE constant is defined. ** Why?

By:  olly connelly in: Community Forum

voices: 3
replies: 10

3 years, 5 months ago  olly connelly

JW pro 6.5 intergration errors.

By:  Colin Erwin in: Community Forum

voices: 3
replies: 5

3 years, 5 months ago  Bruce

Ex-members still have access after expired…

By:  Shawn Barry in: Community Forum

voices: 3
replies: 8

3 years, 5 months ago  Cristián Lávaque

Videos not playing on I-Pad

By:  Ulrich Peise in: Community Forum

voices: 3
replies: 8

4 years, 2 months ago  Ulrich Peise

Download links 1 2

By:  Jeremy Pigg in: Community Forum

voices: 5
replies: 29

4 years, 2 months ago  Jason (Lead Developer)

Refund inevitable? Please help.

By:  John Ondrey in: Community Forum

voices: 5
replies: 25

4 years, 3 months ago  Cristián Lávaque

Moved to a new host, members locked out

By:  Philip Trauring in: Community Forum

voices: 2
replies: 2

4 years, 3 months ago  Philip Trauring

Help! My costumer can not login

By:  Nicolas Galarza in: Community Forum

voices: 3
replies: 5

4 years, 3 months ago  Raam Dev

New signups not being written to WordPress DB

By:  Shawn Barry in: Community Forum

voices: 2
replies: 16

4 years, 3 months ago  Shawn Barry

Paypal transactions not going through

By:  Jon Cooper in: Community Forum

voices: 2
replies: 14

4 years, 3 months ago  Philly

Editing Cross Domain for Viral videos

By:  luisrosario in: Community Forum

voices: 4
replies: 20

4 years, 3 months ago  Philly

Site gone crazy with update

By:  Darryl Shipp in: Community Forum

voices: 4
replies: 10

4 years, 3 months ago  Bruce

S2 Member not working on Firefox or Chrome

By:  ourkidsasd in: Community Forum

voices: 2
replies: 1

4 years, 3 months ago  Philly

email address as username?

By:  Michaela in: Community Forum

voices: 5
replies: 10

4 years, 3 months ago  Michaela

s2Member video shortcodes 1 2

By:  Philly in: Community Forum

voices: 8
replies: 37

4 years, 3 months ago  RossGrant

login redirection problem when domain mapping

By:  Ansel Gough in: Community Forum

voices: 4
replies: 10

4 years, 3 months ago  Jason (Lead Developer)

no redirect to membership options page

By:  Scott Cappos in: Community Forum

voices: 4
replies: 17

4 years, 3 months ago  Scott Cappos

CCAPS and content dripping

By:  cassel in: Community Forum

voices: 3
replies: 7

4 years, 3 months ago  Cristián Lávaque

How to add New Membership Level easily

By:  Juan Torrijos in: Community Forum

voices: 2
replies: 2

4 years, 3 months ago  Juan Torrijos

S2Member Pro wifth Relevanssi Search Plugin

By:  Ralph Cabage in: Community Forum

voices: 2
replies: 1

4 years, 3 months ago  Philly

level 0 members getting into paid areas

By:  lisa carr in: Community Forum

voices: 4
replies: 20

4 years, 3 months ago  Eduan

Solution: s2member javascript head to footer

By:  TJ in: Community Forum

voices: 2
replies: 1

4 years, 3 months ago  Philly

Viewing 25 topics - 1 through 25 (of 120 total)

My Latest Replies (From Various Topics)

Viewing 25 replies - 1 through 25 (of 267 total)
Author Replies
Author Replies
Posted: Thursday Aug 15th, 2013 at 6:48 am #55891

Please also use the text editor and Not the visual editior

Posted: Thursday Aug 15th, 2013 at 6:44 am #55890

Hi Colin,

so

<img src="[s2File download="test.jpg" /]" />

Doesn’t work?

What does the page look like when you try this? Is there a placeholder indicating where the image should be?

As a test can you try this for me, replacing test with the correct path.

<img src="[s2File download="test.jpg" /]" style="width: 150px; height: 150px; border: solid 2px red;"/>

Then report back

thanks

Posted: Wednesday Aug 14th, 2013 at 7:04 pm #55796

Also that error code is

The merchant account attempting the transaction is not a business account at PayPal. Check your account settings.

Posted: Wednesday Aug 14th, 2013 at 6:55 pm #55795

Do you have an SSL certificate? It didn’t appear so when I just checked

Posted: Wednesday Aug 14th, 2013 at 5:08 am #55745

Its not currently possible with s2,

With RTMP playlists in JW6 you have to load all files in a manifest file (SMIL in your case), loaded as a single source.

That file would need to be created dynamically and on the fly, it is possible but would require some custom coding.

If you can get a copy of JW5 you can achieve what you want with s2 using a very similar approach as what you have above.

Posted: Thursday Aug 8th, 2013 at 1:22 pm #55428

You could try things like google mod pagespeed if your running apache or varnish, although I’ve found them both to be a hassle with membership sites.

The best gain in speed that I’ve achieved is serving all static content via CDN using two different CNAMES and serving all javascript asynchronously

Posted: Thursday Aug 8th, 2013 at 7:22 am #55418

Do you have full control over your server?

Posted: Thursday Aug 8th, 2013 at 6:59 am #55413

If you cache pages for logged in users (which are likely to be members) then you are going to serve them to non-members that are not logged in, I’m not aware of any option which allows a cache to be created for logged in and a separate cache for logged out members.

So I would advise against it, anyhow there is an option in the ‘general’ section on the ‘page cache’ settings page in W3TC to cache pages for logged in users

Posted: Thursday Aug 1st, 2013 at 7:02 pm #54679

the page is not restricted but downloads are unlimited to level 1 and above, so restricted for me

Posted: Thursday Aug 1st, 2013 at 6:53 pm #54675

I’m not able to access that video because its restricted to at least level 1.

Anyway what happens when you click on the ‘You have access lets try a direct link .’ on an ios device?

And currently its playing without problems on the desktop?

Posted: Thursday Aug 1st, 2013 at 6:43 pm #54674

Try

<?php if ( current_user_is( "s2member_level1" ) ) { ?>
    Some premium content for Level 1 Members.
<?php } else if ( current_user_is( "s2member_level0" ) ) { ?>
    Some content for Free Subscribers.
<?php } else { ?>
    Some public content.
<?php } ?>
Posted: Thursday Aug 1st, 2013 at 6:35 pm #54670

you can email ___________ but please note I’m not part of s2 but am happy to have a quick look

Posted: Thursday Aug 1st, 2013 at 6:20 pm #54665

Hi Michael,

What is the error you’re getting?
What version of jw are you using?

Try the code below, its not going to fix anything just help debug this, it will render a direct link, click on it and the ios device should start playing in quicktime or whatever it is.

Have you a link you can share?

<?php
// Configuration.
$s2_jw_config["jwplayer"] = "/jwplayer/"; // Relative URL path to JW Player files directory.
$s2_jw_config["mp4_video_file_name"] = "chapter_5.mp4"; // Name of your MP4 test file.
// Don't edit anything else below unless you know what you're doing.
?>
<div id="jw-container">JW Player® appears here.</div>
<script type="text/javascript" src="<?php echo $s2_jw_config["jwplayer"]; ?>jwplayer.js"></script>


<?php // A direct URL to the RTMP source; counting the file against the current User in real-time.
$cfg = array ("file_download" => $s2_jw_config["mp4_video_file_name"], "url_to_storage_source" => true, "count_against_user" => true); ?>


<?php // API Function <span class="s2-hilite s2-mono">s2member_file_download_url()</span> returns false if access is denied to the current User.
if (($mp4 = s2member_file_download_url ($cfg, "get-streamer-array"))) { ?>


   <script type="text/javascript">
       jwplayer('jw-container').setup({
               playlist:
                   [{
                       sources: // List all available sources.
                           [
                               {type: 'rtmp', file: '<?php echo $mp4["streamer"]; ?>/mp4:<?php echo $mp4["file"]; ?>'},
                               {type: 'mp4', file: '<?php echo $mp4["url"]; ?>'}
                           ]
                   }],
               primary: 'flash' /* Try Flash® RTMP first, fallback on HTML5 or direct download of MP4 file. */,
               width: 640, height: 360 // Set video dimensions for all sources.
           });
   </script>
   
   You have access lets try a <a href="<?php echo $mp4["url"]; ?>">direct link </a>.


<?php } else /* Access is denied to the current User. */ { ?>
   Sorry, you do NOT have access to this file.
<?php } ?>
Posted: Tuesday Jul 23rd, 2013 at 5:28 am #53853

Ok in that case can you download and run the server scanner test tool http://www.s2member.com/kb/server-scanner/ it sounds like your server doesn’t have openssl installed but this test will confirm it.

Who’s hosting your site?

Thanks

Posted: Monday Jul 22nd, 2013 at 7:39 am #53811

Is this the first attempt at integration or was it working before?

Posted: Monday Jul 22nd, 2013 at 7:33 am #53810

Hey Cristián,

The problem I’ve found is when members cancel recurring subscriptions via ccbill, Ive not looked into the process a great deal, but either ccbill is not notifying s2 via the datalink intergration or s2 isn’t requesting the information.

I know you have to be approved for this at ccbill so that could be the issue (but not in my case), but my guess is that it never really works that well and is probably why ccbill now have a webhooks feature, which will automatically post cancellation information to a url that you choose.

Perhaps when Jason has time he could look into and support that feature as it will most likely be more reliable.

Thanks

Posted: Sunday Jul 21st, 2013 at 11:34 am #53782

its a problem with DataLink Integration, check that the user that has access to it has the correct whitelisted ip address (the ip address of your server) in your ccbill settings, anyhow i’ve never found that it works and ideally s2member needs to upgrade its integration to use ccbills webhooks events

Posted: Thursday Jul 11th, 2013 at 4:27 pm #53316

Your right RTMP switching will only work with a smil file.

However as the videos need to be protected with expiring links the smil has to be generated on the fly i.e it doesn’t exist and only gets created once requested.

This is something I’m currently working on, it seems rather messy and complicated, anyhow I’m going to do it like so:

<div id="myElement"></div>

	<script>
	jwplayer("myElement").setup({
		playlist: [{
			image: "",
			sources: [{ 
            	file: "path/to/file/smil.php?file_name_720=video-720&file_name_480=/sub-directory/video-480",
            	type: "rtmp"
            }]
        }],
        width: "100%",
        aspectratio: "16:9",
        primary: "flash",
        
    });
	</script>

Notice that the smil file can be a php file as long as you set type to rtmp. As you can see I’m passing some variables with the file name, which i will extract and use as reference for my video file locations.

The smil file:

<?php

// GET our file name+location variables 
$vid_720 = htmlspecialchars($_GET["file_name_720"]);
$vid_480 = htmlspecialchars($_GET["file_name_480"]);

// here is my todo section where the function to create the protected urls will be created
// perhaps we can include s2member's url signing files here and do something like

include 'the/s2member/files/we/need/not/sure/which/ones.php';

$signed_url_720 = do_shortcode('[s2File download="' . $vid_720 . '" url_to_storage_source="true" get_streamer_json="true" /]')

$signed_url_480 = do_shortcode('[s2File download="' . $vid_480 . '" url_to_storage_source="true" get_streamer_json="true" /]')



?>
<smil>
  <head>
    <meta base="rtmp://yourdistro.cloudfront.net/cfx/st/" />
  </head>
  <body>
    <switch>
      <video src="mp4:<?php echo $signed_url_480 ?>" height="480"  />
      <video src="mp4:<?php echo $signed_url_720 ?>" height="720"  />
    </switch>
  </body>
</smil>

Well I’m going to do something along those lines, perhaps someone can chip in if they know what files need to be included to sign the urls or if they can think of a better way

Posted: Tuesday Oct 16th, 2012 at 7:01 pm #28606

Hmm,

It may not be an issue but the way your naming paths and directories is unusual, I’m not sure what effect commas and spaces have on what is being rendered.

Could you change your file structure to something like:

beginners-course/lesson-14-f-major-exercises/lesson14.mp4

and then update the shortcode accordingly.

See if that helps

Posted: Tuesday Oct 16th, 2012 at 11:30 am #28571

Hi Ulrich,

With the plugin installed you use a shortcode instead of what you have above.

The equivalent for the above as a shortcode would be

[s2video video="lesson1.mp4" html5="true" download="true" width="660" height="371"]

video=”the file relative to your bucket”

so if lesson1.mp4 is in a folder called lessons in your amazon bucket, then video= would be video=”lessons/lesson1.mp4″

setting html5 and download to true sets the fallback for ipads etc, this does not necessarily mean that they will play as the file type still has to be compatible.

Just to make sure your file is compatible try playing it on your ipad without protecting it with s2member, if you dont have any joy with the shortcode.

Let us know how you get along :)

Posted: Wednesday Oct 3rd, 2012 at 4:45 am #27306

I don’t think the certificate is installed correctly, as navigating to https:// manually redirects to http://

Posted: Tuesday Oct 2nd, 2012 at 5:28 pm #27267

Sorry Jeremy but I’m not sure what it could be.

Lets see what Cristián or Raam thinks?

While your waiting can you check that the url your being directed to when you get the access denied message matches the url given for your ‘download’ distribution that s2member created in cloudfront. Can’t see why it wouldn’t but you never know.

Posted: Tuesday Oct 2nd, 2012 at 4:19 pm #27256

Its strange that the streaming is working but not the download.

Can you post the code your using to make this file stream without problem

‘Leilani_Kai_vs_Taeler_Hendrix.mp4 ‘

can you also locate that file in your bucket, click on it, view properties and copy and paste the link here that amazon provides.

Thanks

Posted: Monday Oct 1st, 2012 at 6:30 pm #27144

Not necessarily as amazon gives the same message if you’re trying to access something that doesn’t exist at that location.

Can you double check your using the correct file name and correct path.

remember that you cannot download from the cloudfront url that was setup for the streaming.

<a href="[s2File download="file-relative-to-your-amazon-bucket.mp4" /]">download</a>
  • This reply was modified 4 years, 3 months ago by  Philly.
Posted: Monday Oct 1st, 2012 at 6:11 pm #27139

Can you try this please:

<a href="[s2File download="yourvideo.mp4" /]">download</a>

Also are the files in the top level of your bucket or a sub-folder?

Viewing 25 replies - 1 through 25 (of 267 total)

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.