We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 551
    • 2 Posts
    Hi all forum`er, can I know which snippet is suitable if I want to make a page where only a registered member can access it ? Please advice smiley Thank You
      • 26903
      • 1,336 Posts
      Have a look at WebLoginPE here http://modxcms.com/WebLoginPE-1.3.1-2142.html depending on what you actually need to do here of course.
        Use MODx, or the cat gets it!
        • 7231
        • 4,205 Posts
        It is a 2 step process:

        There is the managing of the login needs a snippet for the front-end interaction (you can use a snippet for registration as well or do it via the manager). WebLoginPE and WebLogin are the login management snippets available (PE has more features).

        The second part of the equation is setting the web user group and assign it to a document group then assign the "private" document to the same document group.
          [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

          Something is happening here, but you don't know what it is.
          Do you, Mr. Jones? - [bob dylan]
          • 551
          • 2 Posts
          Thanks dev_cw and shamblett !! I decide to use WebLogin wink

          One quick question, I’m using WebSignup for user registration, and It will automatically send an account info to the mmber’s email after they submitted it, how do I make it send to my email also? I have browsed around but cannot find a clue. pls advice
            • 7231
            • 4,205 Posts
            I just took a look at websignup’s code and I don’t think it sends a message to the admin as well. It would be easy to add this by editing the weblogin.common.php file and adding a second mail() call but with the admin as the recipient.

            Actually, thinking a bit more, you could use a plug-in to do this (so no hacking needed) by setting it to the OnWebSaveUser event (some one please confirm).
              [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

              Something is happening here, but you don't know what it is.
              Do you, Mr. Jones? - [bob dylan]