Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > Torrent Strike > Mods & Themes
Reply
  #1  
Old 14-04-11, 01:35
nicukent's Avatar
nicukent nicukent is offline
Senior Member
 
Join Date: Sep 2009
P2P
Posts: 27
Smile Last X torrents with poster, marquee and expando.
Screen:

Click the image to open in full size.

Add this to index where you like:

PHP Code:
<?
//Start of Last Torrents with poster and marquee mod

begin_frame("Last Torrents");
$rezfive = mysql_query("SELECT id, seeders, leechers, name, poster FROM torrents WHERE visible = 'yes' ORDER BY added DESC LIMIT 7") or sqlerr(__FILE__, __LINE__);
print '<marquee scrollAmount=3 onMouseover=this.scrollAmount=0 onMouseout=this.scrollAmount=3 scrolldelay=0 direction=left><table width=100% border=0 cellspacing=0 cellpadding=10><tr>';
if (mysql_num_rows($rezfive) > 0) {
while ($fiverow = mysql_fetch_assoc($rezfive)) {
$poster = (!empty($fiverow["poster"]) ? (str_replace(" ", "%20", htmlentities($fiverow['poster']))) : 'pic/poster.jpg');
$name = $fiverow['name'];
$name = str_replace('_', ' ' , $name);
$name = str_replace('.', ' ' , $name);
$name = substr($name, 0, 70);
print ("<td><a href=\"".$BASEURL."/details.php?id=".$fiverow['id']."\" title=\"".$name."\" /><img class=\"expando\" src=\"".$poster."\" width=\"100\" height=\"130\" title=\"".$name."\" border=0 /></a><br /><b>".CutName(htmlentities($fiverow['name']),18)." </b><br> ".$fiverow['seeders']." <font color=green><b>S</b></font> and ".$fiverow['leechers']." <font color=red><b>L</b></font></td>");
}
}
echo "</tr></table></marquee>";
end_frame();
//End of Last Torrents with poster and marquee mod
?>

Add this to your css style:

PHP Code:
img.expando/*sample CSS for expando images. Not required but recommended*/
bordernone;
vertical-aligntop/*top aligns image, so mouse has less of a change of moving out of image while image is expanding*/

Use this .js file:

PHP Code:
expando.js

/* Expando Image Script 2008 John Davenport Scheuer
   as first seen in http://www.dynamicdrive.com/forums/
   username: jscheuer1 - This Notice Must Remain for Legal Use
   */

if (document.images){
 (function(){
  var 
cos= /Apple/.test(navigator.vendor), times a20 40speed a40 20;
  var 
expConIm = function(im){
   
im im || window.event;
   if (!
expConIm.r.test (im.className))
    
im im.target || im.srcElement || null;
   if (!
im || !expConIm.r.test (im.className))
    return;
   var 
expConIm,
   
widthHeight = function(dim){
    return 
dim[0] * cos dim[1] + 'px';
   },
   
resize = function(){
    
cos = (Math.cos((e.ims[i].jump times) * Math.PI)) / 2;
    
im.style.width widthHeight (e.ims[i].w);
    
im.style.height widthHeight (e.ims[i].h);
    if (
e.ims[i].&& times e.ims[i].jump){
     ++
e.ims[i].jump;
     
e.ims[i].timer setTimeout(resizespeed);
    } else if (!
e.ims[i].&& e.ims[i].jump 0){
     --
e.ims[i].jump;
     
e.ims[i].timer setTimeout(resizespeed);
    }
   }, 
document.imagesd.length 1;
   for (
i> -1; --i)
    if(
d[i] == im) break;
   
im.src;
   if (!
e.ims[i]){
    
im.title '';
    
e.ims[i] = {im : new Image(), jump 0};
    
e.ims[i].im.onload = function(){
     
e.ims[i].= [e.ims[i].im.width im.widthim.width];
     
e.ims[i].= [e.ims[i].im.height im.heightim.height];
     
(im);
    };
    
e.ims[i].im.src im.src;
    return;
    }
   if (
e.ims[i].timerclearTimeout(e.ims[i].timer);
   
e.ims[i].= !e.ims[i].d;
   
resize ();
  };

  
expConIm.ims = {};

  
expConIm.= new RegExp('\\bexpando\\b');

  if (
document.addEventListener){
   
document.addEventListener('mouseover'expConImfalse);
   
document.addEventListener('mouseout'expConImfalse);
  }
  else if (
document.attachEvent){
   
document.attachEvent('onmouseover'expConIm);
   
document.attachEvent('onmouseout'expConIm);
  }
 })();


Don't forget to add:

PHP Code:
<script type="text/JavaScript" src="js/expando.js"></script> 
To the <head> tags in stdhead.php

dont't forget to change: DESC LIMIT 7, to the number of images you want to show.

You need a poster mod for this.

Please Do Not "PM" Me For Personal Support!



Last edited by Fynnon; 14-04-11 at 12:25.
Reply With Quote
The Following User Says Thank You to nicukent For This Useful Post:
wMan (13-05-11)
  #2  
Old 28-05-11, 08:47
Filmub's Avatar
Filmub Filmub is offline
Member
 
Join Date: May 2011
Sweden
Posts: 10
Question
Quote:
Originally Posted by nicukent View Post
Use this .js file:
Should I create a new one. js file??
Reply With Quote
  #3  
Old 07-10-12, 14:41
Cyberlock's Avatar
Cyberlock Cyberlock is offline
Senior Member
 
Join Date: Aug 2008
Posts: 15
Default
It's only work with Firefox and IE. but not for Chrome.
if you put more than 6 or 7 display, example 24 marquee torrents with poster.
you extends the site in chrome.
do you have a fix for that.
Reply With Quote
Reply

Tags
marquee , mod , poster , torrents

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



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