• Hi – have S2Member installed on my site and it’s working very well except for one hiccup. All of my members are “free” or #0 members (there is no paid membership available, not yet, anyway). They can view protected content without issue, except for search results within my site. Basically, I have a page where users can select the categories of the posts they wish to view using checkboxes, then click a “search” button. However, S2Member will not let them view the search results pages, instead throwing them right to my “you need to create a login” page. However, these same users can access protected individual pages just fine. I have unchecked the “Searches (hide protected content in search results)” box under “Alternative View Protection”, but search pages are still inaccessible to logged in users (but other protected content is fine). Any ideas? Thanks for your otherwise fantastic product! Cheers –

    https://www.ads-software.com/plugins/s2member/

Viewing 7 replies - 1 through 7 (of 7 total)
  • How have you protected your content? Have you got, for example, URI protection which prevents access to search results?

    Thread Starter DancingPeppers

    (@dancingpeppers)

    The content is protected by “Category”, that is – all posts in specific categories are protected. The searches take place within these protected categories. For some reason individual posts can be viewed (if the correct URL is entered into the browser) but search results don’t show.

    I assume, therefore, that it’s all protected at the same level, i.e. 0 (otherwise, obviously, that’s where your problem lies).

    On the basis of that assumption, could you enable MOP Vars in General Options -> MOP and report back what is in the URL when someone is redirected?

    Also, what are you using to provide this search capability?

    Thread Starter DancingPeppers

    (@dancingpeppers)

    I noticed when doing a test that the redirect contains S2Member coding, but will get back to you with more specifics using MOP Vars. Using a plugin called “Ultimate WP Query Search Filter” along with “User Role Editor” but I wouldn’t think either is causing the issue or else the specific posts wouldn’t be visible, but that’s just a guess.

    Using a plugin called “Ultimate WP Query Search Filter” along with “User Role Editor” but I wouldn’t think either is causing the issue or else the specific posts wouldn’t be visible

    I don’t think User Role Editor is causing the problem, but I could not be so sure about Ultimate WP Query Search Filter. That would have no effect on the viewing of single posts, but would come into play for viewing search results.

    Thread Starter DancingPeppers

    (@dancingpeppers)

    Found a fix, which actually involved User Role Editor. Within URE, there is a series of checkboxes to grant or remove privileges for each user role. The S2Member “Free Membership” (or ‘0’) role on my site is associated with the WP “Subscriber” role. Because I only have free members right now, I checked the box for the “access_s2member_level1” in the URE “Custom capabilities” area for free members. This certainly isn’t a good fix for sites with both free and paid members, but works for me for now. Now my free members can search posts and see the search results, which for some reason they couldn’t see when they didn’t have “level 1” access. Hope this helps someone else.

    Ah, in that case, you have simply set the protection levels incorrectly on your site. You should set the level for free users at level 0.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Alternative View Protection Issue’ is closed to new replies.