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
LIMIT STICKY
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Support

Unknown User
2019-12-27 21:19:25
I need to limit Sticky in TORRENS.php

$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.sticky, torrents.recommendedx, torrents.viptorrents, torrents.description, torrents.imdb, torrents.leechers, torrents.nfo, torrents.views, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.torrentlang,  torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat AS cat_parent, categories.image AS cat_pic, users.username, users.privacy,  IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id $where $orderby $limit";


WHERE sticky = 'yes' AND visible='yes' ORDER BY torrents.id DESC LIMIT 10
2019-12-27 23:50:01
Thanks you !
good idea..
2019-12-28 01:25:48
not sure what you are talking about
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2019-12-28 10:14:23
"MicroMonkey, post: 67710, member: 311":

not sure what you are talking about

in TORRENTS.php i need to limit it to 10 Sticky
Unknown User
2020-02-11 18:19:12
?? any  idea ?
Unknown User
2020-02-11 18:32:31
if ($row["sticky"] == "yes")
                   $dispname .= " <img src='images/sticky.png' align=right bored='0' alt='sticky' title='sticky'>";
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