We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5452
    • 41 Posts
    I have just learned that when calling WebLoginPE, I have to differentiate between an uncached calling and a cached calling for the snippet! ( [!WebLoginPE!] as opposed to [[WebLoginPE]] )

    What I would like to know now is... How do I get the new page to load once the user has successfully logged in, and where the login form is, I want that replaced on the new page with ’Hello *username*. You are logged in! *Logout button*’...

    I already am able to have the username, pass, and login button on the page where I want it.

    Please help.

    All the best,
    ~Slim~
      • 27330
      • 884 Posts
      you can define which page to load after successful login using the &liHomeId

      and to show the user name in the form do something like this:
      <p id="wlpeWelcomeParagraph">Welcome back <strong>[+user.username+]</strong>,
      it is nice seeing you again!</p>

      check the ’Docs’ folder in the download archive, all you need to know and more in there.
        • 5452
        • 41 Posts
        How do I ensure that the ’logged in’ message that i want, with the username in it, and the LOGOUT button is visible where the login form was at, on the page that opens after the user logs in?

        All the best,
        ~Slim~
          • 5452
          • 41 Posts
          I have tried this...

          [!WebLoginPE? &liHomeId=`9`!]

          and this...

          [[WebLoginPE? &liHomeId=`9`]]

          on the page. The string above was located in the template, inside the body area of the html...

          <body>
          [!WebLoginPE? &liHomeId=`9`!]
          </body>

          or

          <body>
          [[WebLoginPE? &liHomeId=`9`]]
          </body>

          I get the login form, setup just the way I want it to. What I’m NOT getting is the url I have set as the return url, and I’m not getting access to the pages that I have set for the web user account access I have set for the username I am login in as. I don’t understand. Also, in the docs folder for webloginpe there aren’t examples of how to formulate the string to call the snippet, like there are for other snippets.

          All the best (and very frustrated with WebLoginPE),
          ~Slim
            • 5452
            • 41 Posts
            No suggestions with WebLoginPE ?
              • 27330
              • 884 Posts
              On my site I call all WLPE calls from chunks, for example this is what I have in my sidebar:
               [+phx:if=`[[GetField? &field=`id`]]`:isnt=`16`:and:isnt=`17`:and:isnt=`39`:then=`[!WebLoginPE? &type=`simple` &loginFormTpl=`wlpe-login-form` &successTpl=`wlpe-loggedin-user-sidebar` &profileHomeId=`17` &profileTpl=`wlpe-viewprofile-tpl` &regHomeId=`16` &resetTpl=`wlpe-reset-pass-tpl`!]`+]


              1. the PHx is there just to decided if the sidebar should be shown.
              2. use type=simple
              3. then I’m using different chunks for the login form, pretty much same as default with some minor changes.
              4. Instead of loading a different page I just load another chunk with the Welcome Username message. another page all together should work as well...

              I *think* you should try adding the &type=`simple` part, also recommend you to look at the folder titled "Default Forms" what I did was taking the default form, editing it and saving in as a new chunk which I add to my WLPE call.
              I have 18 chunks just for WLPE forms.



                • 5452
                • 41 Posts
                Thanks for those tips... 18 chunks just for the form... WOW! Sounds like I am about to be in trouble.

                Sheesh.

                All the best,
                ~Slim~
                  • 28033
                  • 925 Posts
                  OT: ClevelandSlim, you know there’s a subforum for WLPE for your 3-4 WLPE topics, right?
                    My Snippets
                    -> PopUpChunk v1.0
                    • 5452
                    • 41 Posts
                    No, I didn’t know there was a subforum. I’ve tried searching the forum for WebLoginPE topics. Haven’t been able to find anything concrete. Seemed to me like there was a lack of info on WLPE.

                    I will gladly go to the subforum though.

                    Can someone link me? I’m going to look for the subforum now, but I am in such an agitated state I may do something drastic if I can’t find it... LOL.

                    All the best,
                    ~Slim~
                      • 27330
                      • 884 Posts
                      you don’t need 18 chunks, I just don’t like Defaults smiley

                      WebloginPE subforum is here:
                      http://modxcms.com/forums/index.php?board=275.0