We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    @coroico

    I understand you now... it will only highlight words within the given area and not include words in the menu or headers if they are not within the frame.

    Ross
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 5811
      • 1,717 Posts
      Version 1.8.0 is now available here

      @Akots:
      $text=html_entity_decode($text, ENT_QUOTES, "UTF-8");
      doesn’t run for Php4. see http://bugs.php.net/bug.php?id=25670 So I haven’t implemented this suggestion and I haven’t any workaround for this issue (cut of &)

      I have added the "u" option In the file search.class.inc.php file. I will do tests with latin1 later to check that it’s always correct.


        • 5811
        • 1,717 Posts
        For information, I have done some tests with "latin1" charset and i get an error with the "u" PCRE modifier. This issue is described here. So I will be obliged to adapt the code in function of the context (utf8 or non-multi-byte character set like latin1).
          • 10612
          • 11 Posts
          Hello! I need to help me!!!!!!
          What is it ?
          Fatal error: Call to undefined function mb_strlen() in G:\home\nador.net\www\assets\snippets\ajaxSearch\classes\ajaxSearch.class.inc.php on line 304





          P.S -I am very bad speak English!
            • 10487 MODX Staff
            • 1,535 Posts
            @geforcefx: It would appear that this version of AjaxSearch requires the mbstring PHP extension to be enabled on your host. You could contact your host to see if they can enable the mbstring extension for you.

            @coroico: Could a check be made to see if the mbstring extension is available before trying to call mb_strlen() seeing as it’s not enabled in PHP by default? Perhaps it could fallback to using strlen() if mb_strlen() is not available.
              Garry Nutting
              Senior Developer
              MODX, LLC

              Email: [email protected]
              Twitter: @garryn
              Web: modx.com
              • 10612
              • 11 Posts
              @garryn: Thank you. Every thing is all right !! grin
                • 19889
                • 616 Posts
                Hello
                I was wondering whether there is a way to get AjaxSearch to work with the latest stable Mootools version which is 1.2?

                Thank you
                  • 7231
                  • 4,205 Posts
                  I think that AS works with the version of MT available in MODx. I don’t know what would need to change to work with the latest release.
                    [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                    Something is happening here, but you don't know what it is.
                    Do you, Mr. Jones? - [bob dylan]
                    • 19889
                    • 616 Posts
                    that’s bad news - thanks for replying
                      • 5811
                      • 1,717 Posts
                      @mmjaeger: to migrate AS to the last version of Mootools you need to:

                      1/ adapt the js code of js/ajaxSearch.js to take into account of the last API
                      2/ build a new mootools package for AS with the relevant mootools 1.2 functions
                      3/ define the new location of the mootools library used by AS. See the file snippet.ajaxSearch.php line 300