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

    I think this is a bug. Maybe not...

    In the snippet call, when you set parameter like this
    &liHomeId=`57` &loHomeId=`58`
    we can see the default tpl before to be redirect to the page 57 or 58.
    If you want to display directely the page 57 or 58 (not to see the default template before), in webloginpe.class.php, find this code in functions LoginHomePage() and LogoutHomePage() :
    modx->sendRedirect($url,0,'REDIRECT_REFRESH');
    and replace by
    $modx->sendRedirect($url,0,'REDIRECT_HEADER'); // CREDIT: Guillaume to redirect directely
      Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Ah! Thank you, that’s been bugging me a lot! cool
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 23491 ☆ A M B ☆
        • 1,056 Posts
        Good catch, Guillaume.

        I previously suggested to Scotty a few locations where ’REDIRECT_HEADER’ seems to make more sense than ’REDIRECT_REFRESH’, glad to see that others agree! cool
          Mike Reid - www.pixelchutes.com
          MODx Ambassador / Contributor
          [Module] MultiMedia Manager / [Module] SiteSearch / [Snippet] DocPassword / [Plugin] EditArea / We support FoxyCart
          ________________________________
          Where every pixel matters.
          • 33175
          • 711 Posts
          REDIRECT_HEADER permits to redirect directely to another page but REDIRECT_REFRESH waits the end of all the php script (end of php code) before to redirect.
          REDIRECT_REFRESH is interesting to refresh (not to redirect) the same page with new parameters or not.
          REDIRECT_HEADER is to redirect to another page.

          There has long, I had the same problem for a professional application wink
            Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
            • 28033
            • 925 Posts
            Methinks we should have a WLPE v1.3.1 that collects all of these bugfixes together, for the newbies that download the script and don’t notice all of these bugfixes, and would comment on things already fixed.
              My Snippets
              -> PopUpChunk v1.0
              • 26435
              • 1,193 Posts
              Quote from: Soshite at Oct 31, 2007, 06:32 AM

              Methinks we should have a WLPE v1.3.1 that collects all of these bugfixes together, for the newbies that download the script and don’t notice all of these bugfixes, and would comment on things already fixed.

              Good point,
              I have been working on new features, organizing, and applying these bugfixes as I get time, but 1.4 isn’t quite ready yet. I will start with a clean 1.3 download, apply the patches and upload as 1.3.1.

              Great idea Soshite.

              -sD-
              Dr. Scotty Delicious, DFPA.
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 28033
                • 925 Posts
                ^.^

                It’s amazing how mnay community involvement has gone into this. It’s amazing to see how big it’s gotten compared to just a few months ago. grin
                  My Snippets
                  -> PopUpChunk v1.0
                  • 32699 ☆ A M B ☆
                  • 427 Posts
                  This is an UNOFFICIAL collection of all the patches and fixes I have found in the two main WLPE forums.



                  Backup your OFFICIAL main three files and put these in place in /assets/snippets/webloginpe

                  I hope this helps people as it took me three hours to read 30 pages of forums and to apply all the patches.


                  Make sure to over write the snippet with the contents of the included file in the manager.

                  a simple call [!WebLoginPE!]

                  makes this a great replacement for the typical replacement for the typical modx Weblogin as presented in these files.


                  As the collection of fixes is scattered and unorganized, please use these files at your own risk.

                  Once Scotty releases the 1.31 or 1.4 versions happily remove these files from your very existence...

                  ** Note I removed the download as I have an issue with internet explorer not redirecting correctly with or without all the patches and with or without the updated js .



                    Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

                    Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
                    • 26435
                    • 1,193 Posts
                    Did you add your name to the credits?
                    If not, just post them here and I will get your zip up as 1.3.1

                    Thanks for putting that together. My free time has been non-existent lately.

                    -sD-
                    Dr. Scotty Delicious, DFPA.
                      Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                      All of the above... in no specific order.


                      I send pointless little messages
                      • 32699 ☆ A M B ☆
                      • 427 Posts
                      w shawn wilkerson

                      Just trying to be helpful.

                      My time is also limited, but getting my head around this script will end up saving me droves of time later.
                        Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

                        Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com