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
exclude some parts
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / General / General Chat

2021-06-10 10:36:32
Hi gang, hope are you well today everyone of you.

Have some wondering about torrent description and how to exclude some parts in torrent description of that.

For exemple if we have tags like [img] [url] or similar
that is about 8k-10k torrents how have them in description and that should make filter out on some way


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-06-10 16:04:24
If you mean
Keep all current description the same and stop bbcode/smilies in new description

Then in torrents-upload and torrents-edit you could remove  this function
textbbcode()
;

and just use textarea
torrents-upload

print("<textarea name="descr" rows="10" cols="50"></textarea>");


torrent-edit

print("<textarea name="descr" rows="20" cols="50">".htmlspecialchars($row["descr"])."</textarea>");


if you still want similes we need new bbcode function, textarea is just a quick fix
user can still enter [img] but the buttons would be removed

Last edited by M-jay warn on 2021-06-10 16:33:04
2021-06-10 18:18:59
Hi M-Jay and thanks for your reply

the intention was not to delete bbcode but to "disable" already implemented codes in the form of images and links in torrent-datails.php for example:

The description of a movie or TV series begins with some text that at the end has some screenshots that show what it looks like, and of end we have 3-5 images links
[img] http : // image-link.com / my-images / image1.jpg [/ img]
[img] http : // image-link.com / my-images / image2.jpg [/ img]
[img] http : // image-link.com / my-images / image3.jpg [/ img]
[img] http : // image-link.com / my-images / image4.jpg [/ img]

I want to exclude those pictures or links



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 2021-06-10 18:31:25
2021-06-11 02:36:46
This will do what you need. It will filter those tags and return the rest of the description.

echo preg_replace('/\[img\](.+?)\[\/img\]/', '', $row['descr']);
Last edited by STorrents2020 on 2021-06-11 02:43:53
2021-06-11 07:57:59
@STorrents2020




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 2021-06-11 08:02:34
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