Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Torrent Strike
Reply
  #1  
Old 20th February 2010, 20:59
cekosexama cekosexama is offline
Senior Member
 
Join Date: Dec 2009
P2P
Posts: 21
Lightbulb Help with details.php
Hello, how can i make the torrent i point open the poster from it like... this:

Click the image to open in full size.
Reply With Quote
  #2  
Old 20th February 2010, 21:05
Timisoreanul's Avatar
Timisoreanul Timisoreanul is offline
Senior Member
 
Join Date: Apr 2008
P2P
Posts: 211
Default
first go to themes your theme name end sthead.php before </head> add
Code:
<script type="text/javascript" src="overlib.js"></script>
then after <body> add
Code:
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
save
now in bittorrent.php
Find this
Code:
print($row["cat_name"]);
            print("</a>");
        }
        else
            print("-");
        print("</td>\n");
add after it 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];
if (!empty($arr["poster"])){
$poster1 = "<table border=0 class=embedded cellspacing=0><td border=0 class=embedded align=center width=100% height=220><img src=$poster width=150 height=220></td>";
}
else{
$poster1 = "<table border=0 class=embedded cellspacing=0><td border=0 class=embedded align=center width=100% height=220><img src=/pic/noposter.png width=100% height=220></td>";
}
so it is look like this
Code:
                print($row["cat_name"]);
            print("</a>");
        }
        else
            print("-");
        print("</td>\n"); 
        $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];
if (!empty($arr["poster"])){
$poster1 = "<table border=0 class=embedded cellspacing=0><td border=0 class=embedded align=center width=100% height=220><img src=$poster width=150 height=220></td>";
}
else{
$poster1 = "<table border=0 class=embedded cellspacing=0><td border=0 class=embedded align=center width=100% height=220><img src=/pic/noposter.png width=100% height=220></td>";
}
now find this
Code:
        print("\" title=\"" . $dispname . "\"><b>" . CutName($dispname, $char) . " <img src=pic/new.png></a>
Replace with this
Code:
          print("\"onmouseover=\"return overlib('<td><img src=$poster width=150 height=220></td>',  WIDTH, 150, DELAY, 200);\" onmouseout=\"return nd();\";><b>$dispname</b></a> <img src=pic/new.png></a>
then find this
Code:
         else

             print("\" title=\"" . $dispname ."\"><b>" . CutName($dispname, $char) . "</b></a>
Replace with this
Code:
             print("\"onmouseover=\"return overlib('<td><img src=$poster width=150 height=220></td>',  WIDTH, 150, DELAY, 200);\" onmouseout=\"return nd();\";><b>$dispname</b></a>
So the code look like this(mine is a bit different because i add freelech,sticky,scene,request,2xupload)
Code:
          print("\"onmouseover=\"return overlib('<td><img src=$poster width=150 height=220></td>',  WIDTH, 150, DELAY, 200);\" onmouseout=\"return nd();\";><b>$dispname</b></a> <img src=pic/new.png></a> $thisisfree &nbsp;$double_seed $scene $request<br>$description</b></a></div>");     
           else

             print("\"onmouseover=\"return overlib('<td><img src=$poster width=150 height=220></td>',  WIDTH, 150, DELAY, 200);\" onmouseout=\"return nd();\";><b>$dispname</b></a> $thisisfree $double_seed $scene $request</a><br>$description</b></div>");
if ($variant == "index")
__________________
only me
Reply With Quote
The Following User Says Thank You to Timisoreanul For This Useful Post:
JHONNY (1st October 2015)
  #3  
Old 20th February 2010, 21:58
cekosexama cekosexama is offline
Senior Member
 
Join Date: Dec 2009
P2P
Posts: 21
Default
thanks very much! :)
Reply With Quote
Reply

Tags
detailsphp

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
What could be through the fault with details.php? janis282 Yuna Scatari Edition (YSE) 2 26th June 2010 21:26
Details with lightbox! ajax TBDev 0 15th February 2010 01:55
Details page lovebeer Template Shares 2 22nd December 2009 23:39
Details lilian Template Shares 8 28th August 2009 02:14



All times are GMT +2. The time now is 23:43. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.