News:

Wondering if this will always be free?  See why free is better.

Main Menu

[WIP mod] Bittorrent Tracker for SMF 2.0RC3

Started by niko, May 15, 2008, 04:24:59 PM

Previous topic - Next topic

dzr

Where's the download link? <.<
Nvm, found it when I logged in :p

fultz

this is what i keep getting back from every torrent i upload on to my tracker. my tracker will be for computer technicians to share open source tools. so heres the error log from the official bittorrent client

[4.27.2 2009-07-21 15:32:45] DEBUG   : created torrent, initializing
[4.27.2 2009-07-21 15:32:46] DEBUG   : _initialize: self.working_path=/Users/Josh/Library/Application Support/BitTorrent/incomplete/b08f4f94-a989
[4.27.2 2009-07-21 15:32:46] DEBUG   : _initialize: returned from Storage startup.
[4.27.2 2009-07-21 15:33:09] DEBUG   : starting torrent
[4.27.2 2009-07-21 15:33:09] DEBUG   : started torrent
[4.27.2 2009-07-21 15:33:13] ERROR   : Error regarding "BitTorrent.app":
bad data from tracker ("<br />\n<b>Parse error</b>:  syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/homepages/40/d227374572/htdocs/duality/Sources/BEncode.php</b> on line <b>25</b><br />\n")
Traceback (most recent call last):
  File "BitTorrent/Rerequester.pyo", line 373, in _postrequest
  File "BTL/bencode.pyo", line 72, in bdecode
BTFailure: not a valid bencoded string
[4.27.2 2009-07-21 15:33:13] ERROR   : bad data from tracker ("<br />\n<b>Parse error</b>:  syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/homepages/40/d227374572/htdocs/duality/Sources/BEncode.php</b> on line <b>25</b><br />\n")
[4.27.2 2009-07-21 15:34:09] ERROR   : Error regarding "BitTorrent.app":
bad data from tracker ("<br />\n<b>Parse error</b>:  syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in <b>/homepages/44/d244324572/htdocs/duy/Sources/BEncode.php</b> on line <b>25</b><br />\n")
Traceback (most recent call last):
  File "BitTorrent/Rerequester.pyo", line 373, in _postrequest
  File "BTL/bencode.pyo", line 72, in bdecode
BTFailure: not a valid bencoded string

busterone

This mod is working great on RC1.2
Thanks for what you have done so far. I look forward to additional features. This has great potential.

@ the torrent listing page by makabrios is working as well.   :)

inter

Sorry for my English

inter

#64
Содержимое файла Tracker.russian-utf8.php
<?php
// Version: 0.1 Alpha; Tracker
//Перевод на русский язык сделал Inter - http://smfrus.ru/index.php/topic,201
//Tracker.russian-utf8

// General
$txt['torrent_name'] = 'Имя';
$txt['torrent_size'] = 'Размер';
$txt['torrent_seeders'] = 'Сидеры';
$txt['torrent_leechers'] = 'Личеры';
$txt['torrent_completed'] = 'Здоровье';
$txt['torrent_transfer'] = 'Трансфер';
$txt['tracker_downloaded_times'] = 'Скачан %d время';

$txt['tracker_delete'] = 'Удалить';

$txt['duration_year'] = 'Год(лет)';
$txt['duration_month'] = 'Месяц(ев)';
$txt['duration_week'] = 'Неделя(недель)';
$txt['duration_day'] = 'День(дней)';
$txt['duration_hour'] = 'Час(часы)';
$txt['duration_minute'] = 'Минута(ы)';
$txt['duration_second'] = 'Секунда';

// Torrents list
$txt['tracker_no_torrents'] = 'Нет торрентов';

// Admin
$txt['trackerEnabled'] = 'Включить трекер';
$txt['trackerAllowExternal'] = 'Включить DHT';
$txt['enablePasskey'] = 'Пасскей';
$txt['scrapePasskey'] = 'Включить скрап-запрос через пасскей';
$txt['trackerTrackUser'] = 'Статистика пользователей трекера';
$txt['checkConnectable'] = 'Проверьте Connectability';
$txt['torrentDirectory'] = 'Торрент директория';

