]> saetta.ns0.it Git - joomla/jmnogosearch/commitdiff
Bugfixes and added 2 new config parameters.
authorAndrea Zagli <azagli@libero.it>
Sat, 19 Dec 2009 15:16:00 +0000 (16:16 +0100)
committerAndrea Zagli <azagli@libero.it>
Sat, 19 Dec 2009 15:16:00 +0000 (16:16 +0100)
com_jmnogosearch/admin/helpers/jmnogosearch.php
com_jmnogosearch/site/views/jmnogosearch/tmpl/default.xml
com_jmnogosearch/site/views/jmnogosearch/tmpl/default_results.php
com_jmnogosearch/site/views/jmnogosearch/view.html.php

index 7507f3d88d0df57396de3680b7abd43042f48968..65ef47a012637353b0fe8fcd41d5c91bbb95c6fc 100644 (file)
@@ -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("\ 3", "", str_replace("\ 2", "", $text));
+
                return JMnoGoSearchHelper::_smartSubstr( strip_tags( $text ), $length, $searchword );
        }
 
index 98f7c5e2ce87e3c952fae893c746724284760e58..d16130dd80e2412ea6415ca7762eb43a0440741b 100644 (file)
@@ -9,6 +9,14 @@
                <name>Search</name>
                <description>STANDARD SEARCH LAYOUT DESC</description>
                <params>
+                       <param name="show_size" type="radio" default="1" label="Show Size" description="TIPIFSETTOSHOWSIZE">
+                               <option value="0">Hide</option>
+                               <option value="1">Show</option>
+                       </param>
+                       <param name="show_mime" type="radio" default="1" label="Show Mime Type" description="TIPIFSETTOSHOWMIME">
+                               <option value="0">Hide</option>
+                               <option value="1">Show</option>
+                       </param>
                        <param name="show_date" type="radio" default="1" label="Show Created Date" description="TIPIFSETTOSHOWDATETIMECREATED">
                                <option value="0">Hide</option>
                                <option value="1">Show</option>
index a0bbf8e8f74e1d7f20dff280c8af77fdbe6bc9ba..dd3eff0ec219e726327ef5c8de770b921ff40c31 100644 (file)
                                                        <a href="<?php echo JRoute::_($result->href); ?>">
                                                <?php endif;
 
-                                               echo $this->escape($result->title);
+                                               echo $this->escape($result->title); ?>
 
-                                               if ( $result->href ) : ?>
                                                        </a>
-                                               <?php endif;
-                                               if ( $result->section ) : ?>
-                                                       <br />
-                                                       <span class="small<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
-                                                               (<?php echo $this->escape($result->section); ?>)
-                                                       </span>
-                                               <?php endif; ?>
                                        <?php endif; ?>
                                </div>
                                <div>
index fa2269dbfc541b7eba53c47749c450f766368cc9..e2771b7fa492a7bf623dfc377776256d44052a74 100644 (file)
@@ -147,6 +147,7 @@ class JMnoGoSearchViewJMnoGoSearch extends JView
                                        $row->text = preg_replace($searchRegex, '<span class="highlight">\0</span>', $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("\ 3", "", str_replace("\ 2", "", $row->title));
                                        $row->created = udm_get_res_field ($results, $i, UDM_FIELD_MODIFIED);
                                        $row->count = udm_get_res_field ($results, $i, UDM_FIELD_ORDER);