Quote:
How does this work?
Does it do a search on the words used in the subject line?
|
No, it uses a function called similar_text, which calculates the similarity between two strings.
PHP Code:
similar_text($validtitle, $validthread, &$similarity);
Once it finds the similarity, I compare it to the user-defined priority level of similarity between threads.
I tried using another similar function called levenshtein, which is suppose to have better performance (in speed I guess), but it didn't exactly work, or not as well as similar_text does.
At first I did think about putting it through a search, and grabbing the top four or so results, but this is much easier, and only requires one query.
Quote:
that aint in the showthread.php file......do you mean the template? cause i put it in the template and it dosent show anything......
|

why, yes! that is what I mean

*goes to fix*