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
download direct
Controls ·  Search New posts · Mark unread

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

2023-03-07 17:42:44
Bonjour je recherche la modification a éffectué  pour ajouter un lien à coté de download torrent  en download direct comme uptobox ou autre dans torrent détail du torrent, merci pour votre aide.

exemple ci-dessous

Download torrent         download ddl




Hello I'm looking for the modification to add a link next to download torrent in direct download like uptobox or other in torrent detail, thank you for your help.

example below


Download torrent         download ddl

Last edited by niki on 2023-03-07 17:42:58
2023-03-07 19:44:59
Hi niki,

1. You must make some database addition in torrents data
(ALTER TABLE torrents ADD `ddl` varchar(45) NOT NULL DEFAULT ''; )

2. In torrent-upload.php you must add some changes:

Find: if (!$imdb)

after add:

$ddl = $_POST["ddl"];
if (!$ddl)
$message = "<div class='torrwarn'><center>".T_("UPLOAD_NO_DDL")."</center></div>";


Before:
$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr


Add:

		
//==| check if DDL is a valid URL
if ($_POST['ddl']) { $cover = $_POST['ddl']; }
if(!isValidURL($ddl) && $_POST['ddl'] != "") { show_error_msg(T_("UPLOAD_FAILED"), T_("INVALID_DDL_URL"), 1); }


and


//==| DDL Link
if (!empty($_POST['ddl']))
$poster = unesc($_POST['ddl']);


In line:

$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr


after imdb
add ddl,

and after
".sqlesc($_POST['imdb']).",

add
".sqlesc($ddl).",

Find


print ("<tr><td align='right'>" .T_("IMDB")."</td><td align='left'><input type='text' name='imdb' size='50' value='" . $_POST['imdb'] . "' />&nbsp;<a href='http://www.imdb.com' target='_blank'><img border='0' src='images/imdb_upload.png' width='80' height='80' title='Click here to go to IMDb'></a><br />".T_("IMDB_INFO")."</td></tr>");


After that add:


//==| DDL Link
print ("<tr><td align='left' class='css' valign='top'><div style='margin-top:4px'>".T_("DDL_LINK").":</div></td>
<td align='left' class='css-right' valign='top'><input type='text' name='ddl' size='70' placeholder='".T_("DDL_LINK")."' class='btnHuge2' value='".$_POST['ddl']."' />
</td></tr>");





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
2023-03-07 20:02:52
In torrent-details.php find:


$res = SQL_Query_exec("SELECT torrents.imdb, torrents.anon, torrents.thanks, torrents.video,


after  torrents.image2,
add  torrents.ddl,

Find

/////Begin AES download encryption
print ("<table border='0' cellpadding='0' width='100%'><tr><td align='center' valign='middle' width='54'><a href='/" . $row["id"] . "/" . $download_title . "/'><img src=\"".$site_config["SITEURL"]."/images/download_torrent.png\" border=\"0\" alt='' /></a></td>");
print ("<td valign='top'><a href='/" . $row["id"] . "/" . $download_title . "/'>".T_("DOWNLOAD_TORRENT")."</a><br />");
/////End AES download encryption


add after:

print("<div>  DDL  :  </div><div><a href=".$row["ddl"]." target='blank'> <img src='./images/ddl.png' alt='DDL'> </a></div>\n");


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
2023-03-07 20:49:04
Thank you very much botanicar I make the modifications tomorrow because here it is late   😀
2023-03-07 21:31:38
You need a field on upload form that filters and writes to this field in database. I’ve had this for YouTube url for years. It’s effective
Last edited by STorrents2020 on 2023-03-07 21:32:24
2023-03-08 12:00:49
Hi niki,
here is DDL mode fixed and working

you need to run this part on SQL


ALTER TABLE torrents ADD `ddl` varchar(45) NOT NULL DEFAULT '';






Regards
DDL mode fix.zip
Download



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
2023-03-08 19:05:57
Big  thanks  Botanicar   👍 very good idea
2023-03-08 19:26:53
Good evening and thank you for your help botanicar I just made the changes you gave and everything works properly, ... thank you  😀

and is there a way to hide the logo in the torrent details of the link function in DDL when you don't add a url link in ddl but it is just visible when there is a link in download ???  
Last edited by niki on 2023-03-08 19:34:00
2023-03-08 19:57:47
ello niki Can be done as such and add what you want or put nothing
// === Added DDL
if (!$row["dll"]='no'){
print ("<br />Direct DL:<br /><a href=".$row['ddl']." target='_blank'><img src='https://cdn3.iconfinder.com/data/icons/snowish/extras/internet-download.png' width='54'></a><br />");
}else{
print ("<br />");
}

Last edited by spiritblue on 2023-03-08 20:00:49
2023-03-08 20:45:32
merci spiritblue le logo ddl n'est pas visible quand il n'y a pas de lien uptobox mais quand on ajoute l'url uptobox le logo ddl reste invisible et n'apparait pas ???


thank you spiritblue the ddl logo is not visible when there is no uptobox link but when you add the uptobox url the ddl logo remains invisible and does not appear ???
Last edited by niki on 2023-03-08 20:46:18
2023-03-09 20:23:53
allo niki,  inverse les
et pour lui tu veux rien voir, met toi une image ou un texte
...je vais tester de mon coté, j'ai crue ca fonctionnait

==================

hello niki, reverse them
and for him you don't want to see anything, put an image or a text
...I will test on my side, I thought it worked
Last edited by spiritblue on 2023-03-09 20:39:07
2023-03-09 20:46:52
Bonsoir spiritblue je vais faire les test demain car j'ai du monde a la maison et merci pour ton aide  🙄  👍
2023-03-09 22:55:58
@niki

try this part of code to implement that you need

Quote:

// === Added DDL
if (!empty($row["ddl"])) {
print ("<br />Direct download:<br /><a href='".$row['ddl']."' target='_blank'><img src='https://cdn3.iconfinder.com/data/icons/snowish/extras/internet-download.png' width='54'></a><br />");
}
else
{
print ("<br /> &nbsp;<br />");
}
// === Added DDL










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
2023-03-09 23:16:21
Thank you botanicar you are really too strong it works really well now  😉  👍
2023-03-10 08:45:53
Thank you botanicar   👍
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