From: Andrea Zagli Date: Sat, 19 Dec 2009 15:16:00 +0000 (+0100) Subject: Bugfixes and added 2 new config parameters. X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=1629b490cd830e31283223525151f5db47efaaa3;p=joomla%2Fjmnogosearch Bugfixes and added 2 new config parameters. --- diff --git a/com_jmnogosearch/admin/helpers/jmnogosearch.php b/com_jmnogosearch/admin/helpers/jmnogosearch.php index 7507f3d..65ef47a 100644 --- a/com_jmnogosearch/admin/helpers/jmnogosearch.php +++ b/com_jmnogosearch/admin/helpers/jmnogosearch.php @@ -128,6 +128,8 @@ class JMnoGoSearchHelper // replace line breaking tags with whitespace $text = preg_replace( "'<(br[^/>]*?/|hr[^/>]*?/|/(div|h[1-6]|li|p|td))>'si", ' ', $text ); + $text = str_replace("", "", str_replace("", "", $text)); + return JMnoGoSearchHelper::_smartSubstr( strip_tags( $text ), $length, $searchword ); } diff --git a/com_jmnogosearch/site/views/jmnogosearch/tmpl/default.xml b/com_jmnogosearch/site/views/jmnogosearch/tmpl/default.xml index 98f7c5e..d16130d 100644 --- a/com_jmnogosearch/site/views/jmnogosearch/tmpl/default.xml +++ b/com_jmnogosearch/site/views/jmnogosearch/tmpl/default.xml @@ -9,6 +9,14 @@ Search STANDARD SEARCH LAYOUT DESC + + + + + + + + diff --git a/com_jmnogosearch/site/views/jmnogosearch/tmpl/default_results.php b/com_jmnogosearch/site/views/jmnogosearch/tmpl/default_results.php index a0bbf8e..dd3eff0 100644 --- a/com_jmnogosearch/site/views/jmnogosearch/tmpl/default_results.php +++ b/com_jmnogosearch/site/views/jmnogosearch/tmpl/default_results.php @@ -17,17 +17,9 @@ escape($result->title); + echo $this->escape($result->title); ?> - if ( $result->href ) : ?> - section ) : ?> -
- - (escape($result->section); ?>) - -
diff --git a/com_jmnogosearch/site/views/jmnogosearch/view.html.php b/com_jmnogosearch/site/views/jmnogosearch/view.html.php index fa2269d..e2771b7 100644 --- a/com_jmnogosearch/site/views/jmnogosearch/view.html.php +++ b/com_jmnogosearch/site/views/jmnogosearch/view.html.php @@ -147,6 +147,7 @@ class JMnoGoSearchViewJMnoGoSearch extends JView $row->text = preg_replace($searchRegex, '\0', $row->text ); $row->href = udm_get_res_field ($results, $i, UDM_FIELD_URL); $row->title = udm_get_res_field ($results, $i, UDM_FIELD_TITLE); + $row->title = str_replace("", "", str_replace("", "", $row->title)); $row->created = udm_get_res_field ($results, $i, UDM_FIELD_MODIFIED); $row->count = udm_get_res_field ($results, $i, UDM_FIELD_ORDER);