Advertisement:

Author Topic: [WIP mod] Bittorrent Tracker for SMF 2.0RC3  (Read 184083 times)

Offline redlands

  • Newbie
  • *
  • Posts: 5
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #40 on: November 18, 2008, 11:28:06 AM »
Percentage never updates, stays at zero.


Spelling error:
"Transfered" should be "Transferred"
(yes I know, I´m picky ;D.)

Offline HuRRR

  • Semi-Newbie
  • *
  • Posts: 84
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #41 on: November 18, 2008, 11:30:55 AM »
Finally nothing work :(

I have reinstall SMF 2.0 Beta 4, Generan CHMOD 777, but nothing appear when I upload a torrent :(

Offline brixsat

  • Newbie
  • *
  • Posts: 2
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #42 on: November 20, 2008, 12:13:32 PM »
Hi!
Iv created a torrent on utorrent started seeding and uploaded it to the forum, and i get on utorrent Failed: You are not autorized to use this torrent!

How should i do it?

Offline HuRRR

  • Semi-Newbie
  • *
  • Posts: 84
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #43 on: November 25, 2008, 08:43:36 PM »
Any devellopment here :) ?

Offline XMage

  • Newbie
  • *
  • Posts: 1
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #44 on: December 02, 2008, 01:14:42 PM »
sorry,but how can i delete torrent files ?

Hi!
Iv created a torrent on utorrent started seeding and uploaded it to the forum, and i get on utorrent Failed: You are not autorized to use this torrent!

How should i do it?
Did you add permissions for groups? or download as admin?
« Last Edit: December 02, 2008, 01:17:32 PM by XMage »

Offline Succubus Evaligan

  • Jr. Member
  • **
  • Posts: 274
  • Gender: Female
    • Yurilandia
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #45 on: December 16, 2008, 04:35:20 PM »
What happen with this mod?
I hope that some day we can have a mod for 1.1.7... :'(
Yuri Goddess

aishaweb

  • Guest
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #46 on: December 16, 2008, 04:59:11 PM »
What happen with this mod?
I hope that some day we can have a mod for 1.1.7... :'(

Look here:
http://forum.torrentfries.com/index.php?topic=29.0

Offline Succubus Evaligan

  • Jr. Member
  • **
  • Posts: 274
  • Gender: Female
    • Yurilandia
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #47 on: January 06, 2009, 06:37:30 PM »
Yuri Goddess

aishaweb

  • Guest
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #48 on: January 08, 2009, 09:10:07 AM »
Your Welcome.   :D

Offline HR

  • Jr. Member
  • **
  • Posts: 321
  • Gender: Male
  • There is only ONE 'Reality!
    • http://only-harshreality.com/forums/
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #49 on: February 11, 2009, 03:16:08 PM »
Well, I played with the Spam mod about as far as I need.. now on to this one >:)
I can explain this as simply as possible.. If I do it & implement I guarantee it.
 If I do it and you implement it its a crap shoot.

Offline HR

  • Jr. Member
  • **
  • Posts: 321
  • Gender: Male
  • There is only ONE 'Reality!
    • http://only-harshreality.com/forums/
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #50 on: February 11, 2009, 03:53:54 PM »
Yo, Niko! Still working with this or have we hit a brick wall? I ask as I really just noticed it and was getting ready to have at it. Freakin' Tweakin' is kewl ya know!
I can explain this as simply as possible.. If I do it & implement I guarantee it.
 If I do it and you implement it its a crap shoot.

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #51 on: February 11, 2009, 05:05:12 PM »
Still working but priority is on other mods.

Offline HR

  • Jr. Member
  • **
  • Posts: 321
  • Gender: Male
  • There is only ONE 'Reality!
    • http://only-harshreality.com/forums/
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #52 on: February 11, 2009, 07:15:52 PM »
OK, can you box up what you have currently? I ask as I dont know how much you have changed since the last posting
I can explain this as simply as possible.. If I do it & implement I guarantee it.
 If I do it and you implement it its a crap shoot.

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #53 on: February 12, 2009, 01:20:32 AM »
Only bug fixes and updated to support 2.0 RC1

Offline mirahalo

  • SMF Hero
  • ******
  • Posts: 7,687
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #54 on: February 16, 2009, 12:48:13 PM »
Only bug fixes and updated to support 2.0 RC1

thanks for the update to 2.0 RC1 :)

Offline makabrios

  • Newbie
  • *
  • Posts: 6
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #55 on: March 12, 2009, 07:50:52 AM »
Hello, this is my first post in this forum. Firstly I would like to thank the creator of this mod, and wish for an updated version with more features soon.

