Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD] Stylish New Baloon
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-06-01 21:02:52
Heres my new stylish torrent baloon specially created for all torrenttrader users!  :lol: Small code is taken from Skayver baloon script!

Installation: easy





Tracker version: TT V2






Mod Author: KjSay,small script taken from Skayver.





Follow this steps and then you will have something like this one:



Lets get started!

1.Download this file:

Put in images folder!

2.Open your header.php and then in your <head> tag put this:

<style type="text/css">



#KjSay-Baloon{

position: absolute;

left: -300px;

width: 120px;

border: 1px solid black;

padding: 4px;

background-color: #f2f2f2;

visibility: hidden;

z-index: 100;

/*Remove below line to remove shadow. Below line should always appear last within this CSS*/

filter: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=135);

}



#KjSay-Baloon-Pointer{

position:absolute;

left: -300px;

z-index: 101;

visibility: hidden;

}



</style>
3.Now put this right after your <body> tag:


<script type="text/javascript">



var offsetfromcursorX=12 //Customize x offset of tooltip

var offsetfromcursorY=10 //Customize y offset of tooltip



var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image

var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).



document.write('<div id="KjSay-Baloon"></div>') //write out tooltip DIV

document.write('<img id="KjSay-Baloon-Pointer" src="<?= $site_config["SITEURL"]; ?>/images/baloon_icon.png">') //write out pointer image



var ie=document.all

var ns6=document.getElementById && !document.all

var enabletip=false

if (ie||ns6)

var tipobj=document.all? document.all["KjSay-Baloon"] : document.getElementById? document.getElementById("KjSay-Baloon") : ""



var pointerobj=document.all? document.all["KjSay-Baloon-Pointer"] : document.getElementById? document.getElementById("KjSay-Baloon-Pointer") : ""



function ietruebody(){

return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body

}



function ddrivetip(thetext, thewidth, thecolor){

if (ns6||ie){

if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"

if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor

tipobj.innerHTML=thetext

enabletip=true

return false

}

}



function positiontip(e){

if (enabletip){

var nondefaultpos=false

var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;

var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;

//Find out how close the mouse is to the corner of the window

var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20

var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20



var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX

var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY



var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000



//if the horizontal distance isn't enough to accomodate the width of the context menu

if (rightedge<tipobj.offsetWidth){

//move the horizontal position of the menu to the left by it's width

tipobj.style.left=curX-tipobj.offsetWidth+"px"

nondefaultpos=true

}

else if (curX<leftedge)

tipobj.style.left="5px"

else{

//position the horizontal position of the menu where the mouse is positioned

tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"

pointerobj.style.left=curX+offsetfromcursorX+"px"

}



//same concept with the vertical position

if (bottomedge<tipobj.offsetHeight){

tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"

nondefaultpos=true

}

else{

tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"

pointerobj.style.top=curY+offsetfromcursorY+"px"

}

tipobj.style.visibility="visible"

if (!nondefaultpos)

pointerobj.style.visibility="visible"

else

pointerobj.style.visibility="hidden"

}

}



function hideddrivetip(){

if (ns6||ie){

enabletip=false

tipobj.style.visibility="hidden"

pointerobj.style.visibility="hidden"

tipobj.style.left="-1000px"

tipobj.style.backgroundColor=''

tipobj.style.width=''

}

}



document.onmousemove=positiontip



</script>





4.Now open your backend/functions.php file and find this:



print("<td class=ttable_col2 nowrap><a href=\"java script: 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 title=\"".$row["name"]."\" href=\"torrents-details.php?id=$id&amp;hit=1\">$dispname</a>");





Replace with:



					/// THIS IS TAKEN FROM Skayver /// 

$bimg = @mysql_fetch_array(@mysql_query("SELECT image1 FROM torrents WHERE id=$id"));

$balon =($bimg["image1"] ? "$site_config[SITEURL]/uploads/images/" . htmlspecialchars($bimg["image1"]) : "images/nocover.jpg");

/// END BALONN MOD ///

print("<td class=ttable_col$x nowrap>".(count($expandrows)?"<a href=\"java script: 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>":"")."&nbsp;<a href=\"torrents-details.php?id=$id&amp;hit=1\" onMouseover=\"ddrivetip('<img border=0 width=120 src=$balon>')\"; onMouseout=\"hideddrivetip()\">$dispname</a>");



OK!Now you`ve got a fully functional poster mod.Comments and notes are welcome!

baloon.gif
baloon.gif
baloon_icon.png
baloon_icon.png
demo.gif
demo.gif
Unknown User
2008-06-02 14:49:07
Great job thank you.

Just a little problem.

it's break the expanding area and modify the table.it's possible just added the balloon but no change other there?

and can you give me the code to show picture without the plus.gif



thank you
B00000006.gif
B00000006.gif
Unknown User
2008-09-17 00:50:30
Merci super  :)  ;)  ;)  :)  :lol:
Unknown User
2008-09-17 13:51:37
[url="http://www.torrenttrader.org/index.php?showtopic=6607&hl=balloon"]http://www.torrenttrader.org/index.php?sho...&hl=balloon[/url]
Unknown User
2008-09-17 23:00:04
Thanks! :)
Unknown User
2008-12-06 13:14:14
Works Great ^^
Unknown User
2008-12-06 16:22:45
I do not have that aquivor "header.php" as I do I get it?
Unknown User
2008-12-06 18:15:43
in fact this is not my part here:

print("<td class=ttable_col2 nowrap><a href=\"java script: 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 title=\"".$row["name"]."\" href=\"torrents-details.php?id=$id&amp;hit=1\">$dispname</a>");
Unknown User
2008-12-09 17:33:34
Hi !

I seach in the scirpt how to make bigger pictures beause i find them a little small...

can somebody help me ?

Thanks

Edit : I found it out, sorry ^^

Hum i have another problem,

When i clic on torrent name (with the baloontip) i come to the torrent details but if i clic on previous link on my browser (firefox) the baloon tip always shows up following my mouse cursor. Can someone knows about to fix that problem ?!
Unknown User
2008-12-09 22:08:45
thank you a lot / you are the man

/ all the best!
Unknown User
2008-12-18 06:43:25
How to set over the image to appear and category? Category is not in the table in a balloon. How?

(sorry for my bad english)
Unknown User
2009-02-07 02:04:59
;)  ;)  :lol:    thanksss works greats for me tt 2.5
Unknown User
2009-04-09 13:11:56
Cool, works for me too. TYVM.
Unknown User
2009-04-30 22:12:54
Many thx... :)
Unknown User
2009-05-05 15:26:37
Wow, this is awesome!

Do you know what it doesnt work on Mozilla Firefox?

In Opera and IE it works fine, but in Mozilla the pop-up doesnt show.

Thanks
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728