при наводе мышки на название торрента в главном списке появляется его постер 1)в include/functions.php, после
Code
function torrenttable($res, $variant = "index") {
global $pic_base_url, $CURUSER, $use_wait, $tracker_lang;
Добавить
Code
?>
<script type="text/javascript" src="js/wz_tooltip.js"></script>
<?
Эту строчку
Code
print("<td align=\"left\">".($row["sticky"] == "yes" ? "Важный: " : "")."<a href=\"details.php?");
Заменяем на
Code
//ballons-mod
if($row["image1"])
{
$img_tor = (preg_match("/http:/",$row["image1"]) ? $row["image1"] : "./torrents/images/" .$row["image1"]);
}
print("<td " .($img_tor ? "onmouseover=\"Tip('<img src=" .$img_tor. " width=200>', 300, 600, PADDING, 1, 'red', 'red');\" onmouseout=\"UnTip();\" " : ""). "align=\"left\">
".($row["sticky"] == "yes" ? " : " : "")."<a href=\"details.php?");
unset($img_tor);
в browse.php, в этот запрос
Code
$query = "SELECT torrents.id, torrents.moderated, torrents.moderatedby, ...
добавляем
Примерно вот так будет
Code
$query = "SELECT torrents.image1, torrents.id, torrents.moderated, torrents.moderatedby, ...
в папку js кидаем файл wz_tooltip.js из вложенного архива
Архив