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
Recomanded 5 uploads
Controls ·  Search New posts · Mark unread

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

2023-11-04 19:09:22
Good morning

I was asking if there was already a code in the cleanup file for as soon as, there were 10 downloads on the same torrent which became a recommended torrent
https://torrenttrader.uk/post/9755

Thanks in advance
2023-11-05 08:31:02
@spiritblue

In functions.php before  if ($row["freeleech"] == yes)

add that

if ($row["times_completed"] >= 10)
$dispname .= " <span style=\"float:right !important;\"><img src=\"./images/recommended.png\" width=\"32\" height=\"32\" style=\"margin-top:-8px !important;\" title=\"Recommended\" alt=\"Recommended\"></span>";


make some Recommended.png file and put in on images folder



www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2023-11-05 17:50:17
thank you very much 👍  

it doesn't work if it has more than 8?

#if ($row["recommended"] == 'yes')
if ($row["times_completed"] >= 8)
                   $dispname .= " <img src='images/Torrents/recommended.png' bored='0' alt='Recommended' title='Notre Coup Coeur !'/></center>";

Note: don't forget to delete >> if ($row["recommended"] == 'yes')  ,or to write
Last edited by spiritblue on 2023-11-05 17:59:13
2023-11-05 18:08:10
Solution change :
if ($row["recommended"] == 'yes')

For:
if ($row["recommended"] == 'yes' && $row["times_completed"] <= 7)

Last edited by spiritblue on 2023-11-05 18:08:25
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728