Search Bug/Tag Bug

Register an Account
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old 04-17-2006, 04:10 PM
Casual Pligger
 
Join Date: Feb 2006
Posts: 82
I can confirm that this solved the problem on my page..

(sneak peak) http://www.dealspy.org
Reply With Quote
  #12 (permalink)  
Old 05-02-2006, 08:51 AM
Constant Pligger
 
Join Date: Apr 2006
Posts: 100
This works even with two character tags. I was disappointed to see it wasn't included in the R63 release. I went ahead and implemented it so I hope this becomes the official fix for this bug.
Reply With Quote
  #13 (permalink)  
Old 05-02-2006, 11:46 PM
Casual Pligger
 
Join Date: Feb 2006
Posts: 82
don't know if this is something you could fix here as well, but tags with the '&' symbol don't work
Reply With Quote
  #14 (permalink)  
Old 05-12-2006, 05:23 PM
New Pligger
 
Join Date: Mar 2006
Posts: 19
Has anyone found a solution to that search bug?
Reply With Quote
  #15 (permalink)  
Old 05-16-2006, 01:04 AM
AshDigg's Avatar
Mayor of PliggVille/Coder
 
Join Date: Dec 2005
Posts: 1,515
Thanks onemc for working on this. There is a small problem. If you're on the "tag cloud" page, and you're looking at tags within the last 30 days, and you click on a tag, it will say on the page "search results for <SEARCHTERM> within the last 30 day(s)" but it will actually show ALL (not just last 30) stories with the word(s) you've searched for. It will also search "discarded" stories (which you may want, but most people won't).

I havn't fully tested this yet.


What I think may work (also not fully tested), is near the top of index.php you'll see "$search = get_search_clause();" The function get_search_clause is in the /libs/utils.php file. Line 129 says this....

$where = " AND MATCH (link_url, link_url_title, link_title, link_content, link_tags) AGAINST ('$words' $mode) ";

but using some of the code above, if you change to...

$where = " AND tag_words='$words' AND link_id=tag_link_id ORDER BY `link_votes` DESC";

You also want to change line 38 of index.php from this.... $from_where = "FROM links WHERE link_status!='discard' ";

to this....

$from_where = "FROM links, tags WHERE link_status!='discard' ";

If you do this, you'll want to undo onemc's changes first.

Again, I havn't fully tested any of this yet...

Last edited by AshDigg; 05-16-2006 at 01:09 AM.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Some ideas to build a Pligg site Divisive Cotton Questions and Comments 22 10-22-2009 11:46 AM
Using Search Method 4 - Tags will not work hotsitez Questions and Comments 11 11-29-2008 08:54 PM
Search Method 3 and 4 in Pligg version 9.8.2 broke Iceburg Questions and Comments 3 11-03-2007 08:03 PM
cannot search 2 fields cruci Questions and Comments 1 11-15-2006 07:17 AM


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