Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Development > Bug Report



Search Bug/Tag Bug

Found or fixed a small bug in Pligg? Post it here so we can update appropriately.


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

(sneak peak) http://www.dealspy.org
  #12 (permalink)  
Old 05-02-2006, 07:51 AM
Constant Pligger
 
Join Date: Apr 2006
Posts: 122
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.
  #13 (permalink)  
Old 05-02-2006, 10:46 PM
Casual Pligger
 
Join Date: Feb 2006
Posts: 94
don't know if this is something you could fix here as well, but tags with the '&' symbol don't work
  #14 (permalink)  
Old 05-12-2006, 04:23 PM
New Pligger
 
Join Date: Mar 2006
Posts: 24
Has anyone found a solution to that search bug?
  #15 (permalink)  
Old 05-16-2006, 12:04 AM
AshDigg's Avatar
Coder
 
Join Date: Dec 2005
Posts: 1,574
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...

- Ash

Last edited by AshDigg; 05-16-2006 at 12:09 AM.
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
First Ever Meta-Community/Social Search Engine lodispoto My Pligg Site 0 12-23-2007 11:03 AM
SEO (Search Engine Optimization) GrinGEO Wiki Articles 24 12-02-2007 12:27 PM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development