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: Svetoslav Marinov

I am a developer/entrepreneur running my own company (Orbisius) out of Niagara, Canada.
To see my free and premium WordPress plugins visit http://club.orbisius.com You can contact me for a free quote if you need anything programmed.


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
s2member shows notice for undef. variable+fix

By:  Svetoslav Marinov in: Community Forum

voices: 1
replies: 1

3 years, 6 months ago  Svetoslav Marinov

What's up with bbPress?

By:  Martin Cooney in: Community Forum

voices: 4
replies: 4

3 years, 7 months ago  Eduan

How to get access level that a page needs?

By:  Svetoslav Marinov in: Community Forum

voices: 2
replies: 5

3 years, 10 months ago  Eduan

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

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
s2member shows notice for undef. variable+fix

By:  Svetoslav Marinov in: Community Forum

voices: 1
replies: 1

3 years, 6 months ago  Svetoslav Marinov

How to get access level that a page needs?

By:  Svetoslav Marinov in: Community Forum

voices: 2
replies: 5

3 years, 10 months ago  Eduan

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

My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Saturday Jun 15th, 2013 at 6:35 pm #52008

The notices still show up.

Only two extremely simple fixes. Please let Jason know. It’ll take just 30 seconds to fix.

1) htdocs\wp-content\plugins\s2member\includes\classes\cache.inc.php
#line 94
replace this line
if /* Cache is also reset dynamically during back-end option updates. */ ($cache_needs_updating)

with
if /* Cache is also reset dynamically during back-end option updates. */ (!empty($cache_needs_updating))

2) Notice: Undefined index: page in htdocs\wp-content\plugins\s2member\includes\classes\admin-notices.inc.php on line 134

if (!$page || “*” === $page || $pagenow === $page || $_GET[“page”] === $page)

with

if (empty($page) || “*” === $page || $pagenow === $page || (!empty($_GET[“page”]) && $_GET[“page”] === $page) )

Posted: Sunday May 12th, 2013 at 7:55 pm #49796

Hi,

for my membership site I used the snippet from this topic and adapted it for my needs.
http://www.s2member.com/forums/topic/a-few-questions-before-i-buy-the-pro-version/#post-13113

Basically, Kenny McNett’s solution checks and if a top page/forum is protected it will deny access to subpages/forums.

Slavi

Posted: Monday Feb 11th, 2013 at 5:50 pm #41426

Nope. I like things separate.

I’d rather create a separate plugin that will handle the logic … in case I have to switch to a different membership plugin.

Posted: Friday Feb 8th, 2013 at 11:48 pm #41243

Eduan, thanks for the reply.

The thing is that I check the content using is_permitted function which checks but doesn’t return what is the required level for the given page.

I found some snippets and created a plugin that protects sub-pages if the parent is protected by S2.

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.