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
[HACK] torrent pages added to index.php
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-03-04 00:24:17
This hack will add the other torrent pages to index.php as it is in torrents.php

open index.php

find:

begin_frame("Latest Torrents");
add below:


//Get Total For Pager

$res = mysql_query("SELECT COUNT(*) FROM torrents WHERE visible='yes'") or die(mysql_error());



$row = mysql_fetch_array($res);

$count = $row[0];





find:



if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<BR><BR><b><CENTER>You Are Not Logged In<br>Only Members Can View Torrents Please Login or Signup.</CENTER><BR><BR>";

} else {





change to:



if ($site_config["MEMBERSONLY"] && !$CURUSER) {

echo "<BR><BR><b><CENTER>You Are Not Logged In<br>Only Members Can View Torrents Please Login or Signup.</CENTER><BR><BR>";

} elseif ($count) {

list($pagertop, $pagerbottom, $limit) = pager(20, $count, "torrents.php?");





find:



if (mysql_num_rows($res)) {

torrenttable($res);





replace with:



if ($count) {

torrenttable($res);

print($pagerbottom);



thats it tested and working on V2.03

screen:

Unknown User
2008-03-07 19:02:01
a screen ?
Unknown User
2008-03-08 00:04:04
In the bottom  I have seen just this:

Quote:
1 - 1<< Prev      Next >>
Unknown User
2008-03-08 22:33:32
Thanks very good
Unknown User
2020-06-12 03:49:00
This hack will add the other torrent pages to index.php as it is in torrents.php

open index.php

find:

[php]
      begin_frame("Latest Torrents");
[/php]

add below:

[php]
      //Get Total For Pager
$res = SQL_Query_exec("SELECT COUNT(*) FROM torrents WHERE visible='yes'") ;
$row = mysql_fetch_array($res);
$count = $row[0];
[/php]

find:

[php]
if ($site_config["MEMBERSONLY"] && !$CURUSER) {
echo "<br /><br /><b><center>You Are Not Logged In<br>Only Members Can View Torrents Please Login or Signup.</center><br /><br />";
} else {
[/php]

change to:

[php]
if ($site_config["MEMBERSONLY"] && !$CURUSER) {
echo "<br /><br /><b><center>You Are Not Logged In<br>Only Members Can View Torrents Please Login or Signup.</center><br /><br />";
} elseif ( $count) {
list($pagertop, $pagerbottom, $limit) = pager(20, $count, "torrents.php?");
[/php]

find:

[php]
if (mysql_num_rows($res)) {
torrenttable($res);
[/php]

replace with:

[php]
if ($count) {
torrenttable($res);
print($pagerbottom);
[/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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728