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 17 replies - 251 through 267 (of 267 total)
Author Replies
Author Replies
Posted: Friday Apr 13th, 2012 at 7:13 am #10719

Joanne,

What is the code in your functions.php file? Have you tried clearing the browser cache.

I have seen other plugins and themes interfere with login/out redirection, have you tried disabling plugins and or switching to the default theme to see what happens.

Posted: Friday Apr 13th, 2012 at 6:59 am #10717

Donald,

As far as I know s2Member always protects the login welcome page from public access so you could not redirect to the home page.

You could however make a login welcome page identical to your home page that users see when logging in.
To deal with the welcome video you can create a separate page that users see only on their first login using
this ‘1:http://example.com/welcome-video/’ that special url gets inserted in the input box under s2Member > General Options > One-Time-Offers ( Upon Login ), where you can also find more info.

Hope that helps

Posted: Tuesday Apr 10th, 2012 at 7:56 pm #10527

I don’t really want to remove the css/js.

@Duncan

You don’t need to remove the css all together just copy what you need and add it to your main stylesheet then stop s2member loading its version that will save you 1 http request.

As for making your site faster I had a quick look and would suggest combining the 5 stylesheets you have into 1 saving 4 http requests and doing the same with all the javascript.
Adding Expires headers to all your images so browsers don’t keep downloading will save lots of time.
Minifying, combining and gziping css and javascript files will save you more than enough time to compensate s2members loading times based on the results you linked too.

80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, Flash, etc. Reducing the number of components in turn reduces the number of HTTP requests required to render the page. This is the key to faster pages

Hope that helps

Posted: Tuesday Mar 27th, 2012 at 6:00 am #9194

Sorry Jason but that doesn’t seem to be working for me

Posted: Tuesday Mar 27th, 2012 at 5:19 am #9188

Yes in wordpress under settings>media settings>Uploading Files

Just change wp-content/uploads to wp-content/plugins/s2member-files under ‘Store uploads in this folder’ and untick ‘Organize my uploads into month- and year-based folders’

Not sure what would happen to existing content uploaded that way though

  • This reply was modified 4 years, 9 months ago by  Philly.
  • This reply was modified 4 years, 9 months ago by  Philly.
Posted: Tuesday Mar 27th, 2012 at 4:58 am #9183

Can you do this?

Create page:
http://www.example.com/issue1/ and protect that with s2member, then within that page link to the content with absolute url’s
\s2member-files\issue1\supporting_swf_html5_files\
\s2member-files\issue1\supporting_swf_html5_files\file.swf

those file are protected because they are in \s2member-files\

I don’t think its necessary to put the actual page in the protected folder

Posted: Thursday Mar 22nd, 2012 at 1:07 pm #8849

Hi Vashte,

The mistake I was making was this

'hd-2': {file: '<?php echo $mp4hd["url"]; ?>'},

should be

'hd-2': {file: '<?php echo $mp4hd["file"]; ?>'},

so you keep rtmp when switching file.

also to get the settings working pass them outside of the plugin like

/* Start plugins. */
    plugins: {	
               'hd-2': {file: '<?php echo $mp4hd["file"]; ?>'},
	       'lightsout-1':{},
               'timeslidertooltipplugin-2':{},
               'tweetit-1':{},
               'fbit-1':{}
    },
    'dock':'true', 
    'oncomplete':'on'

Hope that helps :)

Posted: Wednesday Mar 21st, 2012 at 9:35 pm #8796

Sorry I have just noticed only works in the html5 video mode and you get a stream not found message when switching to hd in flash mode, needs some more work

Posted: Wednesday Mar 21st, 2012 at 4:16 pm #8789

Hi Vashte,

I think this will work, remember you will need the php and raw html plugins to use this code in page/post.

I’m assuming your player is located yoursite.com/jwplayer/jwplayer.js and your skin yoursite.com/jwplayer/skins/stormtropper.zip

<div id="player"></div>
<script type="text/javascript" src="<?php echo get_bloginfo( 'siteurl' ); ?>/jwplayer/jwplayer.js"></script>

<?php /* A direct URL to the RTMP source; counting the file against the current User in real-time. */
$mp4_cfg = array ("file_download" => "SDvideo-location-here.mp4", "url_to_storage_source" => true, "count_against_user" => true); 
$mp4hd_cfg = array ("file_download" => "HDvideo-location-here-.mp4", "url_to_storage_source" => true /* Don't count variations. */); ?>

