//Poster_Mod
if($bb_cfg['lenta'])
{
$data = DB()->sql_query("
SELECT COUNT(tr.topic_id) as count FROM ". BB_BT_TORRENTS ." tr LIMIT ". $bb_cfg['lenta_posters'] ."");
$data = DB()->fetch_rowset("SELECT
tr.topic_id, tr.size,
t.topic_title, t.topic_image,
f.forum_name,
u.username, u.user_id, u.user_rank,
pt.post_text
FROM
". BB_BT_TORRENTS ." tr
LEFT JOIN ". BB_TOPICS ." t ON tr.topic_id = t.topic_id
LEFT JOIN ". BB_FORUMS ." f ON tr.forum_id = f.forum_id
LEFT JOIN ". BB_USERS ." u ON tr.poster_id = u.user_id
LEFT JOIN ". BB_POSTS_TEXT ." pt ON tr.post_id = pt.post_id
WHERE
tr.forum_id NOT IN (".$bb_cfg['not_in'].")
ORDER BY RAND()
LIMIT ". $bb_cfg['lenta_posters'] ."
");
$this->store('poster_mod', $data);
}