Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   FreeTSP (http://www.bvlist.com/forumdisplay.php?f=120)
-   -   [mod] Lastest Torrents with Poster Slider (http://www.bvlist.com/showthread.php?t=12499)

BamBam0077 9th March 2022 08:39

[mod add-on] Lastest Torrents with Poster Slider
 
2 Attachment(s)
https://images2.imgbox.com/e1/08/mUc6dIHq_o.png

https://images2.imgbox.com/98/c0/ICo8G7i6_o.jpeg

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>";
//End of Lastest Torrents with Poster Slider [= 
exit();
?>

REQUIRES INSERTED INTO HEADER.PHP
Code:


       


MasterMan 10th March 2022 03:15

i know whcchu gonna say dude "where are they coming from??" or "who are these people??"


but i wanna ask you if you could make a similar addon for just poster slider without torrents if you can :P


like wordpress Slider Revolution style for posters slider :)


cheers,

fireknight 12th March 2022 10:12

Quote:

Originally Posted by MasterMan (Post 56150)
i know whcchu gonna say dude "where are they coming from??" or "who are these people??"


but i wanna ask you if you could make a similar addon for just poster slider without torrents if you can :P


like wordpress Slider Revolution style for posters slider :)


cheers,


If you want a slider code for word press , then go ask on their forums.
This a torrent site code, totally different,

EDIT


Not to mention this code is for FreeTSP V1 - so quite old and out of date.

Elena 12th March 2022 11:22

PHP Code:

$content .= "<table border='0' cellspacing='0' cellpadding='1' width='100%'><td>

<marquee scrollamount='3' scrolldelay='100'>"
;

if(
$num 0){for($i 0$i $num; ++$i){

while(
$row mysql_fetch_assoc($res)){

$content .= "<a href='details_".$row['id']."' alt='".$row['name']."'><img src='torrents/images_smals/".$row['image1']."' height='70' alt='".$row['name']."' border='0'/></a>&nbsp;";

}}}

$content .= "</marquee></td></table>"


MasterMan 12th March 2022 14:30

Quote:

Originally Posted by Elena (Post 56162)
PHP Code:

$content .= "<table border='0' cellspacing='0' cellpadding='1' width='100%'><td><marquee scrollamount='3' scrolldelay='100'>";if($num 0){for($i 0$i $num; ++$i){while($row mysql_fetch_assoc($res)){$content .= "<a href='details_".$row['id']."' alt='".$row['name']."'><img src='torrents/images_smals/".$row['image1']."' height='70' alt='".$row['name']."' border='0'/></a>&nbsp;";}}}$content .= "</marquee></td></table>"



you're tha maaaaan m8 :ok:

fireknight 13th March 2022 11:12

Code:

marquee



is old and out of date, and will not work with up to date php


Bump: Deleted from php 2014 t0 2016



https://stackoverflow.com/questions/...st-alternative


All times are GMT +2. The time now is 21:34.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.