Quote:
Originally Posted by mcfe
hi all im posting this mod cause all the balloon tooltips didnt work
(from RAW from gazeto and from r63)
ok lets begin
|
first you need the
overlib.js
http://www.samisite.com/test-csb2nf/HTMLob.../overlib400.zip
open your
bittorrent.php and before:
put:
Code:
<script type="text/javascript" src="overlib.js"></script>
then find:
and put this before it:
Code:
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
then find:
Code:
$dispname = htmlspecialchars($row["name"]);
and replace it with this:
Code:
$preparing_baloon=mysql_query("SELECT poster FROM torrents WHERE id=$id LIMIT 0, 255") or sqlerr();
$poster=mysql_fetch_array($preparing_baloon);
$poster=$poster[poster];
$nlsubs=$poster[nlsubs];
$preparing_descr=mysql_query("SELECT descr FROM torrents WHERE id=$id LIMIT 0, 1 ") or sqlerr();
$descr=mysql_fetch_array($preparing_descr);
$des = mysql_real_escape_string(format_comment($descr[descr]));
$des=ereg_replace('"',""",$des);
$des=ereg_replace("<","<",$des);
$des=ereg_replace(">",">",$des);
$des=ereg_replace(" "," ",$des);
$des=ereg_replace("
","
",$des);
$dispname = htmlspecialchars($row["name"]);
$baloon=
print("<td align=left><tr><td><img src=$poster width=150 height=200></td><td>$des</td></tr></table>', WIDTH, 400, DELAY, 200);\" onmouseout=\"return nd();\";>$dispname
$description");
then find:
Code:
print("\">$dispname</a>\n");
and erase it
You`re Done !
and remember to back-up your bittorrent.php
P.S you need the poster mod for this to work
*EDIT 2*
to show color and short descr just remove:
Code:
$des=ereg_replace("<","<",$des);
$des=ereg_replace(">",">",$des);
$des=ereg_replace(" ","",$des);
$des=ereg_replace("
","
",$des);
from this:
Code:
$preparing_baloon=mysql_query("SELECT cover, bgsubs FROM torrents WHERE id=$id LIMIT 0, 255") or sqlerr();
$cover=mysql_fetch_array($preparing_baloon);
$cover=$cover[cover];
$subs=$cover[bgsubs];
$preparing_descr=mysql_query("SELECT descr FROM torrents WHERE id=$id LIMIT 0, 100 ") or sqlerr();
$descr=mysql_fetch_array($preparing_descr);
$des = mysql_real_escape_string(format_comment($descr[descr]));
$des=ereg_replace('"',""",$des);
$des=ereg_replace("<","<",$des);
$des=ereg_replace(">",">",$des);
$des=ereg_replace(" ","",$des);
$des=ereg_replace("
","
",$des);
$dispname = htmlspecialchars($row["name"]);
$baloon=
print("<td align=left><tr><td><img src=$cover width=128 height=150></td><td>$des</td></tr></table>', WIDTH, 400, DELAY, 200);\" onmouseout=\"return nd();\";>$dispname");
so it looks like this:
Code:
$preparing_baloon=mysql_query("SELECT poster FROM torrents WHERE id=$id LIMIT 0, 255") or sqlerr();
$poster=mysql_fetch_array($preparing_baloon);
$poster=$poster[poster];
$nlsubs=$poster[nlsubs];
$preparing_descr=mysql_query("SELECT descr FROM torrents WHERE id=$id LIMIT 0, 100 ") or sqlerr();
$descr=mysql_fetch_array($preparing_descr);
$des = mysql_real_escape_string(format_comment($descr[descr]));
$des = ereg_replace('"',""",$des);
$dispname = htmlspecialchars($row["name"]);
$dispname = ereg_replace('\.', ' ', $dispname);
$baloon=
print("<td align=left><tr><td><img src=$cover width=128 height=150></td><td>$des</td></tr></table>', WIDTH, 400, DELAY, 200);\" onmouseout=\"return nd();\";>$dispname");
Could someone plz remake this to work with torrent strike plz it is from tbdev.net but it won't work on torrent strike !