Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Search
  • AjaxSearch
  •  
  • Search Highlighting in EVO 1.0 - >#

  • 785
    2,098
    Создание сайтов на MODx, поддержка сайтов, поисковая оптимизация, программирование, копирайтинг
    Статьи о MODx, регулярно новые публикации

    AKots Reply #1, 2 years, 9 months ago

    Reply
    • Link to this post#1
    In Search Highlighting:
    $body = explode("<body", $output); // break out the head
    But:
    $output = implode("<body>", $body);
    Result:
    <body>>
    Solution:
    $output = implode("<body", $body);


  • 5811
    1,677

    coroico Reply #2, 2 years, 9 months ago

    Reply
    • Link to this post#2
    Thanks Bredova & Akots. Registered as AJAXSEARCH-38
    I didn't see this typo.
    I made my tests and the demo site with the advSearchHighlight plugin (advSearchHighlight.tpl), which doesn't explode the <body> tag.

        AdvSearch_Highlight is an advanced "Multi-Part" variant of Search_Highlight
        It allows to frame with "<!--start highlight-->" and <!--end highlight-->
        several parts of the site that will be highligthed


  • 8643
    271

    elastic Reply #3, 2 years, 9 months ago

    Reply
    • Link to this post#3
    Hi coroico,
    Can you add multi-language support to SearchHighlight plugin(for $termText,$removeText)?



  • 4036
    229
    Мое портфолио - http://bredova.ru

    Bredova Reply #4, 2 years, 9 months ago

    Reply
    • Link to this post#4
    Dear coroico,
    I have problem with search Highlighting in EVO 1.0

    http://www.kiddys.info/ I use AjaxSearch 1.8.3

    Search:
    [!AjaxSearch? &AS_showResults=`0` &AS_landing=`1036` &showMoreResults=`1` &moreResultsPage=`1036` &extract=`0` &language=`russian-utf8` &addJscript=`0`!]

    Page results:
    [!AjaxSearch? &ajaxSearch=`0` &AS_showForm=`0` &language=`russian-utf8`!]


    I enter words for search "100", then on page with results of search I pass under any link (http://kiddys.info/catalog/detskaya-mebel/stoly-dlya-obucheniya-i-tvorchestva-aksessuary/lampa-proektor-dlya-risovaniya-1001a31.html?searched=100&advsearch=oneword&highlight=ajaxSearch_highlight+ajaxSearch_highlight1 )

    And I see <body>> on this page.

    I change
    $output = implode("<body>", $body);

    $output = implode("<body", $body);
    in plugin.searchHighlight.tpl

    But the error does not disappear.

    Help me, please!


  • 22668
    718
    - Posts: over9999999
    Нашли ошибку в переводе? Вам сюда => Топик по переводу Evolution
    Все что идет в поставке с MODx - тоже там.
    Ошибки и их исправления для Evolution Что? Ты еще не оставил ошибку?
    Are you one of the cool guys who translate MODx? Let me know in this thread.

    Paprikas Reply #5, 2 years, 9 months ago

    Reply
    • Link to this post#5
    Hi coroico
    Is this replacing can fix the problem?

        $body = explode("<body", $output); // break out the head
    replace with
        $body = explode("<body>", $output); // break out the head


    Working for me.


  • 4036
    229
    Мое портфолио - http://bredova.ru

    Bredova Reply #6, 2 years, 9 months ago

    Reply
    • Link to this post#6
    Quote from: Paprikas at Aug 11, 2009, 05:10 AM
    Hi coroico
    Is this replacing can fix the problem?

        $body = explode("<body", $output); // break out the head
    replace with
        $body = explode("<body>", $output); // break out the head


    Working for me.

    This is my file


  • 785
    2,098
    Создание сайтов на MODx, поддержка сайтов, поисковая оптимизация, программирование, копирайтинг
    Статьи о MODx, регулярно новые публикации

    AKots Reply #7, 2 years, 9 months ago

    Reply
    • Link to this post#7
    Quote from: Bredova at Aug 11, 2009, 05:25 AM
    This is my file
    Not file replace, but plugin in admin mode.


  • 5811
    1,677

    coroico Reply #8, 2 years, 9 months ago

    Reply
    • Link to this post#8
    @Bredova
    As explained by akots, you need
    1/ In the searchHighlight.tpl file replace:

    line 123: $output = implode("<body>", $body);
    by:
    $output = implode("<body", $body);

    2/ copy / paste the content of this file inside the content of the plugin in the manager


    @Paprikas
    $body = explode("<body", $output); // break out the head
    replace with
    $body = explode("<body>", $output); // break out the head
    This fix the problem, but if you have for instance: <body> the plugin couldn't work.
    This is the reason why I have done the change between 1.4 and 1.3 versions.


    Apologies for this error, but as I use the advSearchHighlight.tpl as plugin, I didn't see this error.


  • 4036
    229
    Мое портфолио - http://bredova.ru

    Bredova Reply #9, 2 years, 9 months ago

    Reply
    • Link to this post#9
    Sorry, I not there corrected, the error has disappeared.


  • 22668
    718
    - Posts: over9999999
    Нашли ошибку в переводе? Вам сюда => Топик по переводу Evolution
    Все что идет в поставке с MODx - тоже там.
    Ошибки и их исправления для Evolution Что? Ты еще не оставил ошибку?
    Are you one of the cool guys who translate MODx? Let me know in this thread.

    Paprikas Reply #10, 2 years, 9 months ago

    Reply
    • Link to this post#10
    Ok. The first fix not work for me because I get error on pages that have Jot call.





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
AKots, Bredova, Paprikas, coroico, elastic

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy