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 to today
Controls ·  Search New posts · Mark unread

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

2021-11-22 20:57:06
yes i like this idea so i pieced one together

i have this in torrent-details above if ($_GET["hit"]) {
        if ($_GET["bump"]) {
           SQL_Query_exec("UPDATE torrents SET added = '".get_date_time()."' WHERE id='".$id."' ");
           autolink(torrents-details.php?id=$id", T_("Bumped Torrent"));
       }


then somewhere in the html place the form
    <form action='torrents-details.php?id=$id&bump=1' method='post'>
           <button type='submit'  value=''>Bump Torrent</button>
   </form><br>


if you get errors please check urls my version is different but the code is fine  :thumb

then in querys eg index, todays, you might need to edit order to see bump
ORDER BY torrents.added DESC


i did this today so any ideas are welcome
2021-11-25 22:19:34
Thanks buddy, thanks to your source I managed to adapt the code to my type and version (not the same TT version as yours)

Thank you very much, the idea was inspired by TBDEV MOD







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
2021-11-26 05:42:43
Happy to help I put mine on edit torrent, if on details you may want to wrap html so only mods can see

If ($CURUSER > 5) {
 // form
}
2021-11-26 08:06:14
M-jay:
Happy to help I put mine on edit torrent, if on details you may want to wrap html so only mods can seeIf ($CURUSER > 5) {  // form}


I fix that with:

if ($owned)


your is also good too as always

Regards


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
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728