Please help us to develop!
Reply to topic Reply to topic
Page 1 of 1 Tp MOD Forum Index / Hacks Submitted / [Submitted Hack] viewing file list  

How do you rate my Hack
5
0%
 0%  [ 0 ]
4
0%
 0%  [ 0 ]
3
0%
 0%  [ 0 ]
2
0%
 0%  [ 0 ]
1
0%
 0%  [ 0 ]

Total Votes : 0

PostPost subject: [Submitted Hack] viewing file list Posted: 03-18-2008 14:41
nomid



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2007-09-17
Posts: 11
  This my first mod.

That's mod viewing file list.

http://img219.imageshack.us/my.php?image=screenaf6.jpg


This mod show only new torrents file list. Not old where upped before this mod.

------------------------ UPDATE THIS AFTER INSTALL ------------------------
This fix show "View Files" links only new torrents.

attach_mod/displaying_torrent.php
FIND:
Code:

// FILE LIST
$linkki2 = append_sid('viewfiles.php?t='.$attach_id)."\" onclick=\"window.open('".append_sid('viewfiles.php?t='.$attach_id)."', '_viewfiles', 'WIDTH=600,left=200,resizable=no,scrollbars=yes');return false;\" target=\"viewfiles\" onLoad=\"document.viewfiles.focus();";
// FILE LISTA


REPLACE:
Code:

$sqlx = "select filename from ".TORRENT_FILES_TABLE." where torrent = $attach_id ";
  if ( !($resultx = $db->sql_query($sqlx)) ) {
        message_die(GENERAL_ERROR, 'Could not obtain current torrent file information', '', __LINE__, __FILE__, $sqlx);
  }
$rowx = $db->sql_fetchrow($resultx);
$onko_lista = ($rowx['filename']) ;
$files_true = 1;

if ( $onko_lista == "" )
{
   $linkki2 = "";
   $files_true = 0;
}

if ( $files_true == 1 )
{

$linkki2 = append_sid('<br /><br /><a href="viewfiles.php?t='.$attach_id)."\" onclick=\"window.open('".append_sid('viewfiles.php?t='.$attach_id)."', '_viewfiles', 'WIDTH=600,left=200,scrollbars=yes,buttons=no,toolbar=no,location=no,menubar=no,resizable=no,directories=no,fullscreen=no,dependent=no');return false;\" target=\"viewfiles\" onLoad=\"document.viewfiles.focus();" .'" class="genmed"><B>View Files</B></a>';

}


templates/subSilver/viewtopic_attach_body.tpl
FIND:
Code:
        <!-- // FILE LIST -->
        <br /><br /><a href="{FILELIST_LINK}" class="genmed"><B>View Files</B></a></td>

Replace with
Code:
        <!-- // FILE LIST -->
        <br /><br />{FILELIST_LINK}</td>
------------------------ UPDATE END ------------------------


screenaf6.jpg
Click here to view larger

FileList_mod.rar
 Description:  
Download
 Filename:  FileList_mod.rar
 Filesize:  6.26 KB
 Downloaded:  184 Time(s)



Last edited by nomid on 05-23-2008 10:10; edited 1 time in total
  Reply with quote
View user's profile Send private message
PostPost subject: Please Click to support this site Posted: 03-18-2008 14:41
Google

AdSense






 


 
PostPost subject: Posted: 03-28-2008 16:08
audioaddictz



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2006-09-11
Posts: 32
  tip top , this looks mint

thanks m8 im gonna install it on my local test server right away Smile


_________________
Reality, It might look the same but it dont taste the same
______________________________
Like psy trance , listen online
http://radio.audioaddictz.co.uk
  Reply with quote
View user's profile Send private message Visit poster's website
PostPost subject: Posted: 05-04-2008 04:36
dron



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2008-05-04
Posts: 1
  Forgive for my English!
Mod not work!

At registration torrents writes - This is not a bencoded file!

And pure file list


What to do?

  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 05-07-2008 22:11
Quake

Site Admin
Site Admin

UL: 4 MB
DL: 2 KB
Ratio: 2277.13
Joined: 2006-01-16
Posts: 486
  I've tested this mod and it does work to get the files. But, however it does not capture the size of the files. If I correct this mod I will post the findings. If someone has already figured how to fix that part of it. Please post the findings.

Great Mod. Much needed.

Thanks.

Cleaned up;
viewfiles_body.tpl
REPLACE ALL
Code:

