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 - 151 through 175 (of 267 total)
Author Replies
Author Replies
Posted: Friday Jul 27th, 2012 at 5:15 am #20373
Posted: Friday Jul 27th, 2012 at 5:15 am #20372
Posted: Friday Jul 27th, 2012 at 5:13 am #20371

Thomas it would be ridiculous if it were s2member but its not.

You have a plugin conflict interfering with the parsing of the shortcode.

Please disable your plugins one by one until the issue is resolved, start with ultimate shortcodes if your using that

Posted: Thursday Jul 26th, 2012 at 5:57 am #20300

I can’t replicate this on MS installs with unique domain names for sub directory/domains.

Perhaps its a cookie issue?

Will you be using the same top level domain for all sites?

Posted: Tuesday Jul 24th, 2012 at 3:28 pm #20096

Hi Greg,

but its not pulling any content due to the “join” page not pulling post ID.

I’ve not looked at the large code, but a problem you might be having is grabbing the ID if its a page referring rather than post? I think those are different in this case.

<?php

if (isset ($_g["_s2member_seeking"]["page"]))
    echo 'You were trying to access Page ID #' . esc_html ($_g["_s2member_seeking"]["page"]) . '.';

else if (isset ($_g["_s2member_seeking"]["post"]))
    echo 'You were trying to access Post ID #' . esc_html ($_g["_s2member_seeking"]["post"]) . '.';

?>
Posted: Monday Jul 23rd, 2012 at 8:57 am #19985

Hi Darryl,

Thats a WordPress thing

add this to your functions.php

// replace WordPress Howdy with G’day
function replace_howdy( $wp_admin_bar ) {
    $my_account=$wp_admin_bar->get_node('my-account');
    $newtitle = str_replace( 'Howdy,', 'G’day', $my_account->title );            
    $wp_admin_bar->add_node( array(
        'id' => 'my-account',
        'title' => $newtitle,
    ) );
}
add_filter( 'admin_bar_menu', 'replace_howdy',25 );
Posted: Monday Jul 23rd, 2012 at 7:59 am #19982

Yes Thank you Cristián.

Its a WordPress bug introduced 10 months ago in wp-includes/general-template.php

function wp_lostpassword_url( $redirect = '' ) {
	        $args = array( 'action' => 'lostpassword' );
	        if ( !empty($redirect) ) {
	                $args['redirect_to'] = $redirect;
	        }
	
	        $lostpassword_url = add_query_arg( $args, network_site_url('wp-login.php', 'login') );
	        return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect );
}

Should be

function wp_lostpassword_url( $redirect = '' ) {
	        $args = array( 'action' => 'lostpassword' );
	        if ( !empty($redirect) ) {
	                $args['redirect_to'] = $redirect;
	        }
	
	        $lostpassword_url = add_query_arg( $args, site_url('wp-login.php', 'login') );
	        return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect );
}

Also WordPress is generating the incorrect email in wp-login.php

$message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n";
	$message .= network_home_url( '/' ) . "\r\n\r\n";
	$message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
	$message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n";
	$message .= __('To reset your password, visit the following address:') . "\r\n\r\n";
	$message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";

should be

$message = __('Someone requested that the password be reset for the following account:') . "\r\n\r\n";
	$message .= home_url( '/' ) . "\r\n\r\n";
	$message .= sprintf(__('Username: %s'), $user_login) . "\r\n\r\n";
	$message .= __('If this was a mistake, just ignore this email and nothing will happen.') . "\r\n\r\n";
	$message .= __('To reset your password, visit the following address:') . "\r\n\r\n";
	$message .= '<' . site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user_login), 'login') . ">\r\n";
Posted: Monday Jul 23rd, 2012 at 4:53 am #19964

Hello Silver,

I’m guessing your using cloudflare?

Please see this topic http://www.s2member.com/forums/topic/s2member-and-cloudflare/

Hope that helps

Posted: Thursday Jul 19th, 2012 at 5:04 am #19748

I’m looking to integrate with gocardless at some point after the new s2member is released, will try myself or I will hire a developer

Posted: Saturday Jul 14th, 2012 at 12:05 pm #19258

@ Hamid

Glad you resolved that part.

I think its because you have not setup your download restrictions.

Dashboard => s2Member® => s2Member® File Download Options => Basic Download Restrictions

Let us know how that goes and if you need any help configuring a shortcode

Posted: Friday Jul 13th, 2012 at 9:03 am #19168

Thanks Jim,

I’m not able to test at the moment. Perhaps look at the source code of the different methods to see what difference its outputting

Posted: Friday Jul 13th, 2012 at 8:57 am #19166

@ seamsite

If you show me what code your using I can turn it in to a mini plugin so you can use a shortcode instead of embedding the php

Posted: Friday Jul 13th, 2012 at 5:34 am #19139

Although it appears to work with the wordpress plugin I think the limitation comes with the rtmp bit and I don’t think s2member is able to create the signed url for it to work.

Therefore I would say in the case RTMP streaming the wordpress plugin is not compatible.

If you need a shortcode with RTMP use the one above.

@ seamsite

please use the shortcode provided above, just add the function part to your functions.php file.

Also you should read this topic as it affects you http://www.s2member.com/forums/topic/s2member-and-cloudflare/

Hope that helps.

Posted: Friday Jul 13th, 2012 at 4:39 am #19135

Hi Jim,

Sorry I meant the jw plugins like analytics and HD rather than the wordpress jw plugin.

Although it appears to work with the wordpress plugin I think the limitation comes with the rtmp bit and I don’t think s2member is able to create the signed url for it to work.

Posted: Tuesday Jul 10th, 2012 at 4:19 pm #18829

@ Hamid

Yes sorry of course you do if your able to download it.

Can you disable plugins see if there is a conflict?

Posted: Tuesday Jul 10th, 2012 at 11:55 am #18815

Would be any issue if I have the site on both, W3 Total Cache and Varnish Cache?

I’ve not had any, but in some circumstances Total Cache with varnish slowed the site down compared to using varnish alone. The best config I found was using opcode caching for everything and having object caching disabled, Although this provided little additional gain, I’m only really using it for minifying and combing scripts etc, which is where it comes in worth while.

Posted: Tuesday Jul 10th, 2012 at 11:21 am #18812

@ Hamid

You just have the incorrect location for your file.

That script is looking for the file located relative to wp-content/plugins/s2member-files/ or your s3 bucket.

Posted: Monday Jul 9th, 2012 at 5:18 pm #18705

Hi Stuart,

The css in your theme in conflicting with those.

The conflict is in wp-content/themes/rttheme14/css/style.css?ver=3.4.1

change

/* labels */
	.content form label{
		display:block;
		float:none;
		margin: 0 10px 0 0; 
		font-family:Georgia, "Times New Roman", Times, serif;
		font-style:italic;
		position:relative;
	}

to

/* labels */
.content form label {
  display:inline-block;
  float:none;
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-style:italic;
  margin:0;
  position:relative;
}

not sure how that will react with other aspects of your site though.

Posted: Monday Jul 9th, 2012 at 3:30 pm #18696

Hi ASTONISH,

You can still use the shortcode in the template like this:

<?php echo do_shortcode("[shortcode]"); ?>
Posted: Monday Jul 9th, 2012 at 2:28 pm #18685

@ Greg

Perhaps you could make a custom field called ‘video’ in the page/post and put the url to the trailer in that, then adapt the code below to show it on the membership page.

<?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 );
	
	$post_thumb = get_the_post_thumbnail( $post_id );
	
	$title = get_the_title($post_id);
	
	echo $title;
	
	echo $post_object->post_excerpt;
	
	echo $post_thumb;
	
	echo get_post_meta($post_id, 'video', true);
	
	
?>
Posted: Monday Jul 9th, 2012 at 1:20 pm #18680

Hello DrByte,

The only issue I have identified as yet is obtaining the correct client IP, as I’m running apache I had to install mod_rpaf to correct this.

All else works like a dream and so far I’ve found that it performs far better than any WordPress caching plugin.

Posted: Monday Jul 9th, 2012 at 1:09 pm #18679

Hi Matt,

The problem I noticed straight away is that as cloudflare works as a reverse proxy server, your web server a therefore php and s2member see cloudflares IP address as the client address.

The problem this causes that I know about are with s2member’s Brute Force IP/Login Restrictions and Unique IP Access Restrictions. You would need to disable those or risk locking everybody out as s2member sees every member as coming from the same IP(cloudflares).

To resolve this you can install cloudflares apache module(if your using apache) so that the correct client IP can be passed on to apache.

I found some docs along with instructions for other servers

https://www.cloudflare.com/wiki/Log_Files

Let me know if you need any help

Posted: Monday Jul 9th, 2012 at 11:50 am #18672

Hi Zoe,

You can change what the membership option page displays depending on the page they were trying to access. Would that do the trick?

Posted: Monday Jul 9th, 2012 at 5:31 am #18655
Posted: Monday Jul 9th, 2012 at 5:25 am #18653

Hello Matt,

I see that you are using cloudflare,

That really needs to be disabled when trying to debug problems and may even be the cause.

Also its not configured properly and will cause other problems with regards to client IP.

Do you have root access to your server?

Viewing 25 replies - 151 through 175 (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.