View Single Post
  #1  
Old 19th May 2011, 06:46
mmisu120000's Avatar
mmisu120000 mmisu120000 is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 202
Default Balloon tooltip in browse page
This is a mode I've made some time ago ...

Click the image to open in full size.

So, this is what you should do:

in browse.php, find:

PHP Code:
$name_torrent '<a href="'.($UseQuickMenu '#' $seolink2).'" id="torrentmenu'.$torrents['id'].'" /><b>'.(!empty($keywords) ? highlight(htmlspecialchars_uni($keywords), $torrents['name']) : $torrents['name']).'</b></a> '.$isnew.' '.$issticky.' '.$isfree.' '.$issilver.' '.$isdoubleupload.' '.$isrequest.' '.$isnuked.' <span id="isexternal_'.$torrents['id'].'">'.$isexternal.'</span>'
and replace it with:

PHP Code:
        $imagineat=htmlspecialchars_uni($torrents['t_image']);
$name_torrent '<a href="'.$seolink2.'" onmouseover="return overlib(\'<table width=100%><tr><td><img src='.$imagineat.' width=150 height=200></td></tr></table>\',  WIDTH, 150, DELAY, 100);" onmouseout="return nd();"><b>'.$torrents['name'].'</b></a> '.$isnew.' '.$issticky.' '.$isfree.' '.$issilver.' '.$isdoubleupload.' '.$isrequest.' '.$isnuked.' <span id="isexternal_'.$torrents['id'].'">'.$isexternal.'</span>'
in /include/templates/YOUR_TEMPLATE/header.php,

in the <head> section insert this line:
PHP Code:
<script type="text/javascript" src="<?php echo $BASEURL?>/scripts/overlib.js"></script>
(do this in every template you have.

Finally, overlib.js in the /scripts dir (DON'T FORGET TO UNRAR IT FIRST!)

This should do it...
If there is something that I forgot, please tell me, it's been a while since I made that, maybe I missed something ...
Attached Files
File Type: rar overlib.rar (9.8 KB, 189 views)
__________________
"How terrible is wisdom when it holds no benefit for the wise?" - Louis Cypher
WDW Tracker - Using heavy modified TSSE

Last edited by mmisu120000; 19th May 2011 at 22:26.
Reply With Quote
The Following 11 Users Say Thank You to mmisu120000 For This Useful Post:
aMiGo1972 (14th December 2012), bodinho (24th November 2011), FENIX (27th February 2013), Marco (23rd July 2011), PAX (30th November 2011), shasta (26th May 2011), Titya (19th May 2011), Tones (1st November 2012), vulongvy (20th April 2012), wellqfk (3rd December 2011), youacehole (5th September 2011)