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
next and previous torrent navy with poster
Controls ·  Search New posts · Mark unread

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

2021-03-24 22:25:26
Hi @STorrents2020 and thanks for the reply

this MOD I need is for a 2.08 or 3.0 (do not think it matters much) and it should be used only in torrent-details.php
since I have an old 2.08 that is not "converted" to MySqli I need a regular mysql format

Hope I have described everything you need for it

Thanks in advance my friend


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-03-25 12:39:13
This is HTML version of his torrent-datails and on the bottom of page you can see two posters of next and previous torrent
torrent-datails-spiritblue.html
File missing



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-03-26 01:36:09
So checking out the HTML, what i see in the possible logic here is this:

backward link (current torrent ID -1):
 while(<database_image1>) -
 SQL: (SELECT image1 FROM torrents WHERE id = $row['id'] - 1)

forward link:
 while(<database_image1>)
 SQL: $next = (SELECT image1 FROM torrents WHERE id = $row['id'] + 1)
if ($next): next ID is possible. Display forward link.

Lets see what i can mimic by my eyes. I say this was probably paid for, like freelancer or such. Its a tad bit advanced, not really. Multi-dimensional arrays are best for this type of thing (a loop within a loop relying on the first loops ID).

Check back soon!
2021-03-29 15:32:47
@Botanicar

Do you mean this code?

begin_frame("Navigacija");
$previd = SQL_Query_exec("SELECT id, name,image1 FROM torrents WHERE image1 AND id < $id ORDER BY id DESC LIMIT 1");
$prev = mysql_fetch_row($previd);
$previd = $prev[0];
$prevname = htmlspecialchars($prev[1]);
$image = $prev[2];
$nextid = SQL_Query_exec("SELECT id, name,image1 FROM torrents WHERE image1 AND id > $id ORDER BY id ASC LIMIT 1");
$next = mysql_fetch_row($nextid);
$nextid = $next[0];
$nextname = htmlspecialchars($next[1]);
$image2 = $next[2];
echo "<table border=0 width=100%><tr>";
if ($previd) echo "<td align=center>Nazaj: <a href='torrents-details.php?id=$previd'><img border=0 src=".$site_config['SITEURL']."/uploads/images/".$image." width=50 height=70><BR>$prevname</a></td>";
if ($nextid) echo "<td align=center>Naprej: <a href='torrents-details.php?id=$nextid'><img border=0 src=".$site_config['SITEURL']."/uploads/images/".$image2." width=50 height=70><BR>$nextname</a></td>";
echo "</tr></table>";
end_frame();



Last edited by Bean on 2021-03-29 15:40:53
2021-03-29 18:49:19
Thanks @Bean, that is just I need or request

Oh, kakšno presenečenje, prijatelj, kit velika za to stvar 



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