// Statistics
$txt['tracker_stats'] = 'Статистика трекера';
$txt['tracker_user_statistics'] = 'Статистика трекера в %s';

$txt['tracker_group_incomplete'] = 'Загруженные торренты без сидов';
$txt['tracker_group_complete'] = 'Загруженные торренты в наличии';

// Torrent View
$txt['tracker_view_title'] = 'Детали торрента в %';
$txt['tracker_download'] = 'Скачать';
$txt['tracker_added'] = 'Добавлен';
$txt['tracker_uploader'] = 'Добавил';
$txt['tracker_category'] = 'Категория';
$txt['tracker_description'] = 'Описание';
$txt['tracker_files'] = 'Файлы';
$txt['tracker_show_list'] = '[Показать список]';
$txt['tracker_m_name'] = 'Имя';
$txt['tracker_idle'] = 'Не активен';
$txt['tracker_complete_time'] = 'В наличии';

// Errors
$txt['torrent_not_found'] = 'Торрент не найден';
$txt['torrent_disabled'] = 'Торрент с ошибкой и не может быть загружен';
$txt['tracker_not_authorized'] = 'Вы не авторизованы на форуме/трекере или не имеете прав скачивать этот торрент';
$txt['invalid_request'] = 'Ваш клиент послал недействительный запрос';
$txt['torrent_not_authorized'] = 'Торрент не зарегистрирован или удален';
$txt['tracker_disabled'] = 'Трэкер отключен';

?>



Содержимое файла Modifications.russian-utf8.php

<?php
// Version: 2.0 RC1; Modifications

// Version: 0.1 Alpha; Tracker
//Перевод на русский язык сделал Inter - http://smfrus.ru/index.php/topic,201
//Modifications.russian-utf8.php

$txt['permissiongroup_tracker'] = 'Трекер';
$txt['permissiongroup_simple_tracker'] = 'Используйте трекер';
$txt['permissionname_tracker_view'] = 'Просмотреть трекер';
$txt['permissionname_tracker_download'] = 'Скачать';
$txt['permissionname_tracker_delete'] = 'Удалить торрент';
$txt['permissionname_tracker_delete_own'] = 'Иметь';
$txt['permissionname_tracker_delete_any'] = 'Любой';
$txt['permissionname_tracker_upload'] = 'Загрузить торренты';
$txt['permissionname_tracker_admin'] = 'Админ';
$txt['permissionname_tracker_view_stats'] = 'Посмотреть статистику';
$txt['permissionname_tracker_view_stats_own'] = 'Иметь';
$txt['permissionname_tracker_view_stats_any'] = 'Любой';

$txt['cannot_tracker_view'] = 'Вам не разрешают просмотреть трекер';
$txt['cannot_tracker_delete_own'] = 'Вам не разрешают удалить торренты';
$txt['cannot_tracker_download'] = 'Вам не разрешают загрузить торрент';

$txt['tracker_admin'] = 'Администрирование трекера';
$txt['tracker_settings'] = 'Настройки трекера';

$txt['trackerStats'] = 'Статистика трекера';

$txt['torrent_ratio'] = 'Рейтинг';
$txt['torrent_downloaded'] = 'Скачал';
$txt['torrent_uploaded'] = 'Раздал';
$txt['active_torrents'] = 'Активные торренты';
$txt['active_downloads'] = 'Скачали';
$txt['active_uploads'] = 'Раздали';

$txt['torrent_ib_seeds'] = 'Сидеры';
$txt['torrent_ib_leechs'] = 'Личеры';
$txt['torrent_ib_transfer'] = 'Трансфер';
$txt['torrent_ib_downloads'] = 'Скачали';
$txt['torrent_ib_details'] = 'Детали торрента';

?>
Sorry for my English

inter

#65
 :D
Subs.php:
find:

