We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6281
    • 45 Posts
    Quote from: ncrossland at Jun 20, 2010, 01:08 PM


    The previous version is still available to download:
    http://modxcms.com/extras/download/555/555

    Thank you smiley
      Argue for your limitations and they are yours!
      • 1611
      • 591 Posts
      ncrossland, thank you, we’ll wait. It’s very interesting to view new version smiley
        • 21056
        • 327 Posts
        I’ve reuploaded, and the link appears to be working now (didn’t need mod approval this time?).

        There aren’t any changes of any significance; just updated the metadata to make it compatible with the new installer for those of us who like to have a custom build, and added a couple more default modifiers.

        It would be nice to update the package more generally, I know there are a few performance tweaks on the forums which should be incorporated.
          Author: ManagerManager plugin - customise your ModX manager interface

          Rckt - web development, Sheffield, UK
          • 16289
          • 121 Posts
          Hi,
          Just noticed that Phx doesn’t support placeholders set by non-cached snippets on cached page. That occurs whenever Jot or Ditto uses their own placeholders to output info such as [+jot.html.comments+] and etc.
          Thorough research of phx.parser.class.inc.php led me to lines:


          preg_match_all(’~\[(\+|\*|\()([^:\+\[\]]+)([^\[\]]*?)(\1|\))\]~s’, $template, $matches);
          if ($matches[0]) {
          $template = str_replace($matches[0], ’’, $template);
          $this->Log("Cleaning unsolved tags: \n" . implode("\n",$matches[2]) );
          }

          That part of function erases all unknown placeholders. So that phx is not be able to recognise placeholders until they are not set by snippets. On other hand snippets are also parsed by phx.
          Solution is: DO NOT erase unknown placeholders as long as all of the snippets are not executed
            How could number of mysql queries be more than number of tables in DB???
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            It has long been known that the PHx plugin will eat placeholders. There are a few workarounds; my favorite is to not use the PHx plugin at all; use snippets instead.
              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
              • 16289
              • 121 Posts
              Solving this will make my day smiley
              Every template of Jot contains plenty of conditions used pHx.
              I can’t imagine how to replace them with my own snippets - exausting work!
                How could number of mysql queries be more than number of tables in DB???
                • 33337
                • 3,975 Posts
                Quote from: kpoxas at Jul 26, 2010, 08:29 AM

                Solving this will make my day smiley
                Every template of Jot contains plenty of conditions used pHx.
                I can’t imagine how to replace them with my own snippets - exausting work!
                Jot comes with built-in PHx. So if you don’t have separate PHx plugin installed, Jot will still work.
                  Zaigham R - MODX Professional | Skype | Email | Twitter

                  Digging the interwebs for #MODX gems and bringing it to you. modx.link
                  • 16289
                  • 121 Posts
                  Jot comes with built-in PHx. So if you don’t have separate PHx plugin installed, Jot will still work.
                  But all headache is in separate PHx since it simplifies my work with templates.
                  Anyway I’m stubborn smiley !
                  Just made some fixes in phx class and i’m taking delight in placing all Jot, AjaxSearch generated placeholders anywhere in my template!
                  I know it’s not perfect but....works!
                  More in attached file.
                    How could number of mysql queries be more than number of tables in DB???
                    • 8883
                    • 59 Posts
                    I use the custom modifiers GET and POST eg. in this way:

                    I use in the pagetitle TV of an search-document with an AjaxSearch Call

                    Search for: [*phx:get=`AS_search`*]


                    In get.phx.php:
                    return $_GET[$options];
                    


                    The code should be modified (htmlspecialchars,..) to prevent XSS, or?

                    Bye
                      • 12110
                      • 122 Posts
                      Shouldn’t this work:

                      [*description:ifempty=``:else=`<h3>[*description*]</h3>`*]


                      If [*description*] is empty, the h3 tags still are shown in the source code of the parsed page.

                      What’s working is

                      [+phx:if=`[*description*]`:is=``:then=``:else=`<h3>[*description*]</h3>`+]


                      Can’t see where I’m wrong in the first example - thanks!

                      Phx 2.1.4 is installed.