Go Back   Pligg CMS Forum > Pligg Development > Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-04-2007, 03:05 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
v9.5: Compound word tags

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 04:30 PM.. Reason: Defined tag separator
Reply With Quote
  #2 (permalink)  
Old 07-04-2007, 03:32 PM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 292
Thanks: 47
Thanked 10 Times in 9 Posts
i haven't tried this, but does it make a difference if you submit the tag as: "working group" or "working+group"?
__________________
RunStream :: RSS feed creator | RSS Marketing Platform | TagBlast!

...and a Pligg site on deck!
Reply With Quote
  #3 (permalink)  
Old 07-04-2007, 04:18 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
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, 02:51 PM
P1mpPanther's Avatar
Constant Pligger
 
Join Date: Feb 2007
Posts: 292
Thanks: 47
Thanked 10 Times in 9 Posts
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...
__________________
RunStream :: RSS feed creator | RSS Marketing Platform | TagBlast!

...and a Pligg site on deck!
Reply With Quote
  #5 (permalink)  
Old 07-05-2007, 03:31 PM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
I´ve tested it:
"working+group" has the same sideeffects as "working group".
Reply With Quote
  #6 (permalink)  
Old 07-17-2007, 01:13 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
Has this been fixed with revision 1200?
SourceForge.net Repository - [pligg] Revision 1200
Reply With Quote
  #7 (permalink)  
Old 07-17-2007, 05:30 AM
beatniak's Avatar
Pligg Donor
 
Join Date: Apr 2006
Location: NL - 52.100863;5.108356
Posts: 310
Thanks: 14
Thanked 77 Times in 48 Posts
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
__________________
Like my work? Donations are welcome if you would like to support my work!
Finger pliggin' good sites of mine: receptencocktail.nl / numarketing.nl / goboz.com
Reply With Quote
  #8 (permalink)  
Old 07-17-2007, 05:58 AM
Constant Pligger
 
Join Date: Apr 2007
Posts: 1,071
Thanks: 53
Thanked 25 Times in 23 Posts
I would suggest single quotation marks (') to label a search for a compound word.
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Similar Threads
Thread Thread Starter Forum Replies Last Post
pligg tags table performance eben General Help 0 08-31-2008 06:37 PM
Tags not cloud in Pligg v9.9 bhatiacane Bug Report 4 05-03-2008 02:16 AM
tags in rss importer Alexei2014 Bug Report 1 10-15-2007 12:28 PM
Rss importer do not feed Tags Alexei2014 Modification Tutorials 0 10-14-2007 06:06 PM
How to add del.icio.us tags to your Pligg in a native manner abenamer Bug Report 10 06-01-2007 10:21 PM


Search Engine Friendly URLs by vBSEO 3.2.0