We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25663 MODX Staff
    • 12,272 Posts
    Call it uncached in your template. Weblogin requires further processing and shouldn’t be cached:
    [!WebloginPE? &type=`simple`!]
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 31037
      • 358 Posts
      I belive he is already calling it uncached, at least it is in his attached picture.

      I was sure the call came from some other place, but when putting some text right before and after the call, the call comes out with the text still surronding it, and also changed to a cached call.

      X[!Call!]Y did render X[[Call]]Y on the page when he tested it.

      Strange...



        • 18367
        • 834 Posts
        OK here’s the deal, I did the famous Microsoft rip it out and start again solution.

        IE I deleted the snippet and all it’s folders, closed down the server, rebooted and reinstalled the snippet.

        Hey presto the page now works.

        Did I get the original install wrong? Maybe but unlikely. As others have pointed out the install instructions are pretty simple.

        Did I get the original snippet call wrong? No. I didn’t delete or change that.

        Hopefully this experience will help others.

        Also, it should illustrate that telling people just to read the documentation isn’t always the answer, sometimes you ahve to think laterally.

        Many thanks to Jacob, your original instructions were accurate after all.

        Thanks also to Uncle, Ryan and the others for tolerating this issue.

          Content Creator and Copywriter
          • 13373
          • 70 Posts
          Phew, I was hoping the instructions were correct! smiley

          Glad it’s working properly for you now. As you work your way through it, perhaps you can make notes on what ’trips you up’ from here on, so that we can expand my little starter tutorial and make it more useful.

          I really think it needs to be done, as I’ve seen a lot of others ask for it, and then they say ’I’m going to write a tutorial after I’m done!!’ and it never happens smiley

          We’ll then be able to add it to the Wiki.
            • 28033
            • 925 Posts
            Quote from: markg at May 21, 2008, 07:24 PM

            OK here’s the deal, I did the famous Microsoft rip it out and start again solution.

            IE I deleted the snippet and all it’s folders, closed down the server, rebooted and reinstalled the snippet.

            Hey presto the page now works.

            Did I get the original install wrong? Maybe but unlikely. As others have pointed out the install instructions are pretty simple.

            Did I get the original snippet call wrong? No. I didn’t delete or change that.

            Hopefully this experience will help others.

            Also, it should illustrate that telling people just to read the documentation isn’t always the answer, sometimes you ahve to think laterally.

            Many thanks to Jacob, your original instructions were accurate after all.

            Thanks also to Uncle, Ryan and the others for tolerating this issue.

            Might have been an issue where the file didn’t transfer correctly, and you had part of the data being corrupt. That’s the only explanation I could think of. wink
              My Snippets
              -> PopUpChunk v1.0
              • 18367
              • 834 Posts
              OK,

              one more tip for total noobs like me.

              This isn’t going to work fully on a local server.

              Once I tried Jacobs instructions on a live server it worked faultlessly.

              Answered a whole load a questions I hadn’t got round to asking yet.

              Yeh I know some of you are going "Well, Duuh!"

              Just goes to show: "Assume nothing."
                Content Creator and Copywriter
                • 4229
                • 16 Posts
                Another "basic" question:  how can I create a logout button for inclusion on a page?

                I can create a text link back to the login page no problem and that has a logout button (when you’re logged in).

                What if you just want to put a logout button on a specific page or Template somewhere?

                -edit-

                Hmm, ok, found a useful thread here where Dr. Scotty Delicious shows how to make a Logout text link.  Quite simply:

                <a href="[~[*id*]~]&service=logout" title="Logout">Logout</a>

                Or replace [*id*] with the actual ID of your login page.

                That works fine (better than linking back to the login page, which makes the user click 2 links to logout), though I’m still curious how you’d add a Logout button. smiley
                  • 28033
                  • 925 Posts
                  When I get around to doing some more work in the Docs section in the Wiki, I’m planning to have a Beginner + Advanced section for things. wink

                  (Uni’s being a pain right now, hence why I can’t do much on it right now.)
                    My Snippets
                    -> PopUpChunk v1.0
                    • 5308
                    • 21 Posts
                    markg - yes!
                    You got it smiley

                    Thank you so much - i will continue reading the link.

                      • 31972
                      • 13 Posts
                      As a noob with MODx and Weblogin, I have a problem: If I add the snippet [!WebLoginPE? &type=`simple`!] to my template, I get the error below. I am running on localhost with XAMPP.
                      Martin


                      MODx encountered the following error while attempting to parse the requested resource:
                      « PHP Parse Error »

                      PHP error debug
                      Error: include_once(C:/Programmes/xampp/htdocs/mdx/mdx/assets/snippets/webloginpe/webloginpe.class.php) [function.include-once]: failed to open stream: No such file or directory
                      Error type/ Nr.: Warning - 2
                      File: C:\Programmes\xampp\htdocs\mdx\mdx\manager\includes\document.parser.class.inc.php(770) : eval()’d code
                      Line: 27