Hidden Content Notification Customization

Posted in

Currently we are using an old version of groups where we have modified the plugin to display a specific image and message when content is locked. Is there a way to do this through hooks or settings in the latest version, or are we still stuck with the generic locked content text?

5 Responses to Hidden Content Notification Customization

  1. George February 29, 2024 at 5:27 pm #

    Hey Mike,

    The process I described requires both shortcodes to be present in every single article. Even though I don’t know how you’ve implemented your restriction, I think that you would need a similar implementation in order to get the same result with the current version.
    What I would do in your case, is to test the latest version of Groups on a staging clone and check if there is anything needed in your custom restriction to make it compatible with the latest version so that you won’t be kept back in terms of updates.

    Kind regards,
    George

  2. Mike Helly February 28, 2024 at 7:43 pm #

    An example of our content is here: https://glreview.org/article/another-brother-who-made-it-happen/

    Where the “To continue reading this article, please LOGIN or SUBSCRIBE” and the image below it are put in place by using just the single [groups_member group="Premium"] shortcode around the protected content while the rest of the content is just on the page without the need to be wrapped in a shortcode.

  3. Mike Helly February 28, 2024 at 7:41 pm #

    To be clear the issue being that two shortcodes are needed on every single article (thousands) vs the locked content code showing the message in one swoop.

  4. Mike Helly February 28, 2024 at 7:40 pm #

    Thanks for the reply.

    We use the second option to limit specific portions of the content.
    The issue we have is that we have had to edit the plugin directly in order to show a nice image and link to the user that says/shows “This content is locked, click here to login or here to subscribe” with a nice image showing over the content.

    Where as the default plugin just shows some basic text that wasn’t previously able to be edited or customized. Does the latest version allow customization of the “locked content” message in an html format?

  5. George February 21, 2024 at 7:36 am #

    Hi Mike,

    Welcome to our support forum, many thanks for using our software on your site.

    For the use-case you are describing, I can think of two possible approaches:
    1. Using Groups 404 Redirect free plugin
    2. Using the Blocks Groups Member, Groups Non-member or the equivalent shortcodes [groups_member ...][/groups_member], [groups_non_member….][/groups_non_member].

    With the first option, when a post or post type is restricted to a group, everyone but the privileged users will be redirected to a specified page. In this page you can add your own message, picture etc.
    While with the second option, the post doesn’t need to be restricted as a whole, but only its content.
    For example Premium members will see the content enclosed in these shortcodes:

    [groups_member group="Premium"]
    Only premium members can see this.
    [/groups_member]
    [groups_non_member group="Premium"]
    Welcome to our site!
    Please consider acquiring a membership to access exclusive content.
    [/groups_non_member]

    This way Premium members will see the specific content of the first block, while all the others will see the content of the second block.

    Kind regards,
    George

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share