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

    I confirm your issue. I have reproduced it.

    I will look tomorrow at this trouble (it is past midnight in France now ), but If you know php, you can investigate in the stripSnip function inside the includes/ajaxSearch.inc.php file. The following part of code is irrelevant for your content document !

    /**
    * stripSnip : Remove modx sensitive tags
    */
    function stripSnip($text){
    // Regular expressions of things to remove from search string
    $modRegExArray[] = ’~\[\[(.*?)\]\]~’; // [[snippets]]
    $modRegExArray[] = ’~\[!(.*?)!\]~’; // [!noCacheSnippets!]
    $modRegExArray[] = ’!\[\~(.*?)\~\]!is’; // [~links~]
    $modRegExArray[] = ’~\[\((.*?)\)\]~’; // [(settings)]
    $modRegExArray[] = ’~{{(.*?)}}~’; // {{chunks}}
    $modRegExArray[] = ’~\[\*(.*?)\*\]~’; // [*attributes*]

    // Remove modx sensitive tags
    foreach ($modRegExArray as $mReg)$text = preg_replace($mReg,’’,$text);
    return $text;
    }
    It seems simply that the case of [+phx+] is not treated !
    If you want a quick correction try to add:
    $modRegExArray[] = ’~\[\+(.*?)\+\]~’; // [+phx+]
    in the stripSnip function.
      • 25551 ☆ A M B ☆
      • 1,231 Posts
      Hey, thanks for the reply... I’ll check back tomorrow as it’s late here in Scotland as well! grin

      I’m glad it wasn’t just me that has this problem... thanks!
        Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
        AugmentBLU - MODX Partner

        BLUcart - MODX Revolution E-Commerce & Shopping Cart
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        For some reason in IE if i click go on the search it’s taking me to 0.html

        I have friendly urls on that’s why it’s showing .html.

        It works fine in Firefox but it’s redirecting to another page when used in IE.

        http://www.err-clan.com/index.php?q=mainhome.html

        Live example.
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart
          • 11975
          • 2,542 Posts
          Quote from: dhilden at Jan 24, 2008, 07:00 AM

          I’m a noob and have been reading through the forums/wiki for half a day (and finding tons of neat stuff but nothing to solve my problem)...Custom search through parents (one specific folder in the doc tree) - ok no problem
          But I would like to have multiple drop down select search boxes (with forced choices, users can’t input text) that would look like this:

          category:
          -oranges
          -apples
          -bananas

          taste:
          -sweet
          -bitter

          Visitors to the website can search category or taste (doesn’t have to be both at the same time).

          The ’Category’ and ’Taste’ search results are short descriptions on individual pages in the doc tree ( I was wondering if I could tag something in the doc that would limit what is searched)... these individual pages/tags could be added to or modified through the CMS.

          I do not know much about programming and can’t quite figure out TVs... wondering if someone could inform me as to the level of difficulty in doing this. Is there a documented example? Can a noob learn how to do something like this, if so where to start...

          Any advice is greatly appreciated, have a great day!



          Hi,

          tvExplorer is the snippet to use in your case.
          It does not include ajax feature but allow you to create easily advanced search forms.

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 30562
            • 99 Posts
            Hi coroico!

            I continue to construct my site and I study MODx simultaneously.
            Here I also have found one more defect. I do not know, to what theme it to carry. But it is somehow linked to search.

            More in detail.
            I continue to experiment with a simple site from distrib MODx 9.6.1. I wish to find the information in a blog. Search in Russian works only in the blog. But search in Russian does not work in comments. wink
              • 30269
              • 119 Posts
              Funny one: on a just installed 1.7

              If I ajaxSearch starting with "Java", it keeps on searching and never returns. "Javas" also hangs, but for example "Javax" not... Well, I tell the client that they can use the search option for everything as long as it does not contain the starting letters of "Javascript" wink
                • 5811
                • 1,717 Posts
                Hi Tom,

                Not sure to understand if it is a joke or not ....
                By default the minimum number of characters to require for a word to be valid for searching is 4. So a searchword like "java" is valid.
                Could you give me the address of the site or send me by email the content of the document which contains the unreached words "java".
                  • 30269
                  • 119 Posts
                  No, no jokes here;) www.snippetshop.com Welcome to give it a try...
                    • 22303 MODX Staff
                    • 10,725 Posts
                    There is a javascript error being reported regarding malformed URI sequence when trying to render the response, but the Ajax response is returning the results of pages containing the word java according to Firebug.
                      • 19943
                      • 14 Posts
                      How does one turn off the introMessage?

                      This discussion is closed to further replies. Keep calm and carry on.