Dr_Brown
Пользователь
Норм пашет, пойдет...можешь добавить мою регулярку, заменяет всякие ссылки с рутрекера, на твою иконку:
все что torrents.gif заменить на свою картинку, или резать нахер.
PHP:
$text = preg_replace('#<a href="http://rutracker.org.*?</a>#', '[img]http://......................../images/torrents.gif[/img]', $text);
$text = preg_replace('#<a href="http://screenshotcomparison.com.*?</a>#', ' ', $text);
$text = preg_replace('#<var class="postImg" title="http://s60.*******.host/i168/1103/b2/7817dead5b2b.gif".*?>#', '[img]http://............................/images/torrents.gif[/img]', $text);
$text = preg_replace('#<var class="postImg" title="http://i2.imageban.ru/out/2011/02/25/3b50d0519a87aa7574402d025814968d.gif".*?>#', '[img]http://....................../images/torrents.gif[/img]', $text);
$text = preg_replace('#<var class="postImg" title="http://static.rutracker.org/.*?>#', '[img]http://......................../images/torrents.gif[/img]', $text);
$text = preg_replace('#<var class="postImg" title="http://i59.fastpic.ru/big/2013/1101/f5/d724cfb9e815c9c337e259707973c0f5.png".*?>#', '[img]http://......................../images/torrents.gif[/img]', $text);
$text = preg_replace('#<var class="postImg" title="http://s020.*******.host/i706/1404/34/b01f7ddb5331.gif".*?>#', '[img]http://torrentpier.com/images/torrents.gif[/img]', $text);
$text = preg_replace('#<var class="postImg" title="http://i12.fastpic.ru/big/2010/1113/3d/0a52948de2e78ae14082e2ebf178eb3d.png".*?>#', '[img]http://................../images/torrents.gif[/img]', $text);
все что torrents.gif заменить на свою картинку, или резать нахер.