I haven't seen anything like that in the following photo exist in the mod

hxxp:img13.imageshack.us/my.php?image=trnts.png [nonactive]

so I decided to create one of my own (of course I am not a PHP expert, so I just copied things from here and there and hope they work fine). All testing has been done on SMF 2.0 RC1 using the 1.08 version of the mod

So here it goes :

In the file Themes/Default/Tracker.template.php make the following :

1) Add the "$settings" to the global definition in Function "template_torrent_list()" so it is :

Code: [Select]
function template_torrent_list()
{
global $scripturl, $txt, $context, $settings;

2) Replace :

Code: [Select]
if (!empty($context['torrents']))
{
print_r($context['torrents']);
}
// There are no games installed / found.
else
{
echo '
<tr>
<td class="catbg3"><b>', $txt['tracker_no_torrents'], '</b></td>
</tr>';
}

With :

Code: [Select]
if (!empty($context['torrents']))
{
echo '
<thead>
<tr>
<th width="40px" class="catbg3 headerpadding">', $txt['tracker_dl'] ,'</th>
<th class="catbg3 headerpadding">   <a href="', $scripturl, '?action=tracker;sort=name', $context['sort_by'] == 'name' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['tracker_t_name'], $context['sort_by'] == 'name' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th class="catbg3 headerpadding" width="100px" align="center"><a href="', $scripturl, '?action=tracker;sort=size', $context['sort_by'] == 'size' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['torrent_size'], $context['sort_by'] == 'size' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="a" />' : '', '</a></th>
<th class="catbg3 headerpadding" width="100px" align="center"><a href="', $scripturl, '?action=tracker;sort=date', $context['sort_by'] == 'date' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['tracker_added'], $context['sort_by'] == 'date' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th class="catbg3 headerpadding" width="25px" align="center"> <a href="', $scripturl, '?action=tracker;sort=seed', $context['sort_by'] == 'seed' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['tracker_s'], $context['sort_by'] == 'seed' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th class="catbg3 headerpadding" width="25px" align="center"> <a href="', $scripturl, '?action=tracker;sort=leec', $context['sort_by'] == 'leec' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['tracker_l'], $context['sort_by'] == 'leec' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
<th class="catbg3 headerpadding" width="25px" align="center"> <a href="', $scripturl, '?action=tracker;sort=comp', $context['sort_by'] == 'comp' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['tracker_c'], $context['sort_by'] == 'comp' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>
</tr>
</thead>
<tbody>';

foreach ($context['torrents'] as $tor)
{
echo '
<tr>
<td class="windowbg2" align="center"> <img src="..." width="35" height="35" /> </td>
<td class="windowbg2">'. $tor['link'] .'</td>
<td class="windowbg2" align="center">'. $tor['size'] .'</td>
<td class="windowbg2" align="center">'. $tor['date_added'] .'</td>
<td class="windowbg2" align="center">'. $tor['num_seeders'] .'</td>
<td class="windowbg2" align="center">'. $tor['num_leechers'] .'</td>
<td class="windowbg2" align="center">'. $tor['downloads'] .'</td>
</tr>';
}

echo '
</tbody>';

//print_r($context['torrents']);
}
// There are no games installed / found.
else
{
echo '
<tr>
<td class="catbg3"><b>', $txt['tracker_no_torrents'], '</b></td>
</tr>';
}

And save the file.

Now let's modify the "sources" file, Sources/Tracker.php

1)  In the function "TrackerList" do the following :

Add after "$context['torrents_per_page'] = 25;" (or any other number you may have used)
Code: [Select]
// Make sure the starting place makes sense and construct the page index.
if (isset($_REQUEST['sort']))
{
$context['page_index'] = constructPageIndex($scripturl . '?action=tracker' . ';sort=' . $_REQUEST['sort'] . (isset($_REQUEST['desc']) ? ';desc' : ''), $_REQUEST['start'], $countTorrents, $context['torrents_per_page']);
}
else
{
$context['page_index'] = constructPageIndex($scripturl . '?action=tracker', $_REQUEST['start'], $countTorrents, $context['torrents_per_page']);
}

// Default sort methods.
$sort_methods = array(
'trid' => 't.id_torrent',
'name' => 't.name',
'size' => 't.filesize',
'date' => 't.added',
'seed' => 't.seeders',
'leec' => 't.leechers',
'comp' => 't.downloads',
);

