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
Short Description
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-06-15 19:42:05


MYSQL

ALTER TABLE `torrents` ADD `description` varchar(120) NOT NULL default '';





Now open torrents-upload.php



Search for





print ("<TR><TD align=right>" . TNAME . ": </td><td align=right><input type=text name=name size=60 value=" . $_POST['name'] . ">....................





add after





print ("<TR><TD align=right>Small Description: </td><td align=right><input type=text name=description size=60 value=" . $_POST['description'] . "></td></tr>");







Search for





$langid = (0 + $_POST["lang"]);





add after





$smalldescr = $_POST["description"];







now search for





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





And insert





description,





after



descr,





and now in the same query search for





 ".sqlesc($descr).",





and after that add this





".sqlesc($smalldescr).",







go to backent/functions.php



search for





$dispname = "<b>".$smallname."</b>";





add after





$descrs = $row["description"];





search for



<a title=\"".$row["name"]."\" href=\"torrents-details.php?id=$id&amp;hit=1\">$dispname</a>





replace with



<a title=\"".$row["name"]."\" href=\"torrents-details.php?id=$id&amp;hit=1\">$dispname</a><br>$$descrs





open index.php



search for



$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo,  torrents.seeders, torrents.name

.................





add  after torrents.name





torrents.description,







open torrents.php



search for





$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name,..........







add  after torrents.name





torrents.description,
Unknown User
2009-06-20 15:53:40
looks nice thanks
Unknown User
2009-06-20 19:39:10
there is an extra $ in

<a title=\"".$row["name"]."\" href=\"torrents-details.php?id=$id&amp;hit=1\">$dispname</a><br>$$descrs





the extra $ is in this part $$descrs and also you may want to format the comment with the format_comment function so nobody can inject.



also this part





$smalldescr = $_POST["description"];





probably should be





$smalldescr = unesc($_POST["description"]);
Unknown User
2009-06-21 15:18:07
i was gonna put that about

$smalldescr = unesc($_POST["description"]);

but then i saw sqlesc in the query but it makes it even safer
Unknown User
2009-06-27 16:57:26
I added all that , but is  nothing like you said :)
Unknown User
2009-06-28 16:04:37
i test it again and it work 100% without any problem
Unknown User
2009-06-28 18:56:53
i test me 2 and it work 100% without any problems thanks for this
Unknown User
2010-03-25 23:27:03
Sorry for lifting old topic up again.

Could this be done so you can change afterwards in torrents-edit and add this info.
Unknown User
2010-04-02 18:15:56
can you add code for torrents-edit.php pls
Unknown User
2010-04-05 01:46:49
Now open torrents-edit.php

Search for

$updateset[] = "name = " . sqlesc($name);
add after


$updateset[] = "description = " . sqlesc($description);





Search for



echo "<tr><td align=right width=60><B>Name: </b></TD><TD><input type=\"text\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" size=\"60\" /></TD></TR>";





add after



echo "<tr><td align=right width=60><B>Description: </b></TD><TD><input type=\"text\" name=\"description\" value=\"" . htmlspecialchars($row["description"]) . "\" size=\"60\" /></TD></TR>";



work 100%
Unknown User
2010-04-05 07:18:02
Thank you very much ki2ki <_<
Unknown User
2010-04-13 19:48:09
work on TTv2.6 thanks
Unknown User
2010-07-29 11:08:13
TT.v.2.06 works fine.Thanks
2010-10-18 02:38:28
Coollll!... thanks mr_mami !  :D

Add to Query torrents-search.php + torrents-today.php and "torrents"  :

Quote:
torrents.description,



Replaced:  $descr for $descrs

~~~~~~~~~~~~~~~~~~~~~//

Changer:  $descr pour $descrs

v2.06
Unknown User
2010-10-18 17:57:56
works great on 2.5
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728