<?php if (($mp4 = s2member_file_download_url ($mp4_cfg, "get-streamer-array")) 
     	&& ($mp4hd = s2member_file_download_url ($mp4hd_cfg, "get-streamer-array"))) { ?>
<script type="text/javascript">
var options = {
    file: "<?php echo $mp4["url"]; ?>",
	image: "<?php echo get_bloginfo( 'siteurl' )  ; ?>/poster.jpg",
	height: 270,
    width: 480,
    skin: "<?php echo get_bloginfo( 'siteurl' ); ?>/jwplayer/skins/stormtropper.zip",
	modes: [
        { type: "flash", 
		  provider: "rtmp", 
		  src: "<?php echo get_bloginfo( 'siteurl' ); ?>/jwplayer/player.swf",
          config: {streamer: "<?php echo $mp4["streamer"]; ?>", file: "<?php echo $mp4["file"]; ?>"}
		},
		/* switch to html5 player if no flash support */
        { type: 'html5' },
		/* Download the file. */
        {type: "download", 
         config: {file: "<?php echo $mp4["url"]; ?>"}}
    ],
	/* Start plugins. */
    plugins: {	
                'hd-2': {file: '<?php echo $mp4hd["url"]; ?>'},
	 	'lightsout-1': {}
    },
    
};
jwplayer("player").setup(options);
</script>
<?php } else /* Access is denied to the current User. */ { ?>
    Sorry, this video does not exist yet or you do NOT have access to this file.
<?php } ?>

As for screenshot I dont think its supported in v5 and above.

Do you need more options like fallbacks?

P

  • This reply was modified 4 years, 9 months ago by  Philly. Reason: oops forgot script closing tag
Posted: Wednesday Mar 21st, 2012 at 6:18 am #8713

Hi Vashte,

I have just finished a complex embed like the one you need. What were your setting, plugins and skins if you let me know what you want to achieve I can talk you through it :)

P

Posted: Tuesday Mar 20th, 2012 at 2:30 pm #8637

Is it that the emails are being delivered and that the customers have to confirm subscription within the email to be subscribed to the list ‘Double Opt-In’ and that only 20% have so far opened that email and opted in?
20% is better than what I have lol.

Also your second post contains very sensitive information that I would recommend editing out :)

Posted: Tuesday Mar 20th, 2012 at 6:45 am #8598

Hello Peter,

s2Member uses unique IP access restrictions to prevent things link password and link sharing.
The default I think is 5 so if you have tried to access the site from more than 5 devices in 30 days you will get that message.

To change those settings log in as admin and navigate to s2member > Restriction Options >Unique IP Access Restrictions. There is also a button to reset the IP restriction logs.

If you would like to reset the restriction for one user and keep the default settings, find the user under users > edit user > s2Member Configuration & Profile Fields there you will find a Reset IP Restrictions checkbox to reset the restriction.

Posted: Friday Mar 16th, 2012 at 3:16 pm #8402

Hello Deyson,

There are a few things you need to do to achieve this.
You will need two different menus so first we need to register support for two menus in your functions.php file.
Depending on the theme your using you will have some code like the following:

// This theme uses wp_nav_menu() in one location.
	register_nav_menu( 'primary', __( 'Primary Menu' ) );

you will need to add or replace with

register_nav_menu( 'logged-in-menu', __( 'logged-in-menu') );
register_nav_menu( 'logged-out-menu', __( 'logged-out-menu') );

then in your header.php file replace

<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>

with

<?php
if ( is_user_logged_in() ) {
    wp_nav_menu( array( 'theme_location' => 'logged-in-menu' ) );
} else {
    wp_nav_menu( array( 'theme_location' => 'logged-out-menu' ) );
}
?>

Then in wordpress admin appearance > menus, you should see that under theme locations you have support for two or more menus. Now you can create a menu for logged in users and one for users that are not and apply them to the relevant drop down menus under theme locations.

I’m assuming a few things here so if your theme does not work in this way I can talk you through an alternative or if anything I have said don’t make sense let me know and I will try and explain better.

Posted: Thursday Mar 15th, 2012 at 1:20 pm #8270

Thanks Raam,

Do you know the order of the values some are

a:2:{s:5:"level";s:10:"1325583608";s:6:"level1";s:10:"1325583608";}

and

a:4:{s:5:"level";s:10:"1325623762";s:6:"level1";s:10:"1325623762";s:6:"level3";s:10:"1329175184";s:6:"level4";s:10:"1329678808";}

I’ve tried searching but no results.

Thank you

Posted: Thursday Mar 15th, 2012 at 8:52 am #8225

Perfect
thank you Cristián

Posted: Wednesday Mar 14th, 2012 at 7:39 pm #8183

If you have 10 membership levels you can assign each level a different custom capability like

So level #1 and custom capability ‘one’
So level #2 and custom capability ‘two’
So level #3 and custom capability ‘three’

and so on.

So when someone joins at level #2 they get assigned the custom capability ‘two’ and therefore are unable to access any of the other levels ie they cannot access level #1 because they dont have the custom capability ‘one’.
That then solves your email list problem.

Hope that helps

Posted: Tuesday Feb 14th, 2012 at 7:39 pm #5108

Perfect Thank You Jason

Viewing 17 replies - 251 through 267 (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.