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.

Home Forums Bruno

Bruno


My Latest Replies (From Various Topics)

Viewing 15 replies - 26 through 40 (of 40 total)
Author Replies
Author Replies
Posted: Friday Nov 9th, 2012 at 6:22 am #31120
Bruno
Username: brunoedig

Hi Cristian, thanks for looking it up.

Yeah, I’m not sure why that error was showing up :(

At first I thought could be sth about S2member not being installed directly on the root, but that doesn’t look like it

Well hopefully it will be easy and quick to solve it :)

Posted: Thursday Nov 8th, 2012 at 6:24 pm #31078
Bruno
Username: brunoedig

Coolio! No worries, I get it now

Yeah Catalyst is great, it has a ton of hooks I can use to insert that shortcode to all post/pages easily

Thanks again!

Posted: Thursday Nov 8th, 2012 at 9:12 am #31025
Bruno
Username: brunoedig

Checked those 3 problems and I don’t think any of them apply.

So I just used the contact form and have sent my info your way.

I didn’t find a place to paste the exact url I’m testing the video, but in any case, this is the url: http://empreendedorefetivo.com.br/ede/uncategorized/teste-de-video

Thanks!

  • This reply was modified 4 years, 2 months ago by  Bruno.
Posted: Thursday Nov 8th, 2012 at 8:58 am #31024
Bruno
Username: brunoedig

Thanks Steve! I will check it out!

Posted: Thursday Nov 8th, 2012 at 6:56 am #31002
Bruno
Username: brunoedig

Hi,

checked all articles, tried all solutions, no good. Only difference is that when I set the basic download restrictions to 999999 every 1 day, it gives me this msg:

JW Player® appears here.

Fatal error: s2Member was unable to generate an RSA-SHA1 signature. Please make sure your installation of PHP is compiled with OpenSSL: `openssl_sign()`. See: http://php.net/manual/en/function.openssl-sign.php in /home/empefeti/public_html/ede/wp-content/plugins/s2member/includes/classes/utils-strings.inc.php on line 446

Please help.

I don’t mind giving my username and password to someone from the staff to check things up if they want, but I’ve followed instructions and this is not working.

Videos are not showing and I need this to be properly set up as my launch is coming closer and closer.

  • This reply was modified 4 years, 2 months ago by  Bruno.
Posted: Thursday Nov 8th, 2012 at 6:43 am #31001
Bruno
Username: brunoedig

Thanks mate! That helps!

And what is the best place to insert that code so all pages got it?

I use Catalyst theme so it’s quite easy to use hooks to insert that code where I wont.

I suppose it should be right after the tag, but I’m not sure. Perhaps inside the tag?

Thanks again!

Posted: Thursday Nov 8th, 2012 at 6:42 am #31000
Bruno
Username: brunoedig

AH it’s alright then. I really didn’t know and thought that perhaps there was some easy fix

No worries ;)

Thx!

Posted: Wednesday Nov 7th, 2012 at 3:56 pm #30932
Bruno
Username: brunoedig

Hi,

I’d be interested on this, more specifically on this:

(if user can't access your content)
	do JavaScript redirect to membership options page
(if user can access your content)
	show content

Any easy way to implement that?

Another quick question: even though I was able to to hide my posts on the homepage using that alternative view protection, some stuff still show up on my navbar, more specifically categories.

So I’ve tried restristring access to all categories but now what it will do it will show scattered posts in my menu navbar that were previously inside that catregory that is now restricted.

Solutions?

Well I guess I liked that first solution as I was planning to have something like Kajabi where if you go to a page not-logged in, it jsut redirect you to a simple page asking you to login.

How could I install something like that and where should I place that code?

Thanks!

Posted: Wednesday Nov 7th, 2012 at 12:04 pm #30914
Bruno
Username: brunoedig

Ok, some development. I believe the problem is within S2 parse of parameters because I’ve used JWplayer wizard and the video is showing up fine. Only problem is that I’ve temporarily set the video to public so I could test whether it was an authenticate issue or not.

So here’s the page: http://empreendedorefetivo.com.br/ede/uncategorized/teste-de-video

And here’s the code I’m using on that page (the 1st half is the code from JWPlayer wizard):

<script type='text/javascript' src='http://empreendedorefetivo.com.br/ede/jwplayer/jwplayer.js'></script>
 
<div id='mediaspace'>This text will be replaced</div>
 
<script type='text/javascript'>
  jwplayer('mediaspace').setup({
    'flashplayer': 'http://empreendedorefetivo.com.br/ede/jwplayer/player.swf',
    'file': 'https://s3-sa-east-1.amazonaws.com/s2-ede-files/analytics.mp4',
    'controlbar': 'bottom',
    'width': '470',
    'height': '320'
  });
</script>

============================

<?php
// Configuration.
$s2_jw_config["jwplayer"] = "http://empreendedorefetivo.com.br/ede/jwplayer/"; // Relative URL path to JW Player files directory.
$s2_jw_config["mp4_video_file_name"] = "analytics.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 `s2member_file_download_url()` 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({modes: /* JW Player®. */
        [
            /* First try real-time streaming with Flash® player. */
            {type: "flash", provider: "rtmp", src: "<?php echo $s2_jw_config["jwplayer"]; ?>player.swf",
                config: {streamer: "<?php echo $mp4["streamer"]; ?>", file: "<?php echo $mp4["file"]; ?>"}},
        
            /* Else, try an HTML5 video tag. */
            {type: "html5", provider: "video",
                config: {file: "<?php echo $mp4["url"]; ?>"}},
        
            /* Else, this is a safe fallback. */
            {type: "download", /* Download the file. */
                config: {file: "<?php echo $mp4["url"]; ?>"}}
        ],
        /* Set video dimensions. */ width: 480, height: 270
        });
    </script>

<?php } else /* Access is denied to the current User. */ { ?>
    Sorry, you do NOT have access to this file.
<?php } ?>

And this is the .mp4 file url (BTW, dunno why it says s3-sa-east when it is hosted on Sao Paulo. Dunno if this has anything to do with it):

https://s3-sa-east-1.amazonaws.com/s2-ede-files/analytics.mp4

I’ve set the JWplayer parameter to an absolute url to ensure it would pick it from the right place, but either way didn’t work.

My wordpress is installed not on the root but inside a folder, in this case /ede. So perhaps something is going on where the player can’t load from the right place. I’ve even tried setting absolute urls like below to ensure that wasn’t the issue:

<?php
// Configuration.
$s2_jw_config["jwplayer"] = "http://empreendedorefetivo.com.br/ede/jwplayer/"; // Relative URL path to JW Player files directory.
$s2_jw_config["mp4_video_file_name"] = "analytics.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="http://empreendedorefetivo.com.br/ede/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 `s2member_file_download_url()` 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({modes: /* JW Player®. */
        [
            /* First try real-time streaming with Flash® player. */
            {type: "flash", provider: "rtmp", src: "http://empreendedorefetivo.com.br/ede/jwplayer/player.swf",
                config: {streamer: "<?php echo $mp4["streamer"]; ?>", file: "<?php echo $mp4["file"]; ?>"}},
        
            /* Else, try an HTML5 video tag. */
            {type: "html5", provider: "video",
                config: {file: "<?php echo $mp4["url"]; ?>"}},
        
            /* Else, this is a safe fallback. */
            {type: "download", /* Download the file. */
                config: {file: "<?php echo $mp4["url"]; ?>"}}
        ],
        /* Set video dimensions. */ width: 480, height: 270
        });
    </script>

<?php } else /* Access is denied to the current User. */ { ?>
    Sorry, you do NOT have access to this file.
<?php } ?>

.. but that didn’t work either.

So after these tests I’m thinking the problem is when parsing the .mp4 file from amazon which is giving me trouble.

But I’ve followed s2member’s tutorial on setting up S3 and Cloudfront and I’ve already inserted my keys as instructed so I’m not sure what is the problem. I’ve also installed Exec-php and Raw html plugins as instructed on the video.

I’m also using a bucket in Sao Paulo but I don’t think that should be the problem since it should be getting the right url straight from amazon.

  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
Posted: Wednesday Nov 7th, 2012 at 11:01 am #30906
Bruno
Username: brunoedig

When you say “integrated with s3” you mean adding the keys, bucket names, etc. right? I followed that tutorial here to create that integration

I’ve tried both with only S3 and with S3/Cloudfront but I’m still getting the msg saying that I don’t have access :(

I’m getting the same error as you guys are getting: no access to file.

Have you guys been able to sort it out?

BTW, s2member support team, I need to figure this out ASAP .. so please please help :(

  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
  • This reply was modified 4 years, 2 months ago by  Bruno.
Posted: Wednesday Nov 7th, 2012 at 11:00 am #30904
Bruno
Username: brunoedig

Well it did help in a way, but I have no idea whatsoever what to edit to have that functionality :(

Any easy copy and paste solution I could use? Or some reference guide?

  • This reply was modified 4 years, 2 months ago by  Bruno.
Posted: Tuesday Nov 6th, 2012 at 7:14 pm #30826
Bruno
Username: brunoedig

Thanks a lot mate! That indeed helps!

Now I just need to figure out this http://www.s2member.com/forums/topic/jw-player-rtmp-streaming-mp4-amazon-s3/

:(

Posted: Tuesday Nov 6th, 2012 at 3:01 pm #30789
Bruno
Username: brunoedig

I’m having the exact same problem where I can’t see my videos.

I was logged in as an admin and I even set my post to a 0 post level restriction to find out if that was the case but to no avail.

Please help.

Posted: Thursday Oct 18th, 2012 at 1:09 pm #28871
Bruno
Username: brunoedig

Hi Cristian,

thx a lot. That has indeed helped :)

So levels it is :)

Cheers!

Posted: Wednesday Oct 17th, 2012 at 9:08 pm #28787
Bruno
Username: brunoedig

Humm I see

ok thanks for that :)

Another question: I plan to have a 3 level setup for my product (different prices and access to content)

I know I can do this with levels, but I was watching that custom capabilities video and then it talks about using custom capabilities instead of levels.

So I’m wondering which one I should use.

Bear in mind that I won’t be using Paypal buttons as described in the video, so I’m not sure if it will be too complicated to use those custom capabilities or if I’m just better off using levels.

Thx in advance!

Viewing 15 replies - 26 through 40 (of 40 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.