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
Auto promote
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2023-01-27 15:44:38
how to add 50 forum post to auto promote

$limit = 250*1024*1024*1024;

$limitdown = 50 * 1024 * 1024 * 1024;

$minratio = 1.1;

$maxdt = sqlesc(get_date_time(gmtime() - 86400*30));

$res = SQL_Query_exec("SELECT id, username FROM users WHERE class = 1 AND uploaded >= $limit AND downloaded >= $limitdown AND uploaded / downloaded >= $minratio AND added < $maxdt ");
2023-01-27 16:36:18
Great work!

Do the forum statistics reflect this? I recommend this value be in a different field that is read separately from the forum, and written separately.

That way, you retain the organic forum statistics while eliminating dead stats, and you still satisfy the conditions.

forums.post_count = 50
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