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: Brendan Moorehead

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


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Creating custom capabilities

By:  Brendan Moorehead in: Community Forum

voices: 3
replies: 4

4 years, 10 months ago  Brendan Moorehead

Integrating installment payments (e.g. 2-pay)

By:  Brendan Moorehead in: Community Forum

voices: 2
replies: 1

4 years, 10 months ago  Raam Dev

Before purchasing — What I need!

By:  pagal soch in: Community Forum

voices: 2
replies: 6

4 years, 10 months ago  Jason (Lead Developer)

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

Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Is date-specific drip possible?

By:  Brendan Moorehead in: Community Forum

voices: 3
replies: 2

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

Creating custom capabilities

By:  Brendan Moorehead in: Community Forum

voices: 3
replies: 4

4 years, 10 months ago  Brendan Moorehead

Integrating installment payments (e.g. 2-pay)

By:  Brendan Moorehead in: Community Forum

voices: 2
replies: 1

4 years, 10 months ago  Raam Dev

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

My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Friday Feb 24th, 2012 at 12:16 pm #6282

It sounds like you\’re saying that the short codes should not have quotation marks where I placed them around the custom capabilities portion of the command, and when I looked back at the \”Custom Capabilities (Packages)\” tab, there are several occurrences at the top of the page where quotation marks are used:

Each s2Member Level ( aka: s2Member Role ) provides the Capability current_user_can(\”access_s2member_level0\”), 1, 2, 3, 4, where access_s2member_level[0-4] is the Capability associated with each Role; and Membership Levels provide incremental access ( i.e. Level #4 Members can also access content at Levels 0, 1, 2, and 3 beneath them ).

Capabilities using current_user_can(\”access_s2member_ccap_music\”) and current_user_can(\”access_s2member_ccap_videos\”).

However, when I look at the examples further down the page, it looks like quotation marks are used in php code, but not in the short codes. Is that the case? (that quotation marks ARE used in php code, but not in short code?)

Posted: Friday Feb 24th, 2012 at 12:06 pm #6281

Do you mean uninstall and re-install S2Member? If so, is there a way to back-up the settings, or will I have to recreate them manually?

Posted: Tuesday Feb 21st, 2012 at 1:40 pm #5887

UPDATE to my last post. The cause of the problem seems to have something to do with a custom capability that I am trying to create. Here is the code that I created:

[s2If current_user_can("access_s2member_ccap_uwlpg1")]

Content for this capability (e.g. link to a page).

[/s2If]

Where “uwlpg1” is the custom capability that I thought I created by adding it to the “Require Custom Capabilities?” field on another page. If I enter a custom value, such as “uwlpg1” to the “Require Custom Capabilities?” field, doesn’t that create the custom capability value that I would use in PayPal buttons and custom capability short codes? Or is there somewhere else that a value is entered in order to generate a custom capability value?

Posted: Tuesday Feb 21st, 2012 at 1:33 pm #5886

I am considering upgrading to S2MemberPro, but before I do, I want to know that the free version is robust and works well (since it’s the foundation of the Pro version) before buying Pro, so I’m wondering if you can tell me where I could find help with this issue (I can’t find anything in the free Knowledge Base or Forum):

I get an error message at the top of a page (Login Welcom Page) where I have several access restrictions. This is the error message:

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘current_user_can' was given in /home/content/70/8904870/html/ultimateweightlossprotocol/wp-content/plugins/s2member/includes/classes/sc-if-conds-in.inc.php on line 138

I removed each of the access restrictions one by one (a "Get" short code, a customer capability short code, and a membership level page restriction) to determine which one was generating the error, and the error was still generated on the page each time I refreshed it after removing first the "Get" short code, then the custom capability short code, then the membership level page restriction.

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