Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=87)
-   -   Magnet Link torrent (http://www.bvlist.com/showthread.php?t=11192)

EagleLake 31st July 2017 09:01

Magnet Link torrent
 
1 Attachment(s)
hello this hack enabled you to download the torrent using MAGNET LINKS

go!

http://downloadicons.net/sites/defau...icon-32529.png




Open torrents-details.php and look for:

PHP Code:

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:


PHP Code:

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>&nbsp;<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>"); 



Search for:


PHP Code:

print ("<td valign='top'><a  href="download.php?id=$id&name=" .  rawurlencode($row["filename"]) .  "">".T_("DOWNLOAD_TORRENT")."</a>"); 



Add after:


PHP Code:

print ("<a href="magnet:?xt=urn:btih:" . $row['info_hash'] . "&dn=" .  rawurlencode($row['name']) . "&tr=" . $row['announce'] .  ""><font  size=5pt>".T_("MAGNET")."</font></a>"); 


Fynnon 31st July 2017 09:19

Great. I edited the title of your topic to better reflect what this mod is about :ok:

DND 31st July 2017 09:29

yep looks good :coffee:

spheres 4th January 2021 21:40

If the torrent site is not public you need put the announce + passkey in the magnet url

maglink


All times are GMT +2. The time now is 06:27.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.