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

Here is a simple announce system

tcl script:

		  set rss(XXX) {
"url"                        "your rss feed url"

"channels"                "your channels"

"database"                "./scripts/xxx.db"

"output"      "7[\002your Site name\002] 4@@item!title@@ - 7[\002Kategorie\002]4@@item!category@@ 7announce by XXX"

"trigger"                "!your trigger"

}

example:

		  set rss(Anime) {
"url"                        "http://a-f-t.info/rss.php?cat=1"

"channels"                "#anime-fansubs #edotopia #nazcasubs #lolisubs #chiyoko-subs #dns #inko #shiroi-fansubs #Lazy-Subs"

"database"                "./scripts/anime-new-euirc.db"

"output"      "7[\002A-F-T\002] 4@@item!title@@ - 7[\002Kategorie\002]4@@item!category@@ 7announce von a-f-t.info"

"trigger"                "!anime"

}



clean rss feed:

Rss Feed
Rss-Feed — 2010-11-28 12:33:43 in v2 Only Mods Complete
Here is a tidy RSS-Feed

Sample: [url="http://anisaishuu.de/rss.php"]AniSaishuu RSS-Feed[/url]

<?php 

//

//  TorrentTrader v2.x

// This file was last updated: 20/July/2007

//

// http://www.torrenttrader.org

//

//

//  Vars $cat = category id, $num = number to extract

//

//

// Validated at: http://feedvalidator.org

//

// RSS-FEED Modify by AniSaishuu

//

// http://anisaishuu.de/

require_once("backend/functions.php");

dbconn(false);



if ($custom){

stdhead("Custom RSS XML Feed");

begin_frame("Custom RSS XML Feed");



$rqt = "SELECT id, name, parent_cat FROM categories ORDER BY sort_index, id";

$resqt = mysql_query($rqt);

$resqn = mysql_query($rqt);



?>

What is RSS? Take a look at the <a href="http://wikipedia.org/wiki/RSS_%28file_format%29">Wiki</a> to <a href="http://wikipedia.org/wiki/RSS_%28file_format%29">learn more</a>.<br><br>



<table border=1 cellpadding=0 cellspacing=0 width=95% class=table_table>

<tr>

<td class=table_head>Link To</td><td class=table_head>Category</td>

</tr>

<tr>

<td class=table_col1><a href="<? echo "$site_config[SITEURL]/rss.php";?>"><? echo "$site_config[SITEURL]/rss.php";?></a></td><td class=table_col2 align=left>&nbsp;<b>All</b></td>

</tr>

<?

while ($row = mysql_fetch_array($resqn)) {

extract ($row);

echo "<tr><td class=table_col1><a href=\"$site_config[SITEURL]/rss.php?cat=$id\">$site_config[SITEURL]/rss.php?cat=$id</td><td class=table_col2 align=left>&nbsp;<b>$parent_cat > $name</b></td></tr>\n";

}

?>

</table>

<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 FeedValidator.org to validate.</li><BR>

<li>Our feeds can display those items specifically by category ID. These too are limited to 15 results as default.<BR>EG: <a href=rss.php?cat=1>rss.php?cat=1</a> will show last 15 torrents from category id 1</li><BR>

<li>Our feeds display only the latest 15 uploaded Torrents as default.</li><BR>

<li>Our feed can be modified to give more results, up to a maximum of 50 items<BR>EG: <a href=rss.php?cat=1&num=50>rss.php?cat=1&num=50</a> will show last 50 torrents from category id 1</li>

</ul>

</div>

<?

end_frame();

stdfoot();

die();

}



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

$num = (int)$_GET["num"];



// by category ?

if (!$cat){

$catvar ="WHERE visible='yes'";  //just show last visible

}else{

$catvar ="WHERE categories.id ='$cat' AND visible='yes'";

}



if (!$num){

$limit ="LIMIT 15";  //just show last 15 visible

}else{

if ($num < 50){ //if num is less than 50

$limit ="LIMIT $num";

}else{

$limit ="LIMIT 50";

}

}





// start the RSS feed output

