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
[HACK] Collapsible NFO in torrent detail
Controls ·  Search New posts · Mark unread

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

Unknown User
2007-11-22 19:29:33
torrents-details.php, find:

echo "<BR><BR><B>NFO:</B><BR>";

begin_table();

print("<tr><td>\n");



print("<textarea style=\"font-size:8pt;width:100%;height:100%;\" wrap=\"off\" rows=20 and cols=20 READONLY>".stripslashes($nfo)."</textarea>");

end_table();





replace with:



echo "<BR><BR><B>NFO:</B><BR>";

begin_table();

print("<tr><td><img src='images/plus.gif' id='pic2' onclick='klappe_torrent(2)'>\n");



print("<div id='k2' style='display: none'><textarea style=\"font-size:8pt;width:100%;height:100%;\" wrap=\"off\" rows=20 and cols=20 READONLY>".stripslashes($nfo)."</textarea></div>");

end_table();
Unknown User
2007-11-22 20:01:34
Thanks, already added this to my own site a while back. Will this be part of 2.03? :)
Unknown User
2007-11-22 20:07:56
maybe... depends how many want it added
Unknown User
2007-11-22 20:19:27
I think making it a config.php option would be pretty cool.. $siteconfig['collapsable'] = 'peerlist, nfo, filelist'; or something? :)
Unknown User
2007-11-28 10:49:42
great work as always TS  :) , how about peers list those can get rather long when there is lot seeds that be a good one to collapse also thanks for your hard work
Unknown User
2007-11-29 23:07:52
"Lenaud01, post: 35745":
great work as always TS  :) , how about peers list those can get rather long when there is lot seeds that be a good one to collapse also thanks for your hard work

I'm not TS (heheheh), but I already did this on my site.

So here's how.

In torrents-details.php

Find:

echo "<BR><BR><B>Peers List:</B><BR>";
Replace with:


echo "<BR><BR><B>Peers List:</B> <img src='images/plus.gif' id='pic1' onclick='klappe_torrent(3)'><div id='k3' style='display: none'> ";



Hope this helps.

-deicide

Edit: to fix the fact that TS's code was already using the id='k2' and to avoid confusion
Unknown User
2008-02-05 11:13:13
"deicide, post: 35840":
I'm not TS (heheheh), but I already did this on my site.
So here's how.

In torrents-details.php

Find:

echo "<BR><BR><B>Peers List:</B><BR>";



Replace with:



echo "<BR><BR><B>Peers List:</B> <img src='images/plus.gif' id='pic1' onclick='klappe_torrent(3)'><div id='k3' style='display: none'> ";





Hope this helps.

-deicide



Edit: to fix the fact that TS's code was already using the id='k2' and to avoid confusion






[size=10px]Hello,

Thank you it works but I find this hidden nfo with peer list also being hidden how to be: 'peerlist, filelist, nfo' hidden but all 3 dissociated?[/size]




Find:



echo "</table>";



Replace with:



echo "</table></div>";
Unknown User
2008-02-05 11:22:38
[No message]
1.png
1.png
Unknown User
2008-02-05 11:37:58
[size=12px]Simply change from File List:[/size]
Unknown User
2008-03-31 03:10:44
One thing I noticed... the plus.gif doesn't change to the minus.gif except for the default "file list" code... anyone know how to fix this for the NFO and Peer List hack?
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