@niki
Which version are you using?
M-Jay or MicroMonkey?
Do you have that part on your theme header.php:
<script type="text/javascript" src="<?php echo $site_config["SITEURL"]; ?>/js/overlib.js"></script>
do you have JS foleder on root?
do you have overlib.js file on it?
I have installed fresh TorrentTrader version TTv3-master on my test tracker
Working code
case 'name':
$char1 = 75; //cut name length
$smallname = htmlspecialchars(CutName($row["name"], $char1));
$dispname = "<b>".$smallname."</b>";
$last_access = $CURUSER["last_browse"];
$time_now = gmtime();
if ($last_access > $time_now || !is_numeric($last_access))
$last_access = $time_now;
if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access)
$dispname .= "<b><font color='#ff0000'> - (".T_("NEW")."!)</font></b>";
if ($row["freeleech"] == 1)
$dispname .= " <img src='images/free.gif' border='0' alt='' />";
//////////BALLOON TOOLTIP MOD///////////////////////////
$preparing_descr = SQL_Query_exec("SELECT torrents.anon, torrents.views, torrents.hits, torrents.descr, torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id");
$descr = mysqli_fetch_array($preparing_descr);
$des = mysqli_real_escape_string($GLOBALS["DBconnector"], format_comment($descr['descr']));
//$des = mysqli_real_escape_string($GLOBALS["descr"], format_comment($descr['descr']));
$char5 = 400; //cut description length
if (($descr["anon"] == "yes" || $row["privacy"] == "strong") && $CURUSER["id"] != $descr["owner"] && $CURUSER["edit_torrents"] != "yes") {
$descr['username'] = "".T_("ANONYMOUS")."";
}else{
$descr['username'];
if (empty($descr["lang_name"]))
$descr["lang_name"] = "Unknown/NA";
$lang = "<b>" .T_("LANG"). " : </b>" . $descr["lang_name"] . "";
if (isset($descr["lang_image"]) && $descr["lang_image"] != "")
$flag = "<img src=$site_config[SITEURL]/images/languages/$descr[lang_image] border=0 alt=$descr[lang_name]>";
$bimg = @mysqli_fetch_array(@SQL_Query_exec("SELECT image1 FROM torrents WHERE id=$id"));
$balon =($bimg["image1"] ? "$site_config[SITEURL]/uploads/images/" . htmlspecialchars($bimg["image1"]) : "images/nocover.jpg");
}
print("<td class='ttable_col$x' nowrap='nowrap'>".(count($expandrows)?"<a href=\"javascript: klappe_torrent('t".$row['id']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/plus.gif\" id=\"pict".$row['id']."\" alt=\"Show/Hide\" class=\"showthecross\" /></a>":"")." <a href=\"torrents-details.php?id=$id&hit=1\" onMouseover=\"return overlib('<table width=\'100%\' class=\'table table_bordered2\' align=\'center\'><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'>$smallname</th></tr><tr valign=\'top\'><td align=\'center\' class=\'css\'><img border=\'0\' width=\'150\' src=\'".$balon."\' class=\'poster\'></td><td class=\'css-right\'><div align=\'left\' class=\'torrent-category-detail clearfix\'><ul class=\'list\'><li><h6 align=\'center\'>SPECIFICATION</h6></li><li><font color=\'gold\'>Uploaded : </font><font color=\'yellow\'>" . date("d-m-Y", utc_to_tz_time($row["added"])) . "</font></li><li><font color=\'gold\'>Uploaded by: </font><font color=\'yellow\'>" . $descr['username'] . "</font></li><li><font color=\'gold\'>Size : </font><font color=\'yellow\'> ". mksize($row["size"]) . "</font></li><li><font color=\'gold\'>Downloaded: </font><font color=\'yellow\'>" . $row["times_completed"] . " - x</font></li><li><font color=\'gold\'>Views: </font><font color=\'yellow\'>" . $descr["hits"] . " - x</font></li><li><font color=\'gold\'>Seeders : </font><font color=\'yellow\'>" . $row["seeders"] . "</font></li><li><font color=\'gold\'>Leechers : </font><font color=\'yellow\'>" . $row["leechers"] . "</font></li></ul></div></td></tr><tr class=\'b-title\'><th class=\'table_head\' colspan=\'2\' align=\'center\'><h3> ".T_("DESCRIPTION")." </h3></th></tr><tr><td class=\'css-right\' colspan=\'2\' align=\'left\'> " . CutName($des, $char5) . " </td></tr></table>', CENTER, HEIGHT, 300, WIDTH, 650)\"; onMouseout=\"return nd()\"> ".$smallname." </a></td>");
/// END BALONN MOD ///
www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
Last edited by Botanicar on 2023-08-14 04:49:44