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: William Elliott

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


Topics I'm Subscribed To

Viewing 10 topics - 1 through 10 (of 10 total)
Topic Count Last Reply
MailChimp Integration stopped working

By:  William Elliott in: Community Forum

voices: 2
replies: 1

4 years, 1 month ago  Raam Dev

reCaptcha not working consistently

By:  William Elliott in: Community Forum

voices: 2
replies: 1

4 years, 2 months ago  Raam Dev

How to keep some *some* ccap's after demotion

By:  William Elliott in: Community Forum

voices: 2
replies: 2

4 years, 2 months ago  Cristián Lávaque

How to add a Custom Capability?

By:  William Elliott in: Community Forum

voices: 2
replies: 3

4 years, 2 months ago  Cristián Lávaque

Error with Buy Now Button

By:  William Elliott in: Community Forum

voices: 2
replies: 3

4 years, 2 months ago  Cristián Lávaque

How integrate sMember Pro with Mail Chimp?

By:  Paul Carter in: Community Forum

voices: 4
replies: 4

4 years, 3 months ago  William Elliott

Custom Fields not showing up on Profile

By:  William Elliott in: Community Forum

voices: 2
replies: 2

4 years, 3 months ago  Eduan

Help with Bruce's Setting Up EOT Notification

By:  William Elliott in: Community Forum

voices: 2
replies: 1

4 years, 3 months ago  Bruce

Which conditionals to use to restrict sidebar

By:  charles clarke in: Community Forum

voices: 3
replies: 4

4 years, 3 months ago  William Elliott

Can I collect member extra member information

By:  William Elliott in: Community Forum

voices: 2
replies: 1

4 years, 6 months ago  Cristián Lávaque

Viewing 10 topics - 1 through 10 (of 10 total)

My Latest Replies (From Various Topics)

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Thursday Oct 18th, 2012 at 4:48 pm #28904

Okay, I have answered question 1 above with this code:

<pre>
/*
 * ccap corp_mbr,active added through registration or renewal of corporate memberships
 * ccap inactive added (not working yet) to corporate membership when demoted due to EOT 
 *
 * code below prevents removal of ccap for values = corp_mbr, bod_mbr, active, inactive
*/
	foreach ($user->allcaps as $cap => $cap_enabled)
		if ( preg_match ("/^access_s2member_ccap_/", $cap) )
			if ( !preg_match ("/^access_s2member_ccap_corp_mbr/", $cap) &&
			     !preg_match ("/^access_s2member_ccap_bod_mbr/",  $cap) &&
			     !preg_match ("/^access_s2member_ccap_active/",   $cap) &&
			     !preg_match ("/^access_s2member_ccap_inactive/", $cap)	 ) 

					$user->remove_cap ($ccap = $cap); 

</pre>

Do you see anything wrong with this code?

Next, I have experimented with the question 1 inserting this code in the demoting section of the code in the original post above:

<pre>
	/* added by WPE based on Dynamic EOT hack post in the S2member forum */
	
	$existing_role = c_ws_plugin__s2member_user_access::user_access_role ($user);

	if($existing_role === 's2member_level12') {     		// Corporate Member
		$demotion_role = 's2member_level6';    		// expired Corporate Member
		$user->add_cap("access_s2member_inactive");
		$user->remove_cap("access_s2member_active");
	}
	else
		$demotion_role = c_ws_plugin__s2member_option_forces::force_demotion_role("subscriber");
</pre>

This code (and there are actually a number of elseif’s to cover all of the s2member_levels) does work correctly to demote the role from level12 to level6; however, it does not add the ccap = inactive and remove ccap = active.

What am I doing wrong?

Thanks,
Bill

Posted: Monday Oct 15th, 2012 at 4:48 pm #28465

Video(s) were very helpful. I think I understand how to implement and use ccap’s with my posts and pages. Basically, I am trying to implement types of memberships not levels. So, I have corporate ($150), individual ($10), gov’t employee (free). With paid subscription, all gain access to additional info on site (level 1 access) right?

What I am trying to implement with ccap’s then is the ability to distinguish which type of member I am dealing with. And, more specifically, I need to develop lists (I’m using the “amr users plus” plugin to generate lists) and displays the lists on the front-end. Can I filter a list in amr users plus by ccap and by multiple ccap’s?

Further, I want to send emails through MailChimp and target the email to specific member types, e.g. send an email to all of the members with ccap_individual?

Finally, how would I bulk add ccap’s to my current members?

Thanks,
Bill

Posted: Monday Oct 15th, 2012 at 4:38 pm #28464

I ran the Check Tool and it showed no errors. Now what?

Also, I am not getting email notifications of replies to me forum posts, any ideas?

Thanks,
Bill

Posted: Monday Oct 8th, 2012 at 10:47 am #27798

Thanks. Got it! Really cool!

Posted: Sunday Oct 7th, 2012 at 5:36 pm #27754

Figured it out. I was changing the Level on the Custom Fields and saving but not saving the General Options. Duh!

Posted: Sunday Oct 7th, 2012 at 5:22 pm #27751

I have the same question.

Check under Dashboard -› s2Member® -› API / List Servers -› MailChimp® is certainly a start, but sure misses a lot of detail.

I have just completed doing all of what is required (I think) under the Dashboard -› s2Member® -› API / List Servers -› MailChimp® area. And, this means that I have setup my MailChimp Account and created one list and under that list, one group called Member_List with for subgroups.

Question: Now what? That is, I know how to use MailChimp once I have subscribers on the list, but how do I get my current 500 or so WP S2 users to sync over to MailChimp?

Thank,
Bill

Posted: Sunday Oct 7th, 2012 at 8:35 am #27707

You might look into the Widget Logic plugin. I’m using in now and it works fine with the S2 conditionals yet. Let me know if you try it an it works for you.

Bill

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