Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   balloon mod (http://www.bvlist.com/showthread.php?t=538)

klonoa2 30th June 2008 23:54

balloon mod
 
1 Attachment(s)
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:

Code:


put:
Code:


then find:
Code:


and put this before it:
Code:


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("
$des
',  WIDTH, 400, DELAY, 200);\" onmouseout=\"return nd();\";>$dispname
$description");
then find:
Code:

print("\">$dispname\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("$des',  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("$des',  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 !

All times are GMT +2. The time now is 12:42.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.