We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9405
    • 11 Posts
    Hello Forum,

    sorry for crossposting, I’m just trying to describe my problem to a wider audience than only the german speaking...

    In a MODx site I’d like to create a password-protected area. To implement it, I created two chunks, one containing the protected content (called ’verisecretcontent’) and another containing a login-form (called ’userlogin’) I tested the chunks and they are working for itself.

    Now I called the snippet:
    [[MemberCheck? &groups=`site_admin, registered` &chunk=`verisecretcontent` &ph=`userlogin` &debug=`true`]]

    but definitely nothing happens huh. No chunk displays and looking into the HTML-Sourcecode I found the according area empty. (No matter if I am logged in or not)

    Do you know whats going wrong here?

    Thx for help,
    falk07
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Clear your site cache, and try the snippet call uncached [!...!]
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 9405
        • 11 Posts
        Thanks for your answer.
        I tried, but unfortunately nothing changed sad

        Do you know any examples or tutorials how to implement user registration and protected areas? Maybe I just choosed a wrong way to make this work...

        falk07
          • 19153
          • 53 Posts
          i notice this is a very old thread by i have the same error and i wonder if this was ever resolved? Membercheck simply does not work and i feel like i have tried everything....

          my call:

          [!MemberCheck? &groups=`siteadmin,subscribers` &chunk=`download` &default=`join` &ph=`MemberMenu`!]
          [+MemberMenu+]