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.

Home Forums Eric

About: Eric

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


Topics I'm Subscribed To

Viewing topic 1 (of 1 total)
Topic Count Last Reply
One Day subscribtion without using Levels

By:  Eric in: Community Forum

voices: 2
replies: 7

3 years, 10 months ago  Eduan

Viewing topic 1 (of 1 total)

Topics I've Started

Viewing topic 1 (of 1 total)
Topic Count Last Reply
One Day subscribtion without using Levels

By:  Eric in: Community Forum

voices: 2
replies: 7

3 years, 10 months ago  Eduan

Viewing topic 1 (of 1 total)

My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Thursday Feb 21st, 2013 at 6:57 pm #42770
Eric
Username: racinghorse

Ok so after some testing, It seems that code will give anyone access to that category where a member is at level1 no matter what custom capabilities they are in. Am I correct or did I miss something? Or do I need to input another code that ties them specifically to that custom capability?

I need them to only have the access to that specific capabililty, while using the level one payment button. I really appreciate your help. I am only a novice when it comes to code but I am trying.

Posted: Thursday Feb 21st, 2013 at 6:41 pm #42769
Eric
Username: racinghorse

wow, looking good so far, no errors. Thanks a lot.

Posted: Thursday Feb 21st, 2013 at 6:31 pm #42768
Eric
Username: racinghorse

Thank you very much,

I will give it a try and will let you know.

Posted: Wednesday Feb 20th, 2013 at 4:59 pm #42613
Eric
Username: racinghorse

Hello Eduan,

Thank you for replying. I have tried the custom capabilites and it seems that would fix my issue. Although when I altered the functions.php it broke my site.

Here is what I tried.

add_action ("template_redirect", "my_custom_capabilities");

function my_custom_capabilities ()

	{

	if(is_category ("oranges") && !current_user_can ("access_s2member_level1"))
	{
		header ("Location: ". S2MEMBER_MEMBERSHIP_OPTIONS_PAGE_URL);
	exit ();

}

Any ideas?

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.