View Single Post
  #1  
Old 9th March 2022, 08:39
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Smile [mod add-on] Lastest Torrents with Poster Slider
Click the image to open in full size.

Click the image to open in full size.

PHP Code:

<?php
/**
**************************
** FreeTSP Version: 1.0 **
**************************
** http://www.freetsp.info
** https://github.com/Krypto/FreeTSP
** Licence Info: GPL
** Copyright (C) 2010 FreeTSP v1.0
** A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
** Project Leaders: Krypto, Fireknight.
**/

require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'functions'.DIRECTORY_SEPARATOR.'function_main.php');
require_once(
FUNC_DIR.'function_user.php');
require_once(
FUNC_DIR.'function_vfunctions.php');
require_once(
FUNC_DIR.'function_bbcode.php');

db_connect(true);
logged_in();

/*
@info
$ Lastest Torrents with Poster Slider
$ author: scene // bambam0077 // Tw@T
@somerightsreserved.freetsp.localhost.irc.scenereleasegroup.okay.anon.froz3n.time
*/


//Start of Lastest Torrents with Poster Slider
echo "<div style='margin-top: -20px;' class='latest_filter'><div style='float: left;margin-top: -5px;margin-left: -10px;'>Latest Movies</div></div>
      <div class='latest_info'><span style='padding: 0.1em;'></span>
      <div id='jssor_1' style='position: relative; margin: 0 auto; top: 0px; left: 0px; width: 1000px; height: 150px; overflow: hidden;'>
      <div data-u='slides' style='cursor: default; position: relative; top: 0px; left: 0px; width: 1000px; height: 150px; overflow: hidden;'>"
;
////////////// FreeTSP Query ///////////////////////
$freetsp sql_query("SELECT id, seeders, leechers, name, poster FROM torrents WHERE visible = 'yes' ORDER BY added DESC LIMIT 15") or sqlerr(__FILE____LINE__);
///////////////////////////////////////////////////
if (mysqli_num_rows($freetsp) > 0) {
    
  while (
$row mysqli_fetch_assoc($freetsp)) {
       
       
$id       = (int) $row['id'];
       
$name     htmlspecialchars($row['name']);
       
$poster   = ($row['poster'] == '' '/images/no_poster.png' htmlspecialchars$row['poster'] ));
       
$seeders  number_format($row['seeders']);
       
$leechers number_format($row['leechers']);
       
$name     str_replace('_','',$name);
       
$name     str_replace('.','',$name);
       
$name     substr($name050);       

  echo 
"<div class='smooth'>
        <a href=\"details.php?id="
.$row['id']."\" title=\"".$name."\" /><img class=\"img-thumbnail\" src=\"".$poster."\" width=\"100\" height=\"100\" title=\"".$name."\" border=0 /></a>&nbsp;&nbsp;&nbsp;
        <div class='go-left'>
         <div style='float: left;'>&nbsp;&nbsp;&nbsp;&nbsp;"
.$row['seeders']." Seed</div> &nbsp; <div style='float:right;'>".$row['leechers']." Leech</div>
        </div>
        </div>"
;
  }
}
echo 
"</div></div><span style='padding: 0.1em;'></span></div><script type='text/javascript'>jssor_1_slider_init();</script><br />";
//End of Lastest Torrents with Poster Slider [= 
exit();
?>
REQUIRES INSERTED INTO HEADER.PHP
Code:
 <script src="http://47.88.157.27/js/vendor/jssor.slider-21.1.6.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="http://47.88.157.27/js/vendor/jssor.slider.min.js"></script>
Attached Files
File Type: css slide.css (4.9 KB, 1 views)
File Type: css dark.css (53.7 KB, 0 views)

Last edited by BamBam0077; 9th March 2022 at 12:33.
Reply With Quote
The Following User Says Thank You to BamBam0077 For This Useful Post:
fireknight (12th March 2022)