Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

shoutcast v2 ??? — 2019-11-24 19:01:42 in v3 Mods Requests
the TTv3 should work just fine with all hacks and mods with some minor editing. I have no way to test this mod or I would.
Images in RSS feed — 2019-11-24 02:04:47 in v3 Mods Completed
***** If you replaced your rss.php file with the one from the support forum, then you already have this mod https://www.torrenttrader.xyz/index.php?threads/valid-rss-file-ttv3.9924/#post-67690  ****
Replace rss.php with all code below. Backup your files first
This should work just fine in TTv3. It will post images in your RSS feed reader as long as you have an image to display. I posted this on the main site, and I just decided to grab it and post it here. Its just a silly hack. In case you need to know, its image1, and the descr for the plot. only if you add it tho
<?php
//
//  TorrentTrader v3.0
//   $LastChangedDate: 2018-09-01
//      $LastChangedBy: MicroMonkey

require_once("backend/functions.php");
dbconn();

if (isset($_GET["custom"])){
  stdhead(T_("CUSTOM_RSS_XML_FEED"));
  begin_frame(T_("CUSTOM_RSS_XML_FEED"));

  $rqt = "SELECT id, name, parent_cat FROM categories ORDER BY parent_cat ASC, sort_index ASC";
  $resqn = SQL_Query_exec($rqt);

  if ($_POST) {
     $params = array();

     if ($cats = $_POST["cats"]) {
        $catlist = array();
        foreach ($cats as $cat) {
           if (is_numeric($cat)) {
              $catlist[] = $cat;
           }
        }
        if ($catlist)
           $params[] = "cat=".implode(",", $catlist);
     }

     if ($_POST["incldead"])
        $params[] = "incldead=1";

     if ($_POST["dllink"])
        $params[] = "dllink=1";

     if (!$_POST["cookies"] && $CURUSER)
        $params[] = "passkey=$CURUSER[passkey]";

     if ($params)
        $param = "?".implode("&amp;", $params);
     else
        $param = "";

     echo "Your RSS link is: <a href=\"$site_config[SITEURL]/rss.php$param\">$site_config[SITEURL]/rss.php$param</a><br/><br/>";
  }
  ?>
  What is RSS? Take a look at the <a href="http://wikipedia.org/wiki/RSS_%28file_format%29"target= "blank">Wiki</a> to <a href="http://wikipedia.org/wiki/RSS_%28file_format%29"target= "blank">learn more</a>.<br /><br />

  <form action="rss.php?custom" method="post">
  <table border="0" cellpadding="5" cellspacing="0" class="table_table">
  <tr>
     <td class="table_col1" valign="top">Categories:</td>
     <td class="table_col2" valign="top">(Leave blank for All)<br /><br />
     <?php while ($row = mysqli_fetch_array($resqn)) {
        echo '<input type="checkbox" name="cats[]" value="'.$row['id'].'" /> '.htmlspecialchars("$row[parent_cat] - $row[name]").'<br />';
     }
     ?>
     </td>
  </tr>
  <tr>
     <td class="table_col1"><?php echo T_("FEED_TYPE");?>:</td>
     <td class="table_col2">
        <input type="radio" name="dllink" value="1" checked="checked" /> Download link<br />
        <input type="radio" name="dllink" value="0" /> Details link<br />
     </td>
  </tr>
  <tr>
     <td class="table_col1"><?php echo T_("LOGIN_TYPE");?>:</td>
     <td class="table_col2">
          <input type="radio" name="cookies" value="0" checked="checked" /> Alternative (Passkey)<br/>
<!--         <input type="radio" name="cookies" value="1"  /> Standard (cookies)<br/> -->

       </td>
  </tr>
  <tr>
     <td class="table_col1"><?php echo T_("INCLUDE_DEAD");?>:</td>
     <td class="table_col2"><input type="checkbox" name="incldead" value="1" /></td>
  </tr>
  <tr>
     <td colspan="2" align="center"><input type="submit" value="Get Link" /></td>
  </tr>
  </table>
  </form>
  <br /><br />
  <div align="left">
  Quick information regarding our RSS:
  <ul>
  <li>Our RSS feeds are properly validated by true RSS 2.0 XML Parsing Standards. Visit <a rel="prettyPhoto[iframes]" href="https://www.feedvalidator.org/check.cgi?url=<?php echo ''.$site_config["SITEURL"].'' ?>/rss.php?iframe=true" target= "blank">FeedValidator.org</a> to validate.</li>
  <li>Our feeds display only the latest 50 uploaded Torrents as default.</li>
  </ul>
  </div>
  <?php
  end_frame();
  stdfoot();
  die();
}

