We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8881
    • 73 Posts
    Hey on my site I have a page setup for people to register and it has this call to it
    [!WebSignup? &groups=`Registered`!]


    But is there something I can add to it so when users are already registered and logged in to the account. But they still go to the registration page. The registration page says something like "You are already registered" instead of giving the registration form again?
      • 7923
      • 4,213 Posts
      you could do a snippet that does:
      if ($modx->getLoginUserName()!="") {
           return "You are already registered";
      } else {
           return $modx->runSnippet("WebSignup", array("groups" => "Registered"));
      }
      


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."