header("Content-Type: application/xml");

echo("<?xml version=\"1.0\" encoding=\"utf-8\"?>

<rss version=\"2.0\">

<channel>

<generator>" . $site_config["SITENAME"] . " RSS 2.0</generator>

<language>en</language>

<title>" . $site_config["SITENAME"] . "</title>

<description>" . $site_config["SITENAME"] . " RSS Feed". ucfirst($cat)." Display</description>

<link>" . $site_config["SITEURL"] . "</link>

<copyright>Copyright " . $site_config["SITENAME"] . "</copyright>

<pubDate>".date("r")."</pubDate>");



$res = mysql_query("SELECT torrents.id, torrents.name, torrents.size, torrents.category, torrents.added, categories.name AS cat_name, owner FROM torrents LEFT JOIN categories ON category = categories.id $catvar ORDER BY added DESC $limit");



while ($row = mysql_fetch_row($res)){

list($id,$name,$size,$category,$added,$catname,$owner) = $row;



$link = "".$site_config["SITEURL"]."/torrents-details.php?id=$id&amp;hit=1";



$cres = mysql_query("SELECT name, parent_cat FROM categories WHERE id = '$category'");

$b = mysql_fetch_assoc($cres);



$cres = mysql_query("SELECT username FROM users WHERE id = '$owner'");

$u = mysql_fetch_assoc($cres);



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





echo ("

<item>

<title>" . htmlspecialchars($name) . "</title>

<guid>" . $link . "</guid>

<link>" . $link . "</link>

<pubDate>" . date("r", strtotime($added)) . "</pubDate>  

<description type=\"html\"><![CDATA[<strong>Category</strong>: " . $b["parent_cat"] . ": " . $b["name"] . "<br><strong>Size</strong>: " . mksize($size) . "<br><strong>Added</strong>: " . $added . "<br><strong>Uploader</strong>: <a href=\"http://anisaishuu.de/account-details.php?id=" . $owner . "\" target=\"_blank\">" . $u["username"] . "</a>]]></description>

</item>");

}





echo("

</channel>

</rss>");
"XxBeliaLxX, post: 63349":
this is fixed for IE ????

No, IE shifts the pictures on the left in.

"Tengo, post: 62752":
1st upload the files to your root directory (attactment)

2nd add this in index.php

find

//Site Notice

if ($site_config['SITENOTICEON']){

begin_frame("" . NOTICE . "");

echo stripslashes($site_config['SITENOTICE']);

end_frame();

}




add after:






edit!!!

Quote:
[url="/uploads/images/"]http://YOUR_URL/uploads/images/[/url]
[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4077"]raging.rar[/url]

{

begin_frame("New Torrents");

echo '<IFRAME name="new_torrents" src="'.$site_config["SITEURL"].'/imageflow.php" frameborder="0" marginheight="0" marginwidth="0" width="99%" height="260" width=350 scrolling="no" align="middle"></IFRAME>';



end_frame();

}





In the imageflow.php



find:



  ?>

<img src=http://mentaldesign.ismywebsite.com/beta/TorrentTrader//uploads/images/<?=$row["image1"] ?> width=115 border=0"  longdesc="torrents-details.php?id=<?=$row["id"]?>" alt="<br><br><?=$row["name"]?> <br /><font color=green><?=$row["seeders"]?> Seeders </font>/ <font color=red><?=$row["leechers"]?> Leechers</font> <br> &nbsp;&nbsp;&nbsp;&nbsp;<font color=black><?=mksize($row["size"])?>" />

 <?php





replace with:



  ?>

<img src=http://YOUR_URL/uploads/images/<?=$row["image1"] ?> width=115 border=0"  longdesc="torrents-details.php?id=<?=$row["id"];?>" alt="<br><br><?=$row["name"];?> <br /><font color=green><?=$row["seeders"];?> Seeders </font>/ <font color=red><?=$row["leechers"];?> Leechers</font> <br> &nbsp;&nbsp;&nbsp;&nbsp;<font color=black><?=mksize($row["size"]);?>" />

 <?php
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