<table width="100%" border="0" cellpadding="2" cellspacing="1" class="btTbl" align="center">
  <tr class="row3">
    <td colspan="3" class="gen" align="center" style="padding: 3px"><b>&nbsp;{TOR_NAME}&nbsp;&nbsp;&nbsp;{LATAUS_LINKKI}<b>Download</b></b></td>
  </tr>
  <!-- BEGIN grouprow -->
  <tr class="row1">
    <td class="genmed" width="80%">&nbsp;{grouprow.FILE_NAME}&nbsp;</td>
    <td class="genmed" align="center">&nbsp;{grouprow.FILE_SIZE}</span></td>
  </tr>
  <!-- END grouprow -->
  <tr class="row3">
    <td colspan="3" class="gen" align="center" style="padding: 3px"></td>
  </tr>
</table>


To edit the size of the popup
#
#-----[ OPEN ]---------------------------------------------
#
attach_mod/displaying_torrent.php
FROM
Code:

// FILE LIST
$linkki2 = append_sid('viewfiles.php?t='.$attach_id)."\" onclick=\"window.open('".append_sid('viewfiles.php?t='.$attach_id)."', '_viewfiles', 'WIDTH=600,left=200,resizable=no,scrollbars=yes');return false;\" target=\"viewfiles\" onLoad=\"document.viewfiles.focus();";
// FILE LISTA
$template->assign_vars(array('FILELIST_LINK' => $linkki2));

TO
Code:
// FILE LIST
$linkki2 = append_sid('viewfiles.php?t='.$attach_id)."\" onclick=\"window.open('".append_sid('viewfiles.php?t='.$attach_id)."', '_viewfiles', 'WIDTH=600,HEIGHT=300,left=200,resizable=no,scrollbars=yes');return false;\" target=\"viewfiles\" onLoad=\"document.viewfiles.focus();";
// FILE LISTA
$template->assign_vars(array('FILELIST_LINK' => $linkki2));

Editing the Size WIDTH=600,HEIGHT=300
Good size: WIDTH=400,HEIGHT=200


view_files_01.jpg
Click here to view larger


  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 05-24-2008 03:36
nomid



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2007-09-17
Posts: 11
 
dron wrote:
Forgive for my English!
Mod not work!

At registration torrents writes - This is not a bencoded file!

And pure file list


What to do?


Check temp folder permissions. and owners.
I just test re-install this mod again and works great.
(Tp_MOD_1.0.1_phpBB_2.0.21)

  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 05-24-2008 08:22
Quake

Site Admin
Site Admin

UL: 4 MB
DL: 2 KB
Ratio: 2277.13
Joined: 2006-01-16
Posts: 486
  Are you counting for NO PASSKEY Selection? Or only PASSKEY? Cause on NO PASSKEY selection the SIZE does not work.
Code:
Passkey
enable check for passkey
(you can enable adding passkey to the torrent-files before downloading in forum settings: TorrentPier - Forum Config) ○ Yes   √ No


  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 05-24-2008 08:54
nomid



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2007-09-17
Posts: 11
  This selection is YES.
Good point, i not test other settings.

Just test this, seems work YES or NO

If i send FULL copy of my forum, and some one test it?
if is problem is PHP or mysql etc.

  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 05-24-2008 09:35
Quake

Site Admin
Site Admin

UL: 4 MB
DL: 2 KB
Ratio: 2277.13
Joined: 2006-01-16
Posts: 486
  The testing I've done comes from my other Main forum. And I have it set to no Passkey. Reason I have it to that is to have Guest's Seed it. Tracker

Anyways. Just pointing that out. You know, Before someone say this doesn't work don't use it crap.

  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 08-17-2009 05:47
RuB@N



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2009-08-17
Posts: 12
 
dron wrote:
Forgive for my English!
Mod not work!

At registration torrents writes - This is not a bencoded file!

And pure file list


What to do?


Like I all has made correctly, and an error same!

  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 08-18-2009 10:40
RuB@N



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2009-08-17
Posts: 12
  Help we

  Reply with quote
View user's profile Send private message
PostPost subject: Posted: 09-30-2009 10:51
RuB@N



UL: 0 B
DL: 0 B
Ratio: -
Joined: 2009-08-17
Posts: 12
  ayyyy

  Reply with quote
View user's profile Send private message
Page 1 of 1
Reply to topic Reply to topic
 Tp MOD Forum Index / Hacks Submitted / [Submitted Hack] viewing file list

Jump to: 



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB - 2001, 2002 phpBB Group
All times are GMT - 6 Hours ,
TorrentPier © Meithar - Support Tp MOD ©