// They didn't pick one, default to by last post descending.
if (!isset($_REQUEST['sort']) || !isset($sort_methods[$_REQUEST['sort']]))
{
$context['sort_by'] = 'trid';
$_REQUEST['sort'] = 't.id_torrent';
$ascending = isset($_REQUEST['asc']);
}
// Otherwise default to ascending.
else
{
$context['sort_by'] = $_REQUEST['sort'];
$_REQUEST['sort'] = $sort_methods[$_REQUEST['sort']];
$ascending = !isset($_REQUEST['desc']);
}

$context['sort_direction'] = $ascending ? 'up' : 'down';

All the above were copied from the MessageIndex.php file. The comments have not been deleted.

2) Replace :
Code: [Select]
$request = $smcFunc['db_query']('', '
SELECT
t.id_torrent, t.id_category, t.name, t.torrentname, t.torrentfile, t.filesize,
t.member_name, t.id_member, t.added, t.last_action, t.seeders, t.leechers, t.transfer,
t.is_disabled, t.downloads, c.cat_name
FROM {db_prefix}tracker_torrents AS t
LEFT JOIN {db_prefix}tracker_category AS c ON (c.id_category = t.id_category)
LIMIT {int:start},{int:torrents_per_page}',
array(
'start' => $_REQUEST['start'],
'torrents_per_page' => $context['torrents_per_page'],
)
);

With :
Code: [Select]
$request = $smcFunc['db_query']('', '
SELECT
t.id_torrent, t.id_category, t.name, t.torrentname, t.torrentfile, t.filesize,
t.member_name, t.id_member, t.added, t.last_action, t.seeders, t.leechers, t.transfer,
t.is_disabled, t.downloads, c.cat_name
FROM {db_prefix}tracker_torrents AS t
LEFT JOIN {db_prefix}tracker_category AS c ON (c.id_category = t.id_category)
ORDER BY ' . $_REQUEST['sort'] . ($ascending ? '' : ' DESC') . '
LIMIT {int:start},{int:torrents_per_page}',
array(
'start' => $_REQUEST['start'],
'torrents_per_page' => $context['torrents_per_page'],
)
);

As you see the "ORDER BY" line has been added here.

3) After :
Code: [Select]
'added' => timeformat($row['added']),
'last_action' => timeformat($row['last_action']),

Add :
Code: [Select]
'date_added' => date("d/m/Y", $row['added']),

Finaly, add the following to the language file you use

Code: [Select]
// Torrent List View
$txt['tracker_dl'] = 'DL';
$txt['tracker_t_name'] = 'Torrent Name';
$txt['tracker_s'] = 'S';
$txt['tracker_l'] = 'L';
$txt['tracker_c'] = 'C';

That's it. Now you should see the list as showing in the picture above. Note that in the Torrent Name column, you should see the actual name of the torrent. For displaying purposes only, the word "Link" is found in the picture.

Besides displaying the list, you can sort it by whatever you want. As you may notice in the picture, the list is sorted by size (see the arrow in the size list?).

Hope someone may find useful this list. If this post is againt the rules then please excuse me and act accordingly.

Hope you enjoy it.
« Last Edit: March 12, 2009, 07:56:13 AM by makabrios »

Offline TraX22

  • Full Member
  • ***
  • Posts: 416
  • Gender: Male
  • *NIX
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #56 on: April 07, 2009, 10:15:01 PM »
Arcade does not work after installing the mod torrent , blank page

Without errors in the log 

Any suggestions



SMF 2.0 RC1
SMF Arcade  2.5 Beta 5
« Last Edit: April 07, 2009, 10:42:36 PM by TraX22 »
Si tu problema se resolvió pon solved al post , otra forma de ayudar
¿Qué es el repair_settings?  :P
Ante de crear un nuevo tema entra aquí

Offline myforum.co.in

  • Newbie
  • *
  • Posts: 7
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #57 on: May 30, 2009, 08:30:09 PM »
I have tested this mod and get the following error on my uTorrent: you are not authorized to use this tracker

Offline dj_pont

  • Newbie
  • *
  • Posts: 5
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #58 on: June 03, 2009, 11:54:51 AM »
RC1-1 dont work(((

Offline oldrow

  • Jr. Member
  • **
  • Posts: 102
    • OldRow
Re: [WIP mod] Bittorrent Tracker for SMF 2.0b3/b4
« Reply #59 on: June 18, 2009, 04:41:38 PM »
can this mod have permissions for only certain usergroups to access the torrents, to keep the tracker private?