• Hi,

    We are investigating using Oxygen Builder to build a Membership site on WordPress. We know that Memberpress is compatible with Oxygen but it is way too complex for our needs.

    We simply need to allow logged in members to view selected pages/posts – no need for payment integration or anything like that.

    WP-Members looks ideal but has anyone used it successfully with Oxygen Builder please?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    It’s fairly basic if you’re just blocking content. The plugin gives you the ability to mark any post/page as blocked, unblocked, or hidden.

    The only issue with builder themes/plugins is that they usually include structural HTML markup as part of the main content being displayed, which is what WP-Members is dropping if the user is not logged in. So in a standard configuration of displaying a login form in place of blocked content, the layout may be affected. The simplest way to avoid that is configure your site to redirect blocked content to a login page (which wouldn’t be blocked and would therefore have all layout elements). It’s easy to do and is described here.

    That’s not the only approach, and a more detailed discussion of the topic is here.

    Thread Starter sponwp

    (@sponwp)

    Hi Chad,

    Thanks for the fast reply and sorry I didn’t get back to you earlier. We’re in the UK so had shut down for the day.

    It looks like we have a couple of options there and of course we can also test; but it looks like it may well be OK.

    I read your article on “builders” and tend to agree; however we are having to look at various ways to compete in an increasingly competitive environment and (sadly) visual builders look like they will play a part, at least for some areas of our work.

    We’re also new (ish) to WordPress having come from other CMS which are sadly being marginalised; not ideal for us as we’ve invested a lot of time elsewhere, but we have to offer WP as an option.

    What are your support options if we get stuck please?

    Thanks for your help!

    Plugin Author Chad Butler

    (@cbutlerjr)

    What are your support options if we get stuck please?

    You can get just plugin support for the core plugin, or core plugin support is also included in the “Pro Bundle” which includes all of the available plugin extensions.

    https://rocketgeek.com/plugins/wp-members/support-options/

    roumen26

    (@roumen26)

    Hi Chad,

    I searched for this topic because I try to setup a membership site with some restricted pages.

    I like your plugin a lot.

    But this thread is about compatibility with Oxygen Builder. And unfortunately there is not such. A generic page is protected/blocked but when this page goes to Oxygen markup (being edited in Oxygen), it is no longer protected.

    I see the possibility for redirection but with more complicated scenarios???

    Will redirection work for different user roles/levels of membership that your plugin imposes after woocommerce payment??? It is not only the simple case logged-in/logged-out.

    TKS

    Here is something that could be helpful to users of WP-Member and Oxygen Builder.

    WP-Members does not block a page built with Oxygen Builder:
    This happens because membership plugins generally only protect content that has been added to the WordPress editor. Unfortunately, Oxygen’s content is stored in the postmeta table, which is why it doesn’t work.

    How to use with Oxygen Builder:
    If the WP Member plugin has restriction type shortcodes, you can usually use that type of shortcode in a Shortcode Wrapper element inside Oxygen and then move all of the content you want to restrict inside the Shortcode Wrapper.

    I have used the shortcodes to block content with success!
    To show a login form when not logged in [wpmem_logged_out][/wpmem_logged_out]
    To block content when not logged in [wpmem_logged_in][/wpmem_logged_in]

    Hope this helps!

    Plugin Author Chad Butler

    (@cbutlerjr)

    Most builders use post meta content, so Oxygen Builder is not unique in that regard.
    The way most builders work (even if they use post meta) is to use the_content filter. The way WP-Members works is when a user is not logged in, it empties the content contained in the_content and replaces it with a login/registration form.

    the_content is a commonly used filter because it affects the main content area of nearly every page in a WP install. Since it is common, many plugins and themes will hook into it. Compatibility is based on when each of these runs their primary filter on the_content. Filters are run based on the priority assigned to the filter, so a developer can set their filter to run earlier or later.

    Builders work by adding content to the_content, so if the builder’s the_content filter runs after something like WP-Members, then it simply adds content into the_content after WP-Members has run to take it out.

    In order to provide compatibility with a wide range of other products, WP-Members runs its filter late, at a priority of 99 (so anything priority 98 or lower will run first). Most builders I’ve come across run before 99, so there is automatic compatibility – at least from a content restriction standpoint. But if the builder runs at 100 or higher then you’d have to set up a the_content filter to re-run WP-Members’ securify() function on the content a second time (at a point after the builder’s filter has run).

    So if WP-Members is not blocking content from Oxygen Builder, the reason isn’t simply that the content is post meta. It would have to be that either the post meta content is not loaded using the_content filter, or that the post meta content loaded using the_content is fired later than WP-Members runs its filter on the_content.

    Yes,

    Definitely wrapping in a shortcode works. Thanks to the clever shortcode feature in Oxygen.

    I am not concerned about simple logged-in / logged-out permissions (Oxygen itself can handle them) but about complicated ones – with changing user roles on Woocommerce purchase and etc.

    Wrapping with shortcode will help this either. And the filthering that Chad shows above reasures me that the plugin will be effective in all cases.

    Thak you ‘Chad Butler’ for the feedback and ‘jadigital’ for your relevant comments on the topic.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Compatibility with Oxygen Builder?’ is closed to new replies.