1. при чём тут META ??? Я же уже написал - что бы не возникало глупых вопросов, разбирай структуру торрент файла.
2. В админку вывести - дело 1й минуты, у меня выведено изначально ибо это просто удобно (не вижу особой трудности в добавлении настройки с выводом в переменную в настройках самого трекера).
3. Выложить - да не вопрос....
PHP код:
if ($extension == 'torrent' AND !in_array($foruminfo['forumid'], explode(',',$vbulletin->options['vbtt_forums']))) eval(standard_error(fetch_error('vbtt_disabled_forum')));
if ($extension == 'torrent' AND $vbulletin->userinfo['userid'] AND strlen($vbulletin->userinfo['torrent_pass']) == 32 AND $attachmentinfo['info_hash']!='') {
$torrent = $vbulletin->options['attachfile'] ? fread($fp, 2097152) : $attachmentinfo['filedata'];
if (!$comment=strpos($torrent,'4:infod6:lengthi'))
$comment=strpos($torrent,'4:infod5:filesld6:lengthi');
if ($comment)
$torrentstring=substr($torrent,$comment+6,-1);
if (pack('H*', sha1($torrentstring))!= $attachmentinfo['info_hash']) {
require_once(DIR . '/includes/benc.php');
$torrent = bdec($torrent);
$torrentstring = $torrent['value']['info']['string'];
}
unset($torrent);
$announce_local = $vbulletin->options['announce_local'];
$announce_url = construct_phrase($vbulletin->options['vbtt_primary_announce'],$vbulletin->userinfo['torrent_pass']);
$comment=$vbulletin->options['bburl'].'/showthread.php?p='.$attachmentinfo['postid'];
$attachmentinfo['filedata'] = sprintf('d8:announce%d:%s%d:%s7:comment%d:%s13:creation datei%de4:info%se', strlen($announce_local), $announce_local, strlen($announce_url), $announce_url, strlen($comment), $comment, $attachmentinfo['dateline'], $torrentstring);
unset($torrentstring,$announce_url,$announce_local,$comment);
$attachmentinfo['filesize'] = strlen($attachmentinfo['filedata']);
$vbulletin->options['attachfile'] = false;
}
$vbulletin->options['announce_local'] - как раз переменная поля настройки дополнительного анонсера в настройках трекера.