Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 18th April 2021, 12:48
JohnHasher JohnHasher is offline
Coder
 
Join Date: Apr 2020
P2P
Posts: 62
Post Maget URI function addon
PHP Code:
//magnet links
function magneturi($hash ,$filename $tracker)
{
if(isset(
$hash) && isset($filename) && isset($tracker)){
 
$base "magnet:?xt=urn:btih:".$hash;
 
$base .= "&dn=".urlencode($filename).'"';
 foreach(
$tracker as $trs){
    
$base.="&tr=".urlencode($trs);
  }
 }else{
    
$base "error in magnet construct";
}
      return 
$base;
 } 

add this to functions.php and use it ..


USAGE : magneturi(torrent infohash , filename , trackers in array);

Bump: isset() or use empty()

Bump: Tag:
print("<a href='".magneturi(torrent infohash , filename , trackers in array)."' title=\"Get torrent using magnet\">Magnet URI</a>")

Bump: if you want to count the hits from magnet links use ajax to add the hit or stay soon i will post here soon.

Bump: trackers in array means:


array(trackerurl1,trackerurl2,trackerurl3);
Reply With Quote
  #2  
Old 20th August 2021, 21:31
hon hon is offline
Senior Member
 
Join Date: Oct 2020
P2P
Posts: 66
Default
Thank you very much:)
__________________
TorrentTrader4Ever

If you want help about TorrentTrader send me a PM.
Reply With Quote
  #3  
Old 26th September 2021, 18:20
JohnHasher JohnHasher is offline
Coder
 
Join Date: Apr 2020
P2P
Posts: 62
Default
��
__________________
i do custom mods in xbtitfm and torrenttrader for $$, PM me for details.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 13:19. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.