$cat = $_GET["cat"];
$dllink  = (int)$_GET["dllink"];

$passkey = $_GET["passkey"];
if (!get_row_count("users", "WHERE passkey=".sqlesc($passkey)))
  $passkey = "";


$where = "";
$wherea = array();
if (!$incldead) {
  $wherea[] = "visible='yes'";
}

if ($cat) {
  $cats = implode(", ", array_unique(array_map("intval", explode(",", ( string ) $cat))));
  $wherea[] = "category in ($cats)";
}

if (is_valid_id($_GET["user"])) {
  $wherea[] = "owner=$_GET[user]";
}

if ($wherea)
  $where = "WHERE ".implode(" AND ", $wherea);


$limit = "LIMIT 50";

// start the RSS feed output
header("Content-Type: application/rss+xml; charset=$site_config[CHARSET]");

echo("<?xml version='1.0' encoding='$site_config[CHARSET]'?>");
echo("<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'><channel><generator>" . htmlspecialchars($site_config["SITENAME"]) . " RSS 2.0</generator><language>en</language>" .
"<title>" . $site_config["SITENAME"] . "</title><description>" . htmlspecialchars($site_config["SITENAME"]) . " RSS Feed</description><link>" . $site_config["SITEURL"] . "</link><copyright>Copyright " . htmlspecialchars($site_config["SITENAME"]) . "</copyright><pubDate>".date("r")."</pubDate>");

$res = SQL_Query_exec("SELECT torrents.image1, torrents.id, torrents.name, torrents.size, torrents.category, torrents.added, torrents.leechers, torrents.seeders, categories.parent_cat as cat_parent, categories.name AS cat_name FROM torrents LEFT JOIN categories ON category = categories.id $where ORDER BY added DESC $limit");
?>
<atom:link href='<?php echo ''.$site_config["SITEURL"].'' ?>/rss.php' rel='self' type='application/rss+xml' />
<?php
while ($row = mysqli_fetch_array ($res)){
  list($image1,$id,$name,$size,$category,$added,$leechers,$seeders,$catname) = $row;

  if ($dllink) {
     if ($passkey)
        $link = "$site_config[SITEURL]/download.php?id=$id&amp;passkey=$passkey";
     else
        $link = "$site_config[SITEURL]/download.php?id=$id";
  } else {
     $link = $site_config["SITEURL"]."/torrents-details.php?id=$id&amp;hit=1";
  }

  $pubdate = date("r", sql_timestamp_to_unix_timestamp($added));

  echo("<item><title>" . htmlspecialchars($name) . "</title><guid>" . $link . "</guid><link>" . $link . "</link><pubDate>" . $pubdate . "</pubDate><category> " . $row["cat_parent"] . ": " . $row["cat_name"] . "</category><description> Category: " . $row["cat_parent"] . ": " . $row["cat_name"] . "  Size: " . mksize($size) . " Added: " . $added . " Seeders: " . $seeders . " Leechers: " . $leechers . "<![CDATA[<br/>]]><![CDATA[<img src=/uploads/images/".$image1.">]]></description></item>");
}
echo("</channel></rss>");
?>


