I put this together as a way to extend user voting stats, scores and more across games etc. Maybe useful if vote feature is used - not sure if this was stock in V3 or a mod, but this feeds the users who voted.
[ATTACH type="full" alt="usersvoted.png"]5964[/ATTACH]
Place it somewhere in torrents-details.php
I brought this over for V3 so hopefully it works if you use rating system. Enjoy.
[ATTACH type="full" alt="usersvoted.png"]5964[/ATTACH]
// Users Who Rated
$usersrated = SQL_Query_exec("SELECT u.username, u.avatar, u.id, r.torrent FROM ratings r INNER JOIN users u ON u.id = r.user WHERE r.torrent = $row[id]") or die('Query error');
foreach ($usersrated as $row) {
print("<a title=\"$row[username]\" href=\"/details/$row[id]/\"><img itemprop=\"image\" class=\"responsive-img\" src=\"/$row[avatar]\" alt=\"$row[username]\" style=\"border:2px solid #FFF; width: 75px; height: 75px; margin-right: 10px; border-radius: 100%\" border=\"0\" /></a>");
}
Place it somewhere in torrents-details.php
I brought this over for V3 so hopefully it works if you use rating system. Enjoy.
