2 of 2
2
Plugin: Excerpt
Posted: 29 October 2007 12:59 PM   [ Ignore ]   [ # 19 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  717
Joined  07-02-2007

Wow this plugin is sexy, i will sure try this out. Thanks for making it.

 Signature 

Truly ExpressionEngine


Fielder Module ( Mass Custom Fields )
Super Cache (Cache heavy tag output)
reCAPTCHA Extension
Rewrite Module


See all my EE Addons (8)

Profile
 
 
Posted: 09 May 2008 05:27 PM   [ Ignore ]   [ # 20 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  10-10-2002

This seems to only be working correctly with single word searches. If I try doing a search with multiple words, even if I choose exact phrase, I get oodles of unrelated chunks. Is that because the plugin doesn’t realize I want the exact phrase so it’s just putting chunks that contain any of the words? I can’t very well depend on my users to only search for a single word.

Also, when I do search for a single word, some of the results come back displaying no chunks, whereas some are just fine.

Profile
 
 
Posted: 11 May 2008 03:58 AM   [ Ignore ]   [ # 21 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1097
Joined  03-22-2006

Hi Fitzage,

The plugin is only set up to search for single words, so supplying a multiple word search will highlight whether exact phrase or not. The reason is because there is no way to tell what type of search was made. Because EE will return only relevant search results though it seemed reasonable for this behaviour.

As for no matches that could be because the search has found your search term in a custom field that isn’t between the plugin tags?

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 15 May 2008 12:53 PM   [ Ignore ]   [ # 22 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  10-10-2002

Well, the no results thing is weird because I checked the articles in question and they had oodles of results.

As far as the rest goes, I can’t really use the plugin if it’s going to search individually for every word in a phrase, because you can’t prevent people from typing phrases that include very small and common words.

Profile
 
 
Posted: 22 May 2008 08:26 AM   [ Ignore ]   [ # 23 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1570
Joined  08-02-2006
Daniel Walton - 11 May 2008 03:58 AM

Hi Fitzage,

The plugin is only set up to search for single words, so supplying a multiple word search will highlight whether exact phrase or not. The reason is because there is no way to tell what type of search was made. Because EE will return only relevant search results though it seemed reasonable for this behaviour.

As for no matches that could be because the search has found your search term in a custom field that isn’t between the plugin tags?

Hi Daniel,

I was going to ask the same question that fitzage asked. When searching for a single word, the plugin works great. When searching for a phrase with multiple words, I still get relevant results but nothing is highlighted in the search results. I would expect that the whole phrase would be highlighted (if it matches of course) or if nothing else, any word matching any of those in the search query would be highlighted?

In your response above you said:

so supplying a multiple word search will highlight whether exact phrase or not

Am I understanding that correctly in that a multiple word search should still highlight the exact phrase (if found) or single words from the search?

 Signature 

Deron Sizemore
==========
Random Jabber | Sizcons | NiceStylesheet | Kentucky Golfing | LogoGala
Twitter: Deron Sizemore | LogoGala

Profile
 
 
Posted: 19 August 2008 03:04 PM   [ Ignore ]   [ # 24 ]  
Summer Student
Total Posts:  12
Joined  07-11-2008

Really great plug in, having problems with the following tag:

{exp:zm_excerpt chunk_wrap="none" pre_chars="5" post_chars="5" chunk_prepend="..." chunks="1"}


Gives me “Notice: Array to string conversion in /usr/local/pem/vhosts/103582/webspace/httpdocs/tru-vue_system/plugins/pi.zm_excerpt.php on line 281 Notice: Array to string conversion in /usr/local/pem/vhosts/103582/webspace/httpdocs/tru-vue_system/plugins/pi.zm_excerpt.php on line 289” for each search result…

Removing the pre and post chars fixes the error, (I tried numbers besides 5, including 50 and 100)

Also, still get a span tag despite the “none” even when using

{exp:zm_excerpt chunk_wrap="none" chunks="1"}

though it causes no problems so I don’t really worry about it…

Thanks for your time…

Profile
 
 
   
2 of 2
2
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 65026 Total Logged-in Users: 40
Total Topics: 82115 Total Anonymous Users: 20
Total Replies: 441304 Total Guests: 195
Total Posts: 523419    
Members ( View Memberlist )
Newest Members:  meenoiYang.JianuoioitsukiNathan HammondalexcigadamstaneckiLucas Mayscybermilltstitt