Open torrents-details.php and find
Replace with
find
Add after
In english.php
Add
This edit assumes that you are using passkey
to add a link on the index page to your magnets, in config.php add magnet as seen below. Some things seen below will be different than you, just add magnet and ignore the other stuff
in functions.php find
Add below
also find
Add below
Also, the only thing I have in my torrents-details.php is this
BONUS: .psd image to customize your image
Add the image in the folder IMAGES
print ("<table border='0' cellpadding='0' width='100%'><tr><td align='center' valign='middle' width='54'><a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\"><img src=\"".$site_config["SITEURL"]."/images/download_torrent.png\" border=\"0\" alt='' /></a></td>");Replace with
print ("<table border='0' cellpadding='0' width='100%'><tr><td align='center' valign='middle' width='54'><a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\"><img src=\"".$site_config["SITEURL"]."/images/download_torrent.png\" border=\"0\" title=\"Télécharger le torrent !\" /></a></td>");
print ("<td valign='top'><a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\">".T_("DOWNLOAD_TORRENT")."</a> <a href=\"magnet:?xt=urn:btih:" . $row['info_hash'] . "&dn=" . rawurlencode($row['name']) . "&tr=" . $row['announce'] . "\"><img src=\"".$site_config["SITEURL"]."/images/magnetique.png\" width=\"38\" height=\"36\" border=\"0\" title=\"Télécharger le torrent magnétique !\" /></a><br />");find
print ("<td valign='top'><a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\">".T_("DOWNLOAD_TORRENT")."</a><br />");Add after
print ("<a href=\"magnet:?xt=urn:btih:" . $row['info_hash'] . "&dn=" . rawurlencode($row['name']) . "&tr=" . $row['announce'] . "\"><font size=5pt>".T_("MAGNET")."</font></a><br />");In english.php
Add
$LANG["MAGNET"] = "Magnet Torrent";
$LANG["MAGNET2"] = "Magnet";This edit assumes that you are using passkey
to add a link on the index page to your magnets, in config.php add magnet as seen below. Some things seen below will be different than you, just add magnet and ignore the other stuff
$site_config["torrenttable_columns"] = "category,name,dl,magnet,imdb,tube,size,seeders,leechers,health,added";in functions.php find
case 'dl':
print("<td class='ttable_col$x' align='center'><a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\"><img src='" . $site_config['SITEURL'] . "/images/icon_download.png' border='0' width='50' height='50'alt=\"Download .torrent\" /></a></td>");
break;Add below
case 'magnet':
$shit = @mysql_fetch_array(@SQL_Query_exec("SELECT info_hash FROM torrents WHERE id=$id"));
print ("<td class='ttable_col$x' align='center'><a href=\"magnet:?xt=urn:btih:" . $shit["info_hash"] . "&dn=" . rawurlencode($row['name']) . "&tr=" . $row['announce'] . "?passkey=". $CURUSER ['passkey']. "\"><img src='" . $site_config['SITEURL'] . "/images/magnetique.png' border='0' width='50' height='50'title='Download via Magnet' /></a></td>");
break; also find
case 'dl':
echo "<th>".T_("DL")."</th>";
break;Add below
case 'magnet':
echo "<th>".T_("MAGNET2")."</th>";
break;Also, the only thing I have in my torrents-details.php is this
print ("<a href=\"magnet:?xt=urn:btih:" . $row['info_hash'] . "&dn=" . rawurlencode($row['name']) . "&tr=" . $row['announce'] . "?passkey=". $CURUSER ['passkey']. "\">".T_("MAGNET")."</a><br>");BONUS: .psd image to customize your image
Add the image in the folder IMAGES

