Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #513375

    Hi,
    I searched the forum and read that you recommend ITTHINX Groups Plugin for membership sites. So now I’m trying to restrict certain parts of a page using the [groups_member] shortcode but it does not seem to work with the Advanced Layout Editor. I tried it by placing a CodeBlock with [groups_member group=”Registered”], followed by some Heading. text block and image elements and and trying to close it with another CodeBlock using [/groups_member]
    When I save the page it hides the first Shortcode but renders the content which should be hidden and “[/groups_member]”

    I also tried to put this to work by enabling the Debug mode and inserting the Shortcodes manually into the text editor and when I save it, it works but it breaks the layout at other places. When I switch back to the advanced layout editor and save it, it renders properly but have the issue mentioned above, that the content is not hidden.

    So my question is how can I wrap certain elements of a page into this Groups shortcode using the Layout Editor?

    #513401

    Hey nontrepreneur!

    I am sorry but we do not have offer support with third party plugins.
    You can contact one of our Customization Contractors, who will help you out with the process.
    http://kriesi.at/contact/customization

    Let us know if we could do anything else, regarding our theme

    Regards,
    Basilis

    #513428

    Hi Basilis,
    to put it different words independent from any plugins – how can I wrap a shortcode around elements in the Layout Editor?

    #513717

    Hey!

    You could try enabling debug mode and doing it in the debug window:
    http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/

    Cheers!
    Josue

    #583928

    Hi Gents,

    Did you find a solution nontrepreneur?

    I have also looked into this, I tried the Restrict Content plugin by pippinsplugins with the exact same method. No success, I saw some PHP code that we might be able to use since it is not a shortcode, but can’t find it now :(

    Kind regards.

    #583930

    Okay I have found this: http://wplifeguard.com/how-to-use-wordpress-to-display-content-depending-on-a-users-level/

    It describes how to filter rendered content based on user level via a PHP method, however I have tried the same codeblock method as above with no success.

    Please assist Kriesi

    #584264

    Hi! Same issue here, but with another plugin / shortcode.

    Quoting @nontrepreneur

    to put it different words independent from any plugins – how can I wrap a shortcode around elements in the Layout Editor

    If shortcode wrap is inserted directly in the debug window, it works. But if any ALB element is edited, the shortcodes are automatically wrapped by Enfold [av_textblock] … [/av_textblock].

    Making it clearer, suppose we need to wrap a shortcode in a page with a Special Heading. The debug window will be like:
    [av_heading heading='My Heading tag='h1' style='' size='' subheading_active='' subheading_size='15' padding='10' color='' custom_font='' custom_class=''][/av_heading]

    Then, we can wrap a shortcode around it directly in debug window:

    [my_shortcode]
    
    [av_heading heading='My Title' tag='h1' style='' size='' subheading_active='' subheading_size='15' padding='10' color='' custom_font='' custom_class=''][/av_heading]
    
    [/my_shortcode]

    If page is updated, it is saved exactly like that and everything works fine.

    But, if we edit the Special Heading and save, the debug window will show:

    [av_textblock size='' font_color='' color='']
    [my_shortcode]
    [/av_textblock]
    
    [av_heading heading='My Title2' tag='h1' style='' size='' subheading_active='' subheading_size='15' padding='10' color='' custom_font='' custom_class=''][/av_heading]
    
    [av_textblock size='' font_color='' color='']
    [/my_shortcode]
    [/av_textblock]

    In my case, that breaks the [my_shortcode] wrap processing. The same happens if inserted in Code Blocks.

    This way, is there any way to prevent ALB from changing the debug window code?

    Thanks!

    #584690

    Hey!

    I’m afraid there isn’t because that would require disabling ALB, have you tried placing the shortcode on a Text Block instead of debug window?

    Best regards,
    Josue

    #585035

    Yes and that didn’t work.
    Anyway, I understand this is a very specific requirement and making a final edition directly in debug window does the trick.
    Thanks!

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘How to restrict certain areas of a page using itthinx Groups plugin?’ is closed to new replies.