We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17097
    • 41 Posts
    Hi everybody,
    I try to get the WebLoginPE to work, but so far nothing happens when I click the submit button.
    This is what I did:
    -I uploaded the webloginpe folder to the snippets folder of my modx folder. I have MODx installed in the modx folder on my site. To test it.
    -I made a snippet with the weblogin text from the folder.(do I have to do anything with the weblogin.templates.php and the weblogin.class.php, that are in that folder too?)
    -Then I made all the chunks from the default forms, naming them for instance: ActivationFormTpl etc.
    -Then I made 2 new pages, for registration and profile.
    -I put the snippet call for login, [!WebLoginPE? &type=`simple`!], in the template I use at the moment.
    -I put the snippet call for registration, [!WebLoginPE? &type=`register`!], in the registration page.
    -I put the snippet call for profile, [!WebLoginPE? &type=`profile`!], in the profile page.

    Then I fill in the form on the registration page and click the submit button. But nothing happens.
    What am I doing wrong or what did I forget to do?
    http://www.jomedio.nl/modx/index.php?id=61
      • 17097
      • 41 Posts
      I also noticed, that the registration form that is appearing now is not the one that I want to use. I made some changes to the RegisterInstantFormTpl and they are not showing, so I guess the registration form that is showing now is maybe the one that comes with the Modx software by default?
      Can somebody please shed some light on all of this?
      The documentation really isnot helpful at all. I read all the posts in this thread, but only the post of Jacob explained something.
        • 28033
        • 925 Posts
        I’ve never used &type=`simple`, but maybe try linking to the template via the chunk (instead of editing the templates)?
          My Snippets
          -> PopUpChunk v1.0
          • 17097
          • 41 Posts
          Quote from: Soshite at Jul 09, 2008, 06:54 AM

          I’ve never used &type=`simple`, but maybe try linking to the template via the chunk (instead of editing the templates)?

          Hi Soshite,

          Thanks for your answer, but I have no clue what you mean. huhMaybe you can give me an example what I could use for the registration page for instance? I now have used the defaultRegisterInstantForm.
          But I still also havenot figured out why I don’t get the template that I edited, but another one. huh
          Somebody else can help me on my way?
            • 4041
            • 788 Posts
            I think in this case if you create new templates (chunks) then you have to call that chunk specifically in the document or the default one supplied in the weblogin folder is used instead. Look at the top of the weblogin.snippet to see the various template calls you can modify (lines 53 - 71)

            For example, to call your modified register template (chunk), try this - changing MyNewRegisterForm to the chunk name you created for this purpose:
            [!WebLoginPE? &type=`register` &registerTpl=`MyNewRegisterForm`!]

            I haven’t played much with this snippet but I am pretty sure this will help with your issue smiley
              xforum
              http://frsbuilders.net (under construction) forum for evolution
              • 17097
              • 41 Posts
              Quote from: Breezer at Jul 09, 2008, 07:51 AM

              I think in this case if you create new templates (chunks) then you have to call that chunk specifically in the document or the default one supplied in the weblogin folder is used instead. Look at the top of the weblogin.snippet to see the various template calls you can modify (lines 53 - 71)

              For example, to call your modified register template (chunk), try this - changing MyNewRegisterForm to the chunk name you created for this purpose:
              [!WebLoginPE? &type=`register` &registerTpl=`MyNewRegisterForm`!]

              I haven’t played much with this snippet but I am pretty sure this will help with your issue smiley

              Hi Breezer,

              I am sure I must be blind, but I can’t find those template calls in the weblogin snippet. Not in the snippet that is original in MODx and also not in the webloginPE snippet.
              By the way I have changed my snippet call on the registration page to:
              [!WebLoginPE? &type=`register` &RegisterInstantFormTpl=`RegisterInstantFormTpl` &notify=`[email protected]` &regSuccessId=`63` &regSuccessPause=`3`!] 
              
              but still I get the same old page. huh

              I searched the Modx folder with Agent Ransack, but there is no "MyNewRegisterForm" in the Modx folder.
                • 4041
                • 788 Posts
                try this and see if it helps:
                [!WebLoginPE? &type=`register` &registerTpl=`RegisterInstantFormTpl` &notify=`[email protected]` &regSuccessId=`63` &regSuccessPause=`3`!]

                In the webloginpe/webloginpe.snippet.php file, the snippet params you provide in the document call are turned into variables, if none are set it reverts to a default setting. The following line is the one that changes the registration template, look at the others in that block of code and you can tell which is for what purpose thanks to the naming convention:

                $displayRegisterTpl = isset($registerTpl) ? $wlpe->Template($registerTpl) : $wlpeRegisterTpl;

                The above code is an if/else statement shortened up.

                if(isset($registerTpl)){
                $displayRegisterTpl =$wlpe->Template($registerTpl);
                }else{
                $displayRegisterTpl =$wlpeRegisterTpl);
                }
                  xforum
                  http://frsbuilders.net (under construction) forum for evolution
                  • 17097
                  • 41 Posts
                  Finally I found it!
                  In the webloginPE snippet I read that the the registerTpl chunk will override the default registration page.
                  The weird thing is, that there are a lot of chunks in the webloginPE folder, but no registerTpl file. huh
                  So I created a new chunk, called registerTpl and put the registrationform I made so far in it.
                  And called it on the registrationpage with:
                  [!WebLoginPE? &type=`register` &registerTpl=`registerTpl` &notify=`[email protected]` &regSuccessId=`63` &regSuccessPause=`3`!] 
                  

                  Hopefully somebody can benefit from this.

                  Unfortunately when I click the submit button, nothing happens. What can I try next?
                    • 17097
                    • 41 Posts
                    Maybe somebody can tell me what files are absoultely necessary for this to work? huh
                      • 28033
                      • 925 Posts
                      Try adding a / before the link at the start of the forum (it’s {+ID+} or something like that). You might have a wonky server like I used to have.
                        My Snippets
                        -> PopUpChunk v1.0