v9.5: Compound word tags

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2007, 04:05 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
The tag cloud as well as the search has problems with compound words:

I have the tag "group" in my tag cloud an submit a new story with the tag "working group". Pligg creates a tag "working group" and displays the tag "group" bigger. A click on the tag "group" shows the stories with "group" and "working group" tags

Edit: I haven´t changed the separator, it´s still the colon (,)!

Last edited by tbones; 07-04-2007 at 05:30 PM. Reason: Defined tag separator
Reply With Quote
  #2 (permalink)  
Old 07-04-2007, 04:32 PM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 277
i haven't tried this, but does it make a difference if you submit the tag as: "working group" or "working+group"?
Reply With Quote
  #3 (permalink)  
Old 07-04-2007, 05:18 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I canīt persuade my members to use "non-natural" characters like "+". Either I allow compound words or I forbid them. If last they would lose all their motivation to tag the stories.
Reply With Quote
  #4 (permalink)  
Old 07-05-2007, 03:51 PM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 277
Understand tbones, ultimately its about the user experience since we're dealing with user driven content.

I was just curious as to whether it worked or not since there might be a way to hack it so compound words have a "+" automatically added for them upon submission.

Just a thought...
Reply With Quote
  #5 (permalink)  
Old 07-05-2007, 04:31 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I´ve tested it:
"working+group" has the same sideeffects as "working group".
Reply With Quote
  #6 (permalink)  
Old 07-17-2007, 02:13 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
Has this been fixed with revision 1200?
SourceForge.net Repository - [pligg] Revision 1200
Reply With Quote
  #7 (permalink)  
Old 07-17-2007, 06:30 AM
beatniak's Avatar
Pligg Donor
 
Join Date: Apr 2006
Location: NL - 52.100863;5.108356
Posts: 197
Yup, i "fixed" it.

It's actually a quickfix, so not the best solution, but it works.

the tag "hello world" searches for all stories with hello AND world, because $tag_url = "hello+world"

the tag "hello-world" only searches for "hello world", so i replaced the + (plus) in the tags with - (minus). It works, but now you will see those minus signs in the title , breadcrumb and header.

I fixed that in search.php (line 58)
Code:
$search->searchTerm = str_replace("-", " ", $search->searchTerm); // Steef 2k7-07 tag search fix
Haven't committed that part to the SVN, because i guess there is a better solution and we don't want crappy legacy patch code in pligg
Reply With Quote
  #8 (permalink)  
Old 07-17-2007, 06:58 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,042
I would suggest single quotation marks (') to label a search for a compound word.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
pligg tags table performance eben Questions and Comments 0 08-31-2008 07:37 PM
Tags not cloud in Pligg v9.9 bhatiacane Questions and Comments 4 05-03-2008 03:16 AM
How to add del.icio.us tags to your Pligg in a native manner abenamer Questions and Comments 10 06-01-2007 11:21 PM
6.0.1, tags error chencb Questions and Comments 1 03-03-2006 06:01 AM
Folksonomy (Tagging) Yankidank Questions and Comments 7 01-15-2006 02:33 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development