How do I allow registered and logged in Membership subscribers to access unprotected content?

Hi there,

I am experiencing a problem with logged in Membership users who receive a ‘blocked content’ message when trying to access unprotected content.

The only filter I am using is URL Groups.

Visitors are blocked from the following:

http://nikkibush.com/program/welcome/

http://nikkibush.com/program/account/

http://nikkibush.com/program/subscriptions/

http://nikkibush.com/modules/.+

I have added a Positive Rule for Members with the same URL group as listed above.

However, while they’re logged in and they try to access, for example, http://nikkibush.com/books/, they receive the ‘blocked content’ message. When I test this URL in the Test URL Group function, for all I receive the message ‘Invalid’, which I guess is correct.

Strip query strings from URL = No

Regular Expression = Yes

I am using Membership 3.4.6 and WordPress 3.6.1 – I believe both are the latest.

What else could be wrong?

Many thanks

Michael

  • Alexander
    • DEV MAN’s Mascot

    Hi @michael,

    If you’re using positive rules, everything would come through as blocked except links that match your URL rules. Testing the regular expression will yield a match, or no match. But this is just used to test the URL – the action taken from here depends on if it’s positive or negative.

    Try changing this to a negative rule and let me know how it goes.

    Best regards,

  • Michael
    • Design Lord, Child of Thor

    Thanks for your response Alexander,

    Maybe I wasn’t clear enough:

    – I have a Negative rule for Visitors (URL Group)

    – I have the exact same Positive rule for Members

    Swapping this around would mean a HUGE collection of URL’s in the URL group, so isn’t particularly feasible, especially since we would have to add every new blog post to the URL group.

    There is something else wrong. I believe I have followed the documentation accurately. Logically the rules should work, but something else is failing.

    Could it be a plugin clash problem? I am using login-with-ajax.

    What other login plugins would you recommend?

  • Alexander
    • DEV MAN’s Mascot

    Hi @michael,

    Thanks for the extra clarification. If you’re using positive rules for an access level. Members will only be able to access what is specifically placed under a positive rule. Everything else will be blocked.

    Also, Membership levels don’t “combine” unless you have multiple subscriptions active. So once a member is logged in, the visitor rules will no longer apply.

    If that URL group is the only positive rule added, Members should not be able to view http://nikkibush.com/books/ and they should be redirected. You’ll need a rule to allow that page.

    Hope this helps clear some things up!

    Best regards,

  • Michael
    • Design Lord, Child of Thor

    The documentation is not clear on the fact that rules do not combine – it might help to clarify this in your manual. A few examples would certainly go a long way to helping people setting up the plugin. I found the documentation often unhelpful in that it simply repeats the prompts available in the dashboard. An example for setting up a drip fed site would have been very useful.

  • Alexander
    • DEV MAN’s Mascot

    Hi @michael,

    Thanks for the feedback, it’s most appreciated. We’re actually working on some improvements to our Membership plugin to make it easier to setup. Once some more updates have been made, we’ll be looking at updating documentation as well – a perfect opportunity for updating examples as well.

    Best regards,

  • Michael
    • Design Lord, Child of Thor

    Thanks Alexander and apologies for my rather short reply previously,

    I am happy to report that now that I have understood the workings of the plugin correctly, it’s working 100%.

    I look forward to the updates, though.

    Many thanks

    Michael

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.