if (!empty($data))
$data .= \'<br />\';
$data .= \'<a href="\' . getDownloadURL($row[\'id_torrent\']) . \'">\' . $row[\'name\'] . \'</a> - \' . size_readable($row[\'filesize\']) . \' - \' . $row[\'seeders\'] . \' \' . $txt[\'torrent_ib_seeds\'] . \', \' . $row[\'leechers\'] . \' \' . $txt[\'torrent_ib_leechs\'] . \' - \' . size_readable($row[\'transfer\']) . \' \' . $txt[\'torrent_ib_transfer\'] . \', \' . $row[\'downloads\'] . \' \' . $txt[\'torrent_ib_downloads\'] . \' - <a href="\' . $scripturl . \'?action=tracker;torrent=\' . $row[\'id_torrent\'] . \'">\' . $txt[\'torrent_ib_details\'] . \'</a>\';
}

replace:
if (!empty($data))
$data .= \'<br />\';
$data .= \'<a href="\' . getDownloadURL($row[\'id_torrent\']) . \'"><img src="http://s61.radikal.ru/i172/0908/58/21569b04c7f4.png" alt="t-download-img" title=" \' . $row[\'name\'] . \' "/></a><br><b>\' . $txt[\'filesize\'] . \'</b> - <span style="color: #0000FF; "><b>\' . size_readable($row[\'filesize\']) . \'</b></span><br><b>\' . $txt[\'torrent_ib_seeds\'] . \'</b> - <span style="color: #006633"><b>\' . $row[\'seeders\'] . \' </b></span><br><b>\' . $txt[\'torrent_ib_leechs\'] . \'</b> - <span style="color: #FF0000; "><b>\' . $row[\'leechers\'] . \' </b></span><br><b>\' . $txt[\'torrent_ib_transfer\'] . \'</b> - \' . size_readable($row[\'transfer\']) . \' <br><b>\' . $txt[\'torrent_ib_downloads\'] . \' </b> -  \' . $row[\'downloads\'] . \' <br><a href="\' . $scripturl . \'?action=tracker;torrent=\' . $row[\'id_torrent\'] . \'">\' . $txt[\'torrent_ib_details\'] . \'</a>\';
  }

Sorry for my English

spamui

#66
Hello. I have error :(  Fatal error: require_once() [function.require]: Failed opening required '/public_html/Sources/TorrentDatabase.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /public_html/Packages/temp/installDatabase.php on line 33

starbetrayer

I have the same error

it concerns :


Find [Select]
'showPosts' => array(
Add Before [Select]
'trackerStats' => array( 'own' => array('tracker_view_stats_own', 'tracker_view_stats_any'), 'any' => array('tracker_view_stats_any'), 'load_member' => true, ),

starbetrayer


cieplutki

#69
replase this
Find [Select]
'showPosts' => array(
Add Before [Select]
'trackerStats' => array( 'own' => array('tracker_view_stats_own', 'tracker_view_stats_any'), 'any' => array('tracker_view_stats_any'), 'load_member' => true, ),


to:
Find [Select]
'showposts' => array(
Add Before [Select]
'trackerStats' => array( 'own' => array('tracker_view_stats_own', 'tracker_view_stats_any'), 'any' => array('tracker_view_stats_any'), 'load_member' => true, ),


it's work on smf 2.0 rc1.2

and my question

what to do with this

on torrent client i have this message tracer:
error HTTP 500

my test post
http://www.zion-dc.ovh.org/index.php?topic=6.0

//edit
what's loos on promesion group


and could someone to do som how too or some like this please




.

Arantor

The permissions issue is likely to do with languages. Are you using English-UTF8 on your forum?

As for the 500 error please advise what is in your forum and server error logs.
Holder of controversial views, all of which my own.


niko

500 error is probably because announce.php/scrape.php has invalid permissions.
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

cieplutki

#72
so permissions on this file should be ... 755 or 777 ???

and my testing file on this post http://www.zion-dc.ovh.org/index.php?topic=2.0

please check this tracker

i as seed have a messages error HTTP 404 on tracker ... whay

and tracker should be a http://www.zion-dc.ovh.org/announce.php or http://www.zion-dc.ovh.org/announce

please some tutorial about this




.

busterone

Mine worked at 755
tracker in torrent should be - hxxp:www.zion-dc.ovh.org/announce.php [nonactive]

ReRobot


cieplutki

worked mod on smf 2.0 RC2 on attachment  ;)
but i have question:
on utorrent with section tracker i have message : Yuo are not authorized to use this tracker

whay




.



Hj Ahmad Rasyid Hj Ismail



Advertisement: