Hello gang !
I have come to share with you an update that works very well and will allow you to search and find the word in all the length of the title of the torrent which owns the title to search.
<~~~~French~~~~>
Je viens vous partager une mise a jours qui fonctionne très bien et vous permettras de chercher et de trouver le mot dans tous la longueur du titre du torrent qui possédant le titre rechercher.
in torrents-search you find this line:
Replace for:
*Thanks to my team crazy ! :angel
I have come to share with you an update that works very well and will allow you to search and find the word in all the length of the title of the torrent which owns the title to search.
<~~~~French~~~~>
Je viens vous partager une mise a jours qui fonctionne très bien et vous permettras de chercher et de trouver le mot dans tous la longueur du titre du torrent qui possédant le titre rechercher.
in torrents-search you find this line:
foreach ($searcha as $searchss) {
if (strlen($searchss) <= 1)
continue;
$sc++;
if ($sc > 5)
break;
$ssa = array();
foreach (array("torrents.name") as $sss)
$ssa[] = "$sss LIKE '%" . sqlwildcardesc($searchss) . "%'";
$wherea[] = "(" . implode(" OR ", $ssa) . ")";
}
Replace for:
foreach ($searcha as $searchss) {
if (strlen($searchss) <= 1)
continue;
$sc++;
if ($sc > 5)
break;
$ssa = array();
foreach (array("torrents.name") as $sss)
$ssa[] = "LOWER($sss) LIKE '%" . sqlwildcardesc(strtolower($searchss)) . "%'"; // update by raidewine 2021-08-30
$wherea[] = "(" . implode(" OR ", $ssa) . ")";
}*Thanks to my team crazy ! :angel
Last edited by spiritblue on 2021-09-13 21:08:04