image below using feedly RSS
[ATTACH type="full"]5257[/ATTACH]
dont use short tags lol
<?php if ($CURUSER){ ?>
NFO fix [TTv3] — 2019-11-23 23:32:50 in v3 Mods Completed
No, you edited your directory paths. I said that a few posts ago. That is not standard. If you are going to alter your directories for whatever reason (dont know why you would) you will have a hard time using mods unless you really know what you are looking for. This is the original directory in nfo-view.php. Stop changing things for no reason, you will be happier for it. Feel free to customize your code all you like, but dont expect anyone here to be able to help as it is not possible on custom code :)
    include("backend/nfo2png.php");
   include("backend/config.php");
shoutcast v2 ??? — 2019-11-23 20:31:00 in v3 Mods Requests
what does it need to work? Im not familiar with this mod and never used it. Here are all the files with the php tags fixed, but other than that, I dont know what else to do to it since I never used it
when you upload a torrent, you have to add the full url of the imdb, not just the imdb ID number. That line of code just prints what you have entered, so if its only displaying the tt7376492 number, then that was all you entered, unless you did some other modifications that I dont know about. This line just echos data you have entered
<b><?php echo T_("IMDB_LINK"); ?></b><br /> <a href="<?php echo $row['imdb']; ?>" target="_blank"><?php echo htmlspecialchars($row['imdb']); ?></a><br /><br />
in shoutbox.php I have, but I dont know what you are using for a shoutbox, it looks like the ajax one. Im not using this mod, Im just posting up some code that displays an avatar for system or userid 0
/////Avatar shit
$ol3 = mysqli_fetch_array(SQL_Query_exec("SELECT avatar FROM users WHERE id=".$row["userid"]));
$av=$ol3['avatar'];
if(!empty($av)){
$av="<img src='".$ol3[avatar]."' alt='my_avatar' width='27' height='27'>";
}else{
$av="<img src='images/default_avatar.png' alt='my_avatar' width='27' height='27'>";
}
if($row['userid']==0){
$av="<img src='images/0_avatar.png' alt='0_avatar' width='27' height='27'>";
}
mysqli_free_result($ol3);
/////Close avatar shit
NFO fix [TTv3] — 2019-11-18 23:57:57 in v3 Mods Completed
My test site runs like this normally. I run this in terminal
sudo chown -R www-data:www-data /var/www/my_site_folder

If I need to edit files on the server, I run this in terminal
sudo chown -R $USER:www-data /var/www/my_site_folder


But I dont suspect this is the problem with your NFO file. You modified your directories from the standard structure. Check the files for this mod and make changes there also
NFO fix [TTv3] — 2019-11-17 20:09:52 in v3 Mods Completed
I dont see anything wrong. Are you sure you uploaded nfo-view.php to your root directory? You have your directories all complicated.
require_once($_SERVER["DOCUMENT_ROOT"]."/backend/functions/functions.php");
require_once($_SERVER["DOCUMENT_ROOT"]."/backend/functions/BDecode.php");
NFO fix [TTv3] — 2019-11-17 17:52:24 in v3 Mods Completed
you messed up your edits. recheck your edits, or post your torrents-details.php file
can you post an english version for others to try? Thanks for sharing :)
try what I posted in that thread
Mod TMDB — 2019-11-10 17:11:12 in v3 Mods Requests
perhaps spiritblue can help. He is french I believe and may possibly be of some assistance. You may also see if the OMDB/IMDb mod will work for you, but it is not in the french language, you would have to edit your files https://www.torrenttrader.xyz/index.php?threads/imdb-mod-ttv3.9734/
[SOLVED] small bug faq... — 2019-11-10 16:28:10 in v3 Support
I updated the github with this change
[SOLVED] small bug faq... — 2019-11-09 20:11:55 in v3 Support
Change to MYSQLI_BOTH. I guess I missed that one haha
I fixed most of those, but im sure there are a few that I missed since I have no way to 100% test the whole script since I have no live site to find these errors as they pop up.
you got it. Thats how you fix that
delete this line near or at the bottom of your config.php
die("You didn't edit your config correctly."); // You MUST remove this line
endif should work just fine. I just assumed you needed them changed to a brace, which is what I did. Perhaps you have too many endif; or the code is misplaced. try downloading the old version I converted in the post above and check out that code. It worked perfectly when I quit using it
Thats a bummer dude, it was looking very good
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728