Members   Search      Help    Register    Login    Home
Home » Support Forums for PMBT 2.X » Feature Request for 2.X » Lastest torrent ;D
Lastest torrent ;D [message #2715] Sun, 07 June 2009 17:48 Go to next message
movizdb is currently offline movizdb  Madagascar
Messages: 5
Registered: December 2008
Leecher
Hi i'm starting an french Open Tracker with PMBT cauz when i tested it i've seen thats the best source for That Very Happy
After i searched lastest torrent mod but it doesnt have that
So Can someone Make it Please Thanks Very Happy
Re: Lastest torrent ;D [message #2722 is a reply to message #2715] Mon, 08 June 2009 03:19 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
OpenTable("last 10 uploads");
        $sql = "SELECT ".$db_prefix."_torrents.*, IF(".$db_prefix."_torrents.numratings < '".$minvotes."', NULL, ROUND(".$db_prefix."_torrents.ratingsum / ".$db_prefix."_torrents.numratings, 1)) AS rating, ".$db_prefix."_categories.name AS cat_name, ".$db_prefix."_categories.image AS cat_pic, U.username, IF(U.name IS NULL, U.username, U.name) as user_name, U.level as user_level FROM ".$db_prefix."_torrents LEFT JOIN ".$db_prefix."_categories ON category = ".$db_prefix."_categories.id LEFT JOIN ".$db_prefix."_users U ON ".$db_prefix."_torrents.owner = U.id WHERE banned = 'no' AND ".$db_prefix."_torrents.password IS NULL ORDER BY ".$db_prefix."_torrents.added DESC LIMIT 10;";
        $res = $db->sql_query($sql) or btsqlerror($sql);
        if ($db->sql_numrows($res) > 0) {
                torrenttable($res,"usertorrent");
        } else {
                OpenTable2();
                echo "<h3>"._btnotorrents."</h3>";
                CloseTable2();
        }
CloseTable();


http://a.imageshack.us/img831/5562/mybikes.png
Re: Lastest torrent ;D [message #2729 is a reply to message #2715] Mon, 08 June 2009 17:28 Go to previous messageGo to next message
movizdb is currently offline movizdb  Madagascar
Messages: 5
Registered: December 2008
Leecher
Thanks a lot and can you please make it per catégories and last 20torrent per categories

[Updated on: Mon, 08 June 2009 17:31]

Report message to a moderator

Re: Lastest torrent ;D [message #2730 is a reply to message #2729] Tue, 09 June 2009 01:23 Go to previous messageGo to next message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
no

http://a.imageshack.us/img831/5562/mybikes.png
Re: Lastest torrent ;D [message #2901 is a reply to message #2729] Mon, 31 August 2009 23:20 Go to previous message
joeroberts is currently offline joeroberts  United States
Messages: 1971
Registered: June 2006
Location: U.S.A
Releaser
Da HacKer
			$rq = "SELECT id, name FROM ".$db_prefix."_categories ORDER BY name";
			$res1 = $db->sql_query($rq);
			while ($row = $db->sql_fetchrow($res1))
			{
			extract ($row);
OpenTable("last 10 uploads From Category ".$name."");
        $sql = "SELECT ".$db_prefix."_torrents.*, IF(".$db_prefix."_torrents.numratings < '".$minvotes."', NULL, ROUND(".$db_prefix."_torrents.ratingsum / ".$db_prefix."_torrents.numratings, 1)) AS rating, ".$db_prefix."_categories.name AS cat_name, ".$db_prefix."_categories.image AS cat_pic, U.username, IF(U.name IS NULL, U.username, U.name) as user_name, U.level as user_level FROM ".$db_prefix."_torrents LEFT JOIN ".$db_prefix."_categories ON category = ".$db_prefix."_categories.id LEFT JOIN ".$db_prefix."_users U ON ".$db_prefix."_torrents.owner = U.id WHERE ".$db_prefix."_torrents.category = '".$id."' AND banned = 'no' AND ".$db_prefix."_torrents.password IS NULL ORDER BY ".$db_prefix."_torrents.added DESC LIMIT 10;";
        $res = $db->sql_query($sql) or btsqlerror($sql);
        if ($db->sql_numrows($res) > 0) {
                torrenttable($res,"usertorrent");
        } else {
                OpenTable2();
                echo "<h3>"._btnotorrents."</h3>";
                CloseTable2();
        }
CloseTable();
			}
        $db->sql_freeresult($res1);



http://a.imageshack.us/img831/5562/mybikes.png

[Updated on: Thu, 10 September 2009 20:47]

Report message to a moderator

Previous Topic:torrent pics scroller
Next Topic:new categories blocks
Goto Forum:
  


Current Time: Wed Feb 08 11:52:02 GMT 2012

Total time taken to generate the page: 0.00741 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software