Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > FreeTSP
Reply
  #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)
  #2  
Old 10th March 2022, 03:15
MasterMan MasterMan is online now
Senior Member
 
Join Date: Jan 2012
P2P
Posts: 141
Default
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,
Reply With Quote
  #3  
Old 12th March 2022, 10:12
fireknight's Avatar
fireknight fireknight is offline
Administrator
 
Join Date: Aug 2010
Australia
Posts: 173
Default
Quote:
Originally Posted by MasterMan View Post
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.
Reply With Quote
The Following User Says Thank You to fireknight For This Useful Post:
papad (5th April 2022)
  #4  
Old 12th March 2022, 11:22
Elena Elena is offline
Senior Member
 
Join Date: Sep 2010
P2P
Posts: 111
Thumbs up
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>"
Reply With Quote
The Following User Says Thank You to Elena For This Useful Post:
MasterMan (12th March 2022)
  #5  
Old 12th March 2022, 14:30
MasterMan MasterMan is online now
Senior Member
 
Join Date: Jan 2012
P2P
Posts: 141
Default
Quote:
Originally Posted by Elena View Post
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
Reply With Quote
  #6  
Old 13th March 2022, 11:12
fireknight's Avatar
fireknight fireknight is offline
Administrator
 
Join Date: Aug 2010
Australia
Posts: 173
Default
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

Last edited by fireknight; 13th March 2022 at 11:25.
Reply With Quote
Reply

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 23:41. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.