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.

Philly


My Latest Replies (From Various Topics)

Viewing 25 replies - 176 through 200 (of 267 total)
Author Replies
Author Replies
Posted: Wednesday Jul 4th, 2012 at 12:02 pm #18306

@ David

Cool Thanks.

@ boudewijn

If you only needed the spoiler part try the plugin above, it shouldn’t conflict.

Posted: Wednesday Jul 4th, 2012 at 10:13 am #18297

Here is a working shortcode for the folllowing setup:

MP4, s3, cloudfront, CNAME’s with a download key.

First tries streaming via rtmp then falls back to http with html5 fallback.

This is stripped down, can be adapted to use multiple fallbacks and JWPlayer plugin integration(I have it working with HD plugin)

Happy to bundle this into a mini plugin with customization, if requested.

function s2video_function($atts, $content) {
	extract( shortcode_atts( array(
				'file' => '',
				'image' => '',
				'width' => '630',
				'height' => '335'
				), $atts ) );


$mp4 = do_shortcode('[s2File download="'.$file.'" url_to_storage_source="true" count_against_user="true" get_streamer_json="true" /]');

	$return = '
<script type="text/javascript" src="/jwplayer/jwplayer.js"></script>
<video id="videoplayer"></video>
<script type="text/javascript">
	var mp4 = '.$mp4.' ;
</script>
				
<script type="text/javascript">
    if(typeof mp4 === \'object\') 
        {
            jwplayer("videoplayer").setup({
				image: \'/wp-content/uploads/'. $image . '\' ,
				modes:
            [
                {type: "flash", provider: "rtmp", src: "/jwplayer/player.swf",
                    config: {streamer: mp4[\'streamer\'], file: mp4[\'file\']}},
            
                {type: "html5", provider: "video",
                    config: {file: mp4[\'url\']}},
            
                {type: "download",
                    config: {file: mp4[\'url\']}}
            ],
				width: '.$width.', height: '.$height.',
              });
        }
    else
        {
            document.write(\'Sorry, you do NOT have access to this file.\');
        }
</script>
				
					';
					return $return;
}
add_shortcode('s2video', 's2video_function') ;

Usage:

[s2video file="relative to root of S3 Bucket" image="relative to wp-content/uploads/" width="defaults to 630" height="defaults to 335"]
Posted: Sunday Jul 1st, 2012 at 2:55 pm #18041

What code are you currently using that works with the key?
Would be interested to see that

Posted: Sunday Jul 1st, 2012 at 2:35 pm #18039

@ luisrosario

I’m able to get it to output with the key using

s2member_file_download_key( $file )

but the player throws not found or cross domain errors at me, even though the link with the generated key works if directly put in the browser.

Also I’m not sure how to get the shortcode working with rmpt yet. And to be honest I’m not sure exactly how it all works yet.

Posted: Sunday Jul 1st, 2012 at 2:22 pm #18037

Glad its working :)

Its a serialized associative array in no specific order. Each *paying* customer will have the “level” array element, indicating the first paid registration time, at whatever Membership Level they paid for initially. The values are stored as a Unix Timestamp.

Posted: Sunday Jul 1st, 2012 at 12:53 pm #18031

Ok then that plugin I mentioned appears to do everything you need

http://wordpress.org/extend/plugins/white-label-cms/

Posted: Sunday Jul 1st, 2012 at 12:43 pm #18027

Yes perhaps s2member could increase their IP restriction limit on this forum?
Your not the first person to be locked out.

I’m not sure, that plugin does a lot of weirdness.

What parts do you need?

Have you looked at white-label-cms

Posted: Sunday Jul 1st, 2012 at 12:20 pm #18025

David,

I had a look and the available plugins and they look like massive overkill.

I whipped up this one that has only the functionality you need so is very light and hopefully wont conflict.

Feel free to use it but at your own risk!

http://dl.dropbox.com/u/40574414/spoiler-shortcode.zip

Usage:

[spoiler Title="This is a title"]And this is the content to hide[/spoiler]

So if you deactivate Shortcodes Ultimate and activate this one it should just work?

Posted: Sunday Jul 1st, 2012 at 11:40 am #18023

1) “503: Service Temporarily Unavailable
Too many IP addresses accessing one secure area!
Please contact Support if you need assistance. ”

Philly….but what do you understand? On s2member forum, on this forum! My account was BANNED!

2) I already tried to disable the plugins…but don’t works…registration page is a wp page modified by s2member code also! the problem is definitely in the s2member code!

before answering, at least, try to understand what are the real problems, starting from my account that was banned because I’ve probably try to login many times in this forum…please.

Thanks

Despite your rudeness and ignorance I have solved your problem, disable ‘AG Custom Admin’ and your problem will be solved

Posted: Sunday Jul 1st, 2012 at 10:13 am #18019

How many do you need? And for what functionality?

Posted: Sunday Jul 1st, 2012 at 10:11 am #18017

Hello MovLabTS,

503: Service Temporarily Unavailable
Too many IP addresses accessing one secure area!
Please contact Support if you need assistance.

s2member use’s unique IP access restrictions to prevent things like password sharing, the default is 5 IP’s per username to increase this you need to change this setting:

Maximum Unique IP Addresses Allowed

located:

Dashboard -› s2Member® -› Restriction Options -› Unique IP Access Restrictions

password strength indicator don’t works

It’s not because of s2member its a conflict with another plugin and maybe even your theme. I see you’re loading a lot of javascript, some files more than once.

Please disable your plugins one by one until it works then you will see which one is causing the conflict, then try reverting back to the default theme if plugins are not the issue.

Posted: Sunday Jul 1st, 2012 at 10:02 am #18016

Hi Tze,

s2member use’s unique IP access restrictions to prevent things like password sharing, the default is 5 IP’s per username to increase this you need to change this setting:

Maximum Unique IP Addresses Allowed

located:

Dashboard -› s2Member® -› Restriction Options -› Unique IP Access Restrictions

Posted: Sunday Jul 1st, 2012 at 9:53 am #18015

@ Hody
@ Takis

Have you tried using s2members import/export functionality?

Dashboard -› s2Member® -› Import/Export -› s2Member® Options (Import/Export)

Is it just s2members settings that are lost or are all settings in general including wordpress settings lost?

Posted: Sunday Jul 1st, 2012 at 9:42 am #18013

There are many other problems that plugin will cause that have been well documented here.

Posted: Saturday Jun 30th, 2012 at 9:17 pm #18001

@ luisrosario

A key so you can use this with cloudfront?

Posted: Saturday Jun 30th, 2012 at 9:06 pm #17999

I have s3 setup with cloudfront and thought I would just mess around creating a shortcode to use without a plugin.

This put in functions.php or used to make a mini plugin works for me

// video shortcode
function video_function($atts) {
   extract(shortcode_atts(array(
      'file' => '',
	  'width' => '630',
	  'height' => '335',
	   'image' => ''
   ), $atts));

   
   $return = '<div id="videoplayer"></div>
   
<script type="text/javascript" src="' . get_bloginfo( 'siteurl' ) . '/jwplayer/jwplayer.js"></script>

<script type="text/javascript">
        {
            jwplayer("videoplayer").setup({
				image: "/wp-content/uploads/' . $image . '",
				file: "/wp-content/plugins/s2member-files/' . $file . '",
				modes:
            [
                {type:"flash","src":"' . get_bloginfo( 'siteurl' ) . '/jwplayer/player.swf"},
            
                {type: "html5", provider: "video",
                    config: {file: "/wp-content/plugins/s2member-files/' . $file . '" }},
            
                {type: "download",
                    config: {file: "/wp-content/plugins/s2member-files/' . $file . '" }}
            ],
				width: '.$width.', height: '.$height.',
                });
        }
        
</script>';

   return $return;
}

add_shortcode('video', 'video_function') ;

Usage

[video file="videos/myvideo.mp4"]

optional parameters: width and height default to 630px and 335px respectively if not specified, and image

This is just a basic implementation and assumes jwplayer files are located http://yoursite.com/jwplayer/here

and that your just using mp4 as the file type.

This is a stripped down version I have it working with the jwplayer plugins too.

Posted: Saturday Jun 30th, 2012 at 7:09 pm #17992

Thats brilliant it all works fine for me too under certain conditions and the signature is being created.

So I can’t see a problem with using that plugin and your right its so much easier.

I couldn’t get it to work using /?s2member_file_download=/, it throw a cross domain warning at me and I couldn’t get it to work using my CNAME’s.

It just makes me wonder why s2member doesn’t have a shortcode then unless there is a limitation I havent thought of.

Anyway I’m sure a support rep will enlighten us if there is.

Posted: Saturday Jun 30th, 2012 at 5:50 pm #17988

Ann,

Where are your videos located?
wp-content/uploads, wp-content/plugins/s2member-files/ or in an amazon s3 bucket?

Posted: Saturday Jun 30th, 2012 at 3:57 pm #17980

Hi Ann,

Are you using AmazonS3/Cloudfront then?

However I am still confused on what the difference is from using the code you provide to stream the video and inserting the JW Player with an External URL.

Do you mean using longtail’s hosted copy of the video player?

If so would not recommend using it as you have no control over it, much better to use your own copy.

Can you post the code your using that works?

Thanks

Posted: Saturday Jun 30th, 2012 at 2:13 pm #17977

can you try changing

/s2member-pro/includes/classes/exports-in.inc.php

at line #239 find this:

header ("Content-Encoding:");

and change it to

header ("Content-Encoding: none");
Posted: Saturday Jun 30th, 2012 at 12:55 pm #17970

Zoe,

When you upgraded to v120622 that hack would have been overwritten, did you redo it then?

Posted: Saturday Jun 30th, 2012 at 10:34 am #17962

Its easier than I thought.

I got this working (with the php exe plugin enabled)

<?php

$_g = stripslashes_deep ($_GET);


if (isset ($_g["_s2member_seeking"]["post"]))

	$post_id = esc_html ($_g["_s2member_seeking"]["post"]) ;
	
	$post_object = get_post( $post_id );

    echo $post_object->post_excerpt;
	
?>

s2member has some docs here:

Dashboard -› s2Member® -› API / Scripting -› Membership Options Page Variables (MOP Vars).

Posted: Friday Jun 29th, 2012 at 6:20 pm #17892

Hi Frank,

That sound rather complex, I’m sure someone can help you with that but wouldn’t a better way be to do a conditional check within the post like

[s2If is_user_logged_in()]
   
    The full post for logged in users
    
    Note: You can alter this to check that the user is logged in as a paying customer.
    
[/s2If]

[s2If !is_user_logged_in()]

    They're NOT logged in.
    
    The excerpt here.
    
    Then perhaps a login/register link here (You need to login or register to see the rest of this post.)
    
    Marketing speech here?    

[/s2If]
Posted: Friday Jun 29th, 2012 at 6:09 pm #17891

HI Jim,

Is there anything on s2member’s side that needs to be fixed?

You cannot use your own CNAME’s because any CNAME you use will not be secure and will generate mixed content warnings and such.

You must link all your static content via https://yourdistro.cloudfront.net not cdn.yoursite.com
So your settings in total cache should point to there.
That should solve the issue when trying to load your stylesheets when using the https:// prefix.

Also with regards to total cache, make sure you’re not caching and or serving s2members javascript file that is dynamic.

Are you using push or pull orgin in your cdn settings for total cache?

I think the problems your having are to do with your CNAME setup and maybe DNS?.

I saw this statement in another of your posts

I have a subdomain with cname redirect to my cloudfront/s3. My s3 bucket contains portions of wp-content and wp-includes.

Can you explain more in detail how your site is setup and how your using CNAME’s

How many CNAME’s are you using and what and where are they redirecting to?

How are you enforcing the CNAME’s? via plugins, your web host DNS manager or both?

When I add https:// to the front of my membership options page, the page seems to lose all its css styling and comes up like unformatted html. Same is true of the homepage. I’ll contact my host if they have any ideas.

So the redirect problem is solved if you use https:// rather than append ?s2-ssl=yes is that right?

That suggests to me that all your problems are caused by your use of cdn.yoursite.com

Posted: Friday Jun 29th, 2012 at 4:38 pm #17887

Zoe,

The hack that Jason suggested is also used to solve csv export issue so is it still active on your installation or has it been over written by an upgrade?

Viewing 25 replies - 176 through 200 (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.