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: Joanne Masterson

Sorry, I've not written a description yet. I'll get to it soon!

My Favorite Topics

Viewing topic 1 (of 1 total)
Topic Count Last Reply
Aweber integration: no rulesets matched error

By:  Joanne Masterson in: Community Forum

voices: 2
replies: 7

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

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Thursday Apr 4th, 2013 at 1:03 pm #46623

OK – – – here is the feedback from AWeber

They suggest making the IP addresses in the message match.

How can I do this:
– – – – – – – – –
There are a couple of issues here. When doing an IP look up for
“” the address is “”,
however the from IP in the header is “”.

In addition, the from address is lsited as real-address-removed [at]

So, when AWeber reads the header, it will snuff out the message because
the send IP address and the host IP address do not match.

To eliminate the illusion of spoofing, there are a couple of ways this
might be corrected.

You could change the sent IP to the server’s default, or create
a dedicated IP address through the email server.

If you have any other questions, or need further assistance,
please do not hesitate to ask. We’re happy to help!

Posted: Thursday Apr 4th, 2013 at 10:14 am #46617

I’d check with AWeber if that’s actually the problem in your case

You must have read my mind – just heading over to ask them now

Thank you for the help – much appreciated!


Posted: Thursday Apr 4th, 2013 at 9:35 am #46603

Cristián –

Thanks for the help with proper parser testing

I tested the message again in the parser (view source of message in Outlook for Mac, paste the results)

And it parsed successfully

– – – – – – –

Now, about the confirmation – should the user get a confirmation email from AWeber?

I used a valid email for test user – but I didn’t get a confirmation request.

Is this proof that AWeber didn’t get the message?

I would think yes – please confirm

– – – – – – – –

I called my hosting provider and they do not honor requests to add reverse DNS records.

Is there some way I can work around this?

– – – – – – – –

Thanks again for all the help

Posted: Thursday Feb 21st, 2013 at 1:34 am #42646

Thank you @John LeBlank and #Tanner Moushey for sharing this observation. Your thread made it possible for me to use a custom template by putting it in the parent theme directory.

So glad you shared your findings

Posted: Thursday Apr 12th, 2012 at 2:34 pm #10681

Yes —
This is also the link generated by either ‘index.php’ or home_url() — anything I put in the code to create the logout link gets appended with the query string.

There are several places to logout (menu, forum).

All logouts get redirected to the membership options page, instead of home.

Posted: Thursday Apr 12th, 2012 at 1:58 pm #10679

Thanks for your replies.

I have tride using home_url() in place of index.php.

No matter what I put there, a query string gets added.

It looks like a set of MOP variables.

Can I tell S2Member not to add them on logout?

Here is the link generated by home_url():

And here is how the system resolves the link. There’s a query string in the URL that shows up as a result:[type]=page&_s2member_seeking[page]=821&_s2member_seeking[_uri]=L2ZvcnVt&_s2member_req[type]=level&_s2member_req[level]=0&_s2member_res[type]=page&s2member_seeking=page-821&s2member_level_req=0
Posted: Thursday Apr 12th, 2012 at 1:30 pm #10676

Here it is — thanks for asking.

Around line 67, the code sets the logout_link to $wpurl (which is ‘index.php’). This gets overwritten to become the membership options page (and a buch of MOP variables) no matter what I do:

function wps_add_loginlogout_link($items, $args)
	//defaults; change this as you see fit
	$defaults = array(
		'loginlout_position' => 999, //enter 0 for front, 999 for end
		'menu_id' => 'menu-item', //custom CSS
		'menu_class' => 'menu-item menu-item-type-custom menu-item-object-custom', //custom CSS
		'menu_location' =>'primary-public', //enter primary, secondary, or topnav for News
		'loginredirect' => false //enter true for redirect to wp-admin dashboard

	//do nothing if not proper menu location
	if( $args->theme_location != $defaults['menu_location'] )
		return $items;

	//set redirect URL
	if( $defaults['loginredirect'] )
		$wpurl = 'wp-admin/index.php';
		$wpurl = 'index.php';

	// split the menu items into an array using the ending <li> tag
	if ( $defaults['loginlout_position'] != 0 && $defaults['loginlout_position'] != 1 && $defaults['loginlout_position'] != 999 ) {
		$items = explode('</li>',$items);

		$newitem = '<li id="'.$defaults['menu_id'].'" class="'.$defaults['menu_class'].'"><a title="Logout" href="'. wp_logout_url($wpurl) .'">Logout</a></li>';
		if ( $defaults['loginlout_position'] == 0 || $defaults['loginlout_position'] == 1 )
			$newitems = $newitem.$items;
		elseif ( $defaults['loginlout_position'] == 999 )
			$newitems = $items.$newitem;
			$newitem = '<li id="'.$defaults['menu_id'].'" class="'.$defaults['menu_class'].'">' . $args->before . '<a title="Logout" href="'. wp_logout_url('index.php') .'">' . $args->link_before . 'Logout' . $args->link_after . '</a>' . $args->after; // no </li> needed this is added later
		$newitem = '<li id="'.$defaults['menu_id'].'" class="'.$defaults['menu_class'].'"><a title="Login" href="'. wp_login_url($wpurl) .'">Login</a></li>';
		if ( $defaults['loginlout_position'] == 0 || $defaults['loginlout_position'] == 1 )
			$newitems = $newitem.$items;
		elseif ( $defaults['loginlout_position'] == 999 )
			$newitems = $items.$newitem;
			$newitem = '<li id="'.$defaults['menu_id'].'" class="'.$defaults['menu_class'].'">' . $args->before . '<a title="Login" href="'. wp_login_url('index.php') .'">' . $args->link_before . 'Login' . $args->link_after . '</a>' . $args->after; // no </li> needed this is added later

	if ( $defaults['loginlout_position'] != 0 && $defaults['loginlout_position'] != 1 && $defaults['loginlout_position'] != 999 ) {
		$newitems = array();

		// loop through the menu items, and add the new link at the right position
		foreach($items as $index => $item)
		// array indexes are always one less than the position (1st item is index 0)
			if($index == $defaults['loginlout_position']-1)
				$newitems[] = $newitem;
			$newitems[] = $item;

		// finally put all the menu items back together into a string using the ending <li> tag and return
		$newitems = implode('</li>',$newitems);

	return $newitems;
add_filter('wp_nav_menu_items', 'wps_add_loginlogout_link', 10, 2);
Posted: Thursday Apr 12th, 2012 at 12:48 pm #10673

I am trying to control the logout behavior also.

I have a line in functions.php that adds logout the the membership menu.

No matter what I do, the system redirects to the membership options page on logout.

This URL query string seems to append to the home page link despite anything I do.[type]=page&_s2member_seeking[page]=821&_s2member_seeking[_uri]=L2ZvcnVt&_s2member_req[type]=level&_s2member_req[level]=0&_s2member_res[type]=page&s2member_seeking=page-821&s2member_level_req=0

Any suggestions?

Posted: Monday Feb 6th, 2012 at 3:17 pm #4103

So clean and easy to read and find stuff. Good job.

Viewing 9 replies - 1 through 9 (of 9 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.