Topic: Search Highlighting in EVO 1.0 - <body>>  (Read 1781 times)

Pages: [1]   Go Down

#1: 10-Aug-2009, 10:00 PM

AKots
Posts: 1,594

WWW
In Search Highlighting:
  $body = explode("<body", $output); // break out the head
But:
   $output = implode("<body>", $body);
Result:
<body>>
Solution:
   $output = implode("<body", $body);
« Last Edit: 11-Aug-2009, 05:34 PM by coroico »
Создание сайтов на MODx, поддержка сайтов, поисковая оптимизация, программирование, копирайтинг
Новичкам о некоторых особенностях MODx
Статьи о MODx, регулярно новые публикации

#2: 11-Aug-2009, 02:45 AM

Moderator

coroico
Posts: 1,419

WWW
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.

Code:
   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
« Last Edit: 11-Aug-2009, 05:34 PM by coroico »
              AjaxSearch 1.9.0                                                          AnythingRating 1.0                                       ModxLinks repository                      
Download       Documentation                                                   Download            Documentation                                  
Demo site       Bugs & Features     Support                                Demo site            Support                                  CssSwitcher   Support     Download

#3: 11-Aug-2009, 03:43 AM


elastic
Posts: 203

WWW
Hi coroico,
Can you add multi-language support to SearchHighlight plugin(for $termText,$removeText)?

« Last Edit: 11-Aug-2009, 05:36 PM by coroico »

#4: 11-Aug-2009, 04:58 AM


Bredova
Posts: 157

WWW
Dear coroico,
I have problem with search Highlighting in EVO 1.0

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

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

Page results:
Code:
[!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!
« Last Edit: 11-Aug-2009, 05:36 PM by coroico »

#5: 11-Aug-2009, 05:10 AM

Testers

Paprikas
Posts: over9999999
Posts: 601

RA3!

Hi coroico  Grin

Is this replacing can fix the problem?

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

Working for me.
« Last Edit: 11-Aug-2009, 05:36 PM by coroico »
Нашли ошибку в переводе? Вам сюда => Топик по переводу Evolution
Все что идет в поставке с MODx - тоже там.
Ошибки и их исправления для Evolution Что? Ты еще не оставил ошибку?
Are you one of the cool guys who translate MODx? Let me know in this thread.

#6: 11-Aug-2009, 05:25 AM


Bredova
Posts: 157

WWW
Hi coroico  Grin

Is this replacing can fix the problem?

Code:
   $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

* plugin.searchHighlight.tpl (5.49 KB - downloaded 60 times.)
« Last Edit: 11-Aug-2009, 05:36 PM by coroico »

#7: 11-Aug-2009, 05:28 AM

AKots
Posts: 1,594

WWW
This is my file
Not file replace, but plugin in admin mode.
« Last Edit: 11-Aug-2009, 05:35 PM by coroico »
Создание сайтов на MODx, поддержка сайтов, поисковая оптимизация, программирование, копирайтинг
Новичкам о некоторых особенностях MODx
Статьи о MODx, регулярно новые публикации

#8: 11-Aug-2009, 05:45 AM

Moderator

coroico
Posts: 1,419

WWW
@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
Quote
   $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 id="type-b"> 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.
« Last Edit: 11-Aug-2009, 05:35 PM by coroico »
              AjaxSearch 1.9.0                                                          AnythingRating 1.0                                       ModxLinks repository                      
Download       Documentation                                                   Download            Documentation                                  
Demo site       Bugs & Features     Support                                Demo site            Support                                  CssSwitcher   Support     Download

#9: 11-Aug-2009, 06:09 AM


Bredova
Posts: 157

WWW
Sorry, I not there corrected, the error has disappeared.
« Last Edit: 11-Aug-2009, 05:35 PM by coroico »

#10: 11-Aug-2009, 06:48 AM

Testers

Paprikas
Posts: over9999999
Posts: 601

RA3!

Ok. The first fix not work for me because I get error on pages that have Jot call.
« Last Edit: 11-Aug-2009, 05:35 PM by coroico »
Нашли ошибку в переводе? Вам сюда => Топик по переводу Evolution
Все что идет в поставке с MODx - тоже там.
Ошибки и их исправления для Evolution Что? Ты еще не оставил ошибку?
Are you one of the cool guys who translate MODx? Let me know in this thread.
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.