Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Users Voted (avatar, link)
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2020-11-16 05:01:46
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]

// 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.
usersvoted.png
usersvoted.png
2021-07-14 17:27:48
Thanks you  :thumb

...at home it works like you
$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("<br/><a href=\"account-details.php?id=".$userid."\"><img itemprop=\"image\" class=\"responsive-img\" src=\"".$row['avatar']."\" alt=\"$row[username]\" style=\"border:2px solid #FFF; width: 55px; height: 55px; margin-right: 10px; border-radius: 100%\" border=\"0\" /></a>");
}


Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728