We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13331
    • 67 Posts
    Hi there..

    I’ve run into a bit of trouble with WebLoginPE....

    Just started learning how to use it so I might just miss an obvious thing... let’s hope so..

    I’ve put a login box in the sidebar (original minimal template for now) with the call:
    [!WebLoginPE? &loginFormTpl=`wlpelogin` &successTpl=`wlpesuccess`!]
    ....I’ve more or less used the suggested templates from the documentation apart from removing some stuff..
    This gives me a Login box.... if I press "Forgot password" the whole "Forgot password text and e-mail input shows up in the sidebar.. and if I type in the u/p and log in it shows the success-message in the sidebar...
    Can I change it so the Forgot password stuff is shown in "content" instead?

    I’ve made a document which I call register user..
    In the document my call looks like this:
    [!WebLoginPE? &type=`register` &regType=`verify` &regRequired=`email,username,fullname` &groups=`company` &pruneDays=`7`!]
    This gives me the register form where I can put in e-mail username and full name..
    - but when I press register my login box in the sidebar turns into a register form with all the fields, terms of service and a register button!??
    How do I avoid this? ....I only want the login box to function as a login box!
      • 34017
      • 898 Posts
      Are the parts being updated via ajax?

      I would setup 3 pages with the snippet
      - Register
      - Login (not necessary but an option)
      - Forgot Password

      For your login box, dont use webloginpe. Instead have just make it a plain html chunk that POSTs to the Login page.
      Do the same for Forgot Password
      and Register

      I did this on the one site I used wePE for.

      Everyone can login from the sidebox. But if they go to the page they dont have access to, they can be redirected to the login page
        Chuck the Trukk
        ProWebscape.com :: Nashville-WebDesign.com
        - - - - - - - -
        What are TV's? Here's some info below.
        http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
        http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
        • 13331
        • 67 Posts
        I’m not using Ajax as far as I know..

        Already have a page for Register which is fine..

        I did a very simple form for the login box in the sidebar instead of the snippet call... and then I made a document where I call a standard WebLoginPE and used that ID as action for the login box...
        That works in regards of not screwing up the sidebar..
        BUT.. the login box should still change to two lines of text and a logout button in the sidebar which it does not do now..

        I don’t know how I can call the forgot password on a page by itself?
          • 34017
          • 898 Posts
          There’s a weblogin snippet that is installed by default on modx. Use that for the login box. Just switch the HTML or chunks with what you need.
          - This snippet shows one thing if the user is logged in and another if they’re logged out.

          For the forgot password page, you can make need to make this another form
          
          <form post="etc..." action="forgot-password-page">
          <input type="hidden" name="serviceButtonValue" value="forgot" />
          <input type="submit" value="Forgot Password?" />
          </form>
          
          


            Chuck the Trukk
            ProWebscape.com :: Nashville-WebDesign.com
            - - - - - - - -
            What are TV's? Here's some info below.
            http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
            http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
            • 3749
            • 24,544 Posts
            I’m not sure if it would meet your needs, but there is also a Personalize snippet that will show one chunk to logged in users and another to not-logged-in users.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting