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
Today's Torrents
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-02-04 21:15:36
[size=10px]Good evening to everyone,[/size]

[size=10px]
I just set up on my index mod Today's Torrents Corrected for v2.03![/size]


[size=10px]
I do share with you and other changes coming ...[/size]


[size=10px]
Vive sharing[/size]


[size=10px]Today's Torrents On the index.php:[/size]

//check permissions
if ($site_config["MEMBERSONLY"]){

loggedinonly();

if($CURUSER["view_torrents"]=="no")

show_error_msg("Error","You do not have permission to view torrents",1);

}

stdhead("Today's Torrents");

begin_frame("Torrents du Jour");

$date_time=get_date_time(gmtime()-(3600*24)); // the 24 is the hours you want listed

$catresult = mysql_query("SELECT id, name FROM categories ORDER BY sort_index");

while($cat = mysql_fetch_array($catresult))

{

$orderby = "ORDER BY torrents.id DESC"; //Order

$where = "WHERE banned = 'no' AND category='$cat[id]' AND visible='yes'";

//$limit = "LIMIT 10"; //Limit

$query = "SELECT torrents.id, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, categories.name AS cat_name, categories.parent_cat AS cat_parent, categories.image AS cat_pic, users.username, users.privacy FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where AND torrents.added>='$date_time' $orderby $limit";

$res = mysql_query($query);

$numtor = mysql_num_rows($res);

if ($numtor != 0) {

echo "<B><a href=torrents.php?cat=".$cat[id].">$cat[name]</a></B>";

list($pagertop, $pagerbottom, $limit) = pager(1000, $count, "torrents.php?" . $addparam); //adjust pager to match LIMIT

torrenttable($res);

echo "<BR>";

}

}

end_frame();

[size=10px]Preview image:[/size]

SNAG_0000.png
SNAG_0000.png
Unknown User
2008-04-24 23:10:53
I like it looks good thank you :)
Unknown User
2008-05-14 13:34:14
thank you :lol:
Unknown User
2009-02-23 16:23:16
Nice mod- How do u get the [+] signs next to the file name- does that show u extra detail about the file?

Thanks

Kardklub
Unknown User
2009-02-23 16:35:14
"kardklub, post: 54220":
Nice mod- How do u get the [+] signs next to the file name- does that show u extra detail about the file?
Thanks

Kardklub

the plus sign is part of the torrenttable whcih is used in this mod so when you install the mod it should show up the same way as it would on your browse page.
Unknown User
2009-02-23 21:10:13
"walker1977, post: 54222":
the plus sign is part of the torrenttable whcih is used in this mod so when you install the mod it should show up the same way as it would on your browse page.


Hmm i have TT2.05 in my browse page it isn't there either- is it a separate hack needed for the torrenttable.? sorry to be a pain Walker. and thanks for the response

Kardklub
Unknown User
2009-02-24 00:03:30
"kardklub, post: 54227":
Hmm i have TT2.05 in my browse page it isn't there either- is it a separate hack needed for the torrenttable.? sorry to be a pain Walker. and thanks for the response

Kardklub

it is in the standard V2.05 in the torrenttable

it is this part in your functions.php

//Expanding area

if (count($expandrows)) {

print("<tr><td class=ttable_col$x colspan=$colspan><div id=\"kt".$row['id']."\" style=\"margin-left: 70px; display: none;\">");

print("<table width=97% border=0 cellspacing=0 cellpadding=0>");

foreach ($expandrows as $expandrow) {

switch ($expandrow) {

case 'size':

print("<tr><td><B>".SIZE."</B>: ".mksize($row['size'])."</td></tr>");

break;

case 'speed':

if ($row["external"] != "yes" && $row["leechers"] >= 1){

$speedQ = mysql_query("SELECT (SUM(downloaded)) / (UNIX_TIMESTAMP('".get_date_time()."') - UNIX_TIMESTAMP(started)) AS totalspeed FROM peers WHERE seeder = 'no' AND torrent = '$id'ORDER BY started ASC") or die(mysql_error());

$a = mysql_fetch_assoc($speedQ);

$totalspeed = mksize($a["totalspeed"]) . "/s";

print("<tr><td><B>Speed:</B> $totalspeed</td></tr>");

}

break;

case 'added':

print("<tr><td><B>".DATE_ADDED.":</B> ".date("d-m-Y \\a\\t H:i:s", utc_to_tz_time($row['added']))."</td></tr>");

break;

case 'tracker':

if ($row["external"] == "yes")

print("<tr><td><B>".TRACKER.":</B> ".htmlspecialchars($row["announce"])."</td></tr>");

break;

case 'completed':

print("<tr><td><B>".COMPLETED."</B>: ".$row['times_completed']."</td></tr>");

break;

}

}

print("</table></div></td></tr>\n");

}

//End Expanding Area
looks like in config.php you need to add what you want to show in the line below.




$site_config["torrenttable_expand"] = "";



so i do not know if it is functional or not because i have not tested it yet.
Unknown User
2009-02-24 00:30:34
it's functional, just disabled by default.
Unknown User
2009-02-24 05:23:15
Thanks- Guy's I found it- Learning more stuff each day- Thanks for the support.

;)
Unknown User
2011-08-29 12:50:28
Hi Guys,

Does anyone knows how to display torrents on the index.php but in a more STRAIGHTEN WAY.  I mean to display the torrents so the COLUMNS are MORE aligned than what I have now.  I have attached a picture to explain better.  Unfortunately, this doesn't look to professional when columns are all over the place.  I even tried to shorten the # of caracters to be shown but nothing.

Thanx. Regards.

Straight_Column.jpg
Straight_Column.jpg
Unknown User
2011-08-29 13:34:27
prob have to use some kind of size % on the columes to keep them all the same size.

you would have to edit the torrenttable function in functions in thory
Unknown User
2011-08-29 13:44:06
"ArcticWolf, post: 74393":
prob have to use some kind of size % on the columes to keep them all the same size.you would have to edit the torrenttable function in functions in thory

Hi Articwolf,

Thanx for the Q.  At least we have something. I will wait for someone to try to post some code since I can't myself.

Cheers m8.
Unknown User
2011-08-29 17:35:24
its only wider to accomodate double figures in the seeder leecher columns , if it goes into the hundreds it will increase in size again , the only way you would keep these uniform surely is setting the size to the highest figure you would encounter,  this then would make the single figure ones look ridiculous

only my opinion mind :angry:
Unknown User
2011-08-29 21:28:55
Hi Guys,

I have attached my functions.php.  If anyone can sort something out, it would be really appreciated.  You would make my day and probably others too!  Everything are in details.

Thanx. Regards.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5148"]functions.php[/url]
functions.php
Download
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