View Single Post
  #4  
Old 20th February 2021, 10:36
Elena Elena is offline
Senior Member
 
Join Date: Sep 2010
P2P
Posts: 111
Default
Quote:
Originally Posted by alexdinu05 View Post
Hello guys I also need a script for recommended torrents, to be displayed on the details page, something similar to the one in the picture below thanks
Click the image to open in full size.
Quote:
searches for releases similar in GENRE, through Tags, which must be filled in when registering a release in the torrent table, in the description cell
Code:
////////////////////////////////
if(!empty($row["description"])){$names = str_replace("'", "%", $row["description"]);$exps = ",";$explNames = explode($exps, $names);
$sqlss = sql_query("SELECT name, id, images_sm FROM torrents WHERE description LIKE '".$explNames[0]."%' AND id <>'".$row["id"]."' ORDER BY rand() LIMIT 10");
$num_ps=0;$onos="";while($ts = mysql_fetch_array($sqlss)){if (!empty($onos)) $onos.="";
$onos.="<a href=\"details_".$ts['id']."\">
<img height='80' src=\"torrents/images_smals/".$ts["images_sm"]."\" border=\"0\" alt=\"".$ts['name']."\" title='".$ts['name']."'></a>&nbsp;&nbsp;&nbsp;";
++$num_ps;}
if($num_ps>0){print("<hr><font size=2 color=#999966><u><b>Recommended releases:</b></u></font><br><br>");print($onos);print("<br>");
}}else{print("<hr><br>");}
/////////////////////////////
Do it yourself according to your needs.
Reply With Quote