I don't know what to call these, but I call them index tags ( per torrent, per ID). These just pick up the statistics on each torrent in the index, and lets users know right away how each result is doing, or how that result competes with the other results in favour of criteria/ID their after.
I took one look at UNIT3D and wrote it in because it looked nice.
So open backend/functions.php and find
add after
Add this close by same file
How it looks on my end
[ATTACH type="full" alt="NewTorrentIndexFeature.png"]5590[/ATTACH]
This is code is quick and posted as I completed. i’ll improve it. I'll expand on these, and update post. But you can see the general idea.
I took one look at UNIT3D and wrote it in because it looked nice.
So open backend/functions.php and find
$freeleechadd after
<div>$reseed $healthy $popular $fleech $comments</div>Add this close by same file
$state = SQL_Query_exec("SELECT id, seeders, hits, freeleech, comments FROM torrents WHERE id = " .$id);
$check = mysql_fetch_assoc($state);
if ($check["seeders"] <= 2) { // If torrent has 2 seeds or less (poor health)
$reseed = '<span style="pointer-events:none;font-size:13px;background:orange;padding:3px 11px 4px 11px;text-align:center;border-radius:3px;color:#FFF;font-weight:500;text-decoration:none;text-shadow:0 1px 1px rgba(0,0,0,.3)">
Seeders Wanted
</span>';
}else{
$reseed = '';
}
if ($check["seeders"] >= 3) { // If torrent has 3 seeds or more (good health)
$healthy = '<span style="margin-left:5px;pointer-events:none;font-size:13px;background:#ED2324;padding:3px 11px 4px 11px;text-align:center;border-radius:3px;color:#FFF;font-weight:500;text-decoration:none;text-shadow:0 1px 1px rgba(0,0,0,.3)">
Healthy
</span>';
}else{
$healthy = '';
}
if ($check["hits"] >= 20) { // If torrent has 20 downloads or more (good hits)
$popular = '<span style="margin-left:5px;pointer-events:none;font-size:13px;background:purple;padding:3px 11px 4px 11px;text-align:center;border-radius:3px;color:#FFF;font-weight:500;text-decoration:none;text-shadow:0 1px 1px rgba(0,0,0,.3)">
Popular
</span>';
}else{
$popular = '';
}
if ($check["freeleech"] == 1) { // If torrent has 20 downloads or more (good hits)
$fleech = '<span style="margin-left:5px;pointer-events:none;font-size:13px;background:#0079FE;padding:3px 11px 4px 11px;text-align:center;border-radius:3px;color:#FFF;font-weight:500;text-decoration:none;text-shadow:0 1px 1px rgba(0,0,0,.3)">
Freeleech
</span>';
}else{
$fleech = '';
}
if ($check["comments"] >= 4) { // If torrent has 4 comments or more (user attention)
$comments = '<span style="margin-left:5px;pointer-events:none;font-size:13px;background:green;padding:3px 11px 4px 11px;text-align:center;border-radius:3px;color:#FFF;font-weight:500;text-decoration:none;text-shadow:0 1px 1px rgba(0,0,0,.3)">
Social
</span>';
}else{
$comments = '';
}
How it looks on my end
[ATTACH type="full" alt="NewTorrentIndexFeature.png"]5590[/ATTACH]
This is code is quick and posted as I completed. i’ll improve it. I'll expand on these, and update post. But you can see the general idea.