|
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..
|