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
Bump torrent
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mod Requests

2024-02-13 18:18:43
Greetings
Does anyone have an addon or mod for Bump torrent
I use TorrentTrader 2.08

Thank you
2024-02-13 20:48:36
Hi,
just add that somewhere on torren-details.php


//=======|  Bump fix by M-Jay  |=====//

if ($_GET['bump']) {
          //SQL_Query_exec("UPDATE torrents SET added = '" . get_date_time() . "' WHERE id = '".$id."'");
            SQL_Query_exec("UPDATE torrents SET added = '".get_date_time()."' WHERE id = $id ");
          autolink("torrents-details.php?id=$id", T_('We refreshing torrent data!'));
      }

if ($CURUSER["class"] > 5)
print("<form action='torrents-details.php?id=$id&bump=1' method='post'>
<button type='submit' class='button'> Bump torrent today </button>
  </form>");
//=======|  Bump fix by M-Jay  |=====//


Don't forget to enter the correct user class who have permission to bump torrent on this line:

if ($CURUSER["class"] > 5




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
Last edited by Botanicar on 2024-02-13 21:22:54
2024-02-13 21:06:56
Thanks, but it doesn't work
Blank white page
2024-02-13 21:23:37
My post is updated


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
2024-02-13 22:14:48
OK, the button works.
The date changes and it shows it in torrents-today
but it doesn't show it on the front page
2024-02-13 22:25:14
Because the torrenttable on the index page is configured to show torrents by ID not by date....

Change it in functions.php then you have sorting by date and your "bumped" torrents are displayed on the top


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
2024-02-14 18:47:24
It might be more correct to show by ID
rather than by date
For comparison
bum.jpg
bum.jpg
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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728