Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 30th October 2012, 10:51
xxx2008 xxx2008 is offline
Senior Member
 
Join Date: Jul 2009
P2P
Posts: 33
Default Similar torrent by name
Please help for tbdev 2009 with this mode http://www.bvlist.com/mods/6034-simi...ents-name.html

thanks
Reply With Quote
  #2  
Old 26th February 2013, 17:14
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
You can try this:

Put this code in details.php where do you want to show it:

PHP Code:
 ////////////// Similar Torrents/////////////////////
 
 
$s2 substr($s09);
 
$r mysql_query("SELECT id, name, size, seeders, leechers, category FROM torrents WHERE name LIKE '$s2%' AND name !='$s' AND seeders !='0' ORDER BY name") or sqlerr();
 if (
mysql_num_rows($r) > 0)
 {
 
$torrents "<table width=100% class=main border=1 cellspacing=0 cellpadding=5>\n" .
 
"<tr><td class=tabletorrent>Name</td><td class=tabletorrent align=center>Größe</td><td class=tabletorrent align=center><img src=pic/up.png border=0></td><td class=tabletorrent align=center><img src=pic/down.png border=0></td></tr>\n";
 while (
$a mysql_fetch_assoc($r))
 {
 
$name $a["name"];
 
$smallname3 =substr(htmlspecialchars($a["name"]) , 0100);
 if (
$smallname3 != htmlspecialchars($a["name"])) {
 
$smallname3 .= '...';
 }
 
#$smallname3 = htmlspecialchars($a["name"]);
 
$torrents .= "<tr class=highlight><td><a href=details.php?id=" $a["id"] . "&hit=1>$smallname3</a></td><td style='padding: 1px' align=center>"mksize($a[size]) ."</td><td style='padding: 1px' align=center>$a[seeders]</td><td style='padding: 1px' align=center>$a[leechers]</td></tr>\n";
 }
 
$torrents .= "</table>";
 
 print(
"<tr class=\"row2\" align=center><td class=row2>similar<br>Files</td><td align=left>$torrents</td></tr>\n");
 }
 
///////////////////////////////////////////////////////// 
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
Reply

Tags
similar , torrent

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 06:43. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.