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
subtitles near to the torrent name
Controls ·  Search New posts · Mark unread

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

2021-03-11 17:31:41
Hello guys.
Can anyone help and tell me how I can add a image with subtitles to the near of the torrent name
Like this https://i.ibb.co/PTJcgPv/001.png
Thanks and regards
2021-03-11 18:57:06
are they clickable links or just an image? If its clickable (not sure why that would be the case but....) you can add things to show up after the torrent name by adding things in backend/functions.php in the dispname. In this example, I added an edit button after the torrent name. example below
				if ($CURUSER['edit_torrents'] == 'yes' || $row['owner'] == $CURUSER['id']) {
$edit = '<a href="torrents-edit.php?id=' . $row['id'] . '"><img src="images/editTORRENT.png" border="0" alt="edit torrent" /></a>';
$del = '<a href="torrents-edit.php?action=deleteit&id=' . $row['id'] . '"></a>';
} else {
$edit = '';
}
$dispname = "<b>".$smallname."</b>&nbsp;$edit";

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)
Last edited by MicroMonkey on 2021-03-11 19:07:04
2021-03-11 19:08:06
pic https://ibb.co/ZVW2WP7
Capture.PNG
File missing

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)
Last edited by MicroMonkey on 2021-03-11 19:11:06
2021-03-11 20:49:48
No, no clickable link only image.
Thanks MM i will try

2021-03-11 21:01:14
and to be able to turn it off and on as with sticky checkbox in torrents-edit.php
2021-03-11 21:31:42
@coco
you must make a many changes in functions.php, torrent-upload.php browse.php torrent-edit.php and index.php if you want that hack improved


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-11 21:32:07
1. Creat a new sql table torrentsubs

CREATE TABLE `torrentsubs` (
 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `name` varchar(30) NOT NULL DEFAULT '',
 `image` varchar(255) NOT NULL DEFAULT '',
 `sort_index` int(10) unsigned NOT NULL DEFAULT 0,
 PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;

INSERT INTO `torrentsubs` VALUES (1,'Bulgarian','Bulgaria.png',0),(2,'English','UK.png',1),(3,'Italiano','Italy.png',2),(4,'France','France.png',3),(5,'German','Germany.png',4),(6,'Spain','Espana.png',5),(7,'Russian','Russia.png',6),(8,'Other','Other.png',8);



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