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
IMDb mod (using OMDb for data)
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2023-01-15 18:34:31
Hello everyone, anyone have any idea?

thank you
2023-01-16 12:44:29
hello, I would be interested too  ðŸ˜Š
2023-01-16 13:58:54
I was working on something, but it needs some work. Was going to see if anyone else here can refine this, since it seems a bit convoluted. I'll post once something is fully working
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)
2023-01-16 15:33:30
ok thank you for your answer because I tried to set up gollum tmdb mod on 2.08 to have tmdb in french my mod does not work on 2.08
2023-01-16 16:46:18
well, try this. I tested it on 1 test torrent as that is the only thing I can do. I inserted multiple URL in the description as well as plain text, and it only accepts the imdb as the URL. torrents-details. Backup files in case. Test and let me know. Consider this "in progress"
//Get any IMDB link from descr and load it into the DB under imdb
$timdb = SQL_Query_exec("SELECT descr FROM torrents WHERE id = $id");
$bang = mysqli_fetch_assoc($timdb);
$bang2 = implode(" ",$bang);
preg_match_all('/\b(https?):\/\/(www).(imdb.com)[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', $bang2, $matches);
$urls = $matches[0];

function array_map_callback($url)
{
return mysqli_real_escape_string($GLOBALS["DBconnector"], $url);
}
array_map('array_map_callback', $urls);
foreach ($urls as $url) {
  SQL_Query_exec("UPDATE `torrents` SET `imdb`= '".$url."' WHERE id = $id");
}

for 2.08
//Get any IMDB link from descr and load it into the DB under imdb
$timdb = SQL_Query_exec("SELECT descr FROM torrents WHERE id = $id");
$bang = mysqli_fetch_assoc($timdb);
$bang2 = implode(" ",$bang);
preg_match_all('/\b(https?):\/\/(www).(imdb.com)[-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i', $bang2, $matches);
$urls = $matches[0];

function array_map_callback($url)
{
return mysql_real_escape_string($url);
}
array_map('array_map_callback', $urls);
foreach ($urls as $url) {
  SQL_Query_exec("UPDATE `torrents` SET `imdb`= '".$url."' WHERE id = $id");
}

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 2023-01-16 16:49:28
2023-01-16 19:47:35
thank you micromonkey, its going to give the description in fr?
2023-01-17 08:18:16
I appologise. I was not understanding the order of these posts and completely missed what you asked about (fr language). I created this code in response to what ExtremelyM asked. I humbly appologise to the french speakers. For some reason I thought you guys were asking for the same thing......my bad. Where is the *facepalm* when you need it. I guess if extremelyM ever sees this post, I didnt do that for nothing lol. TMDB should work for 2.08 tho
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 2023-01-17 20:44:11
2023-01-17 09:57:00
@phoenix and @choupette40

If I remember correctly (although I'm an grumpy old person) it was somewhere in the iMDB config part of the MOD where instead of EN you specify FR as the default language.
I apologize, maybe I misunderstood the question, but I read that somewhere
because I myself use a different version of iMDB mod and there I can change the default language

PS
That part of code can help maybe:

https://github.com/tboothman/imdbphp/


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 2023-01-17 11:05:44
2023-01-18 16:19:43
Bonjour
Une solution alternative a été pour moi d installer le mod https://torrenttrader.uk/post?id=2365&page=2 et de le rendre obligatoire a l'upload !

Puis de modifier ce code

<legend><b><?php echo T_("IMDB_PLOT"); ?></b></legend><?php echo $bdhaut; echo"<br>"; echo $_data->Plot; echo"<br>" ; echo $bdbas;?></fieldset></td></tr>

par celui ci
<legend><b><?php echo T_("IMDB_PLOT"); ?></b></legend><?php echo $bdhaut; echo"<br>"; /*echo $_data->Plot;*/echo htmlspecialchars($descr['description']); echo"<br>" ; echo $bdbas;?></fieldset></td></tr>
2023-01-26 13:55:16
SLy : merci beaucoup et ducoup la description sera en fr ?
2023-01-26 13:58:13
botanicar: thanks for your answer the problem is that I have only 2 php file and there is nothing to change the language
2023-01-26 16:46:39

printf('<legend><b>%s</b></legend>%s<br>%s<br>%s</fieldset></td></tr>', T_('IMDB_PLOT'), $bdhaut, $_data->Plot, $bdbas);


Easier to see whats going on.

Just count your %s to the left to match the variable responsible.
Last edited by STorrents2020 on 2023-01-26 16:48:04
2023-01-28 11:44:42
@choupette40

Quote:
SLy : merci beaucoup et ducoup la description sera en fr ?


oui
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