Request off Yoligim
Find in Include/factory.php
PHP Code:
public function lastxtorrentsshow() {
global $showlastxtorrents;
if ($showlastxtorrents == "yes") {
//Start of Last X torrents mod
global $howmuchtorrents,$thowshow;
echo'<BR>';
collapses('lasttorrents',"<b>Last $howmuchtorrents Torrent Uploads</b>");
if($thowshow == 'text') {
$sql = "SELECT * FROM torrents where visible='yes' ORDER BY added DESC LIMIT $howmuchtorrents";
$result = sql_query($sql) or die('No torrents found');
if( mysql_num_rows($result) != 0 )
{
print'<table width=100% border=1 cellspacing=0 cellpadding=5>';
print'<tr class=thead>';
print"<td class=subheader><center><b>Name</b></center></td>";
print'<td class=subheader><center><b>Seeder</b></center></td>';
print'<td class=subheader><center><b>Leecher</b></center></td>';
print'</tr>';
while( $row = mysql_fetch_assoc($result) )
{
if(get_user_class() >= $arr["minclassread"]):
print'<tr>';
print'<a href="details.php?id=' . $row['id'] . '&hit=1"><td><a href="details.php?id=' . $row['id'] . '&hit=1"><b>' . $row['name'] . '</b></td></a>';
print'<td align=left> ' . $row['seeders'] . '</td>';
print'<td align=left> ' . $row['leechers'] . '</td>';
print'</tr>';
endif;
}
print'</table>';
}else echo'No torrents to show'; }
elseif($thowshow == 'withimg') {
$sql = "SELECT * FROM torrents where visible='yes' AND imageurl != '' ORDER BY added DESC LIMIT $howmuchtorrents";
$result = sql_query($sql) or die('No torrents found');
if( mysql_num_rows($result) != 0 )
{
$i_count = $i_done = 0;
echo '<table width=100%>
<tr>';
while( $t = mysql_fetch_assoc($result) ) {
if ($i_count > 0 && $i_count % 4 == 0)
{
echo '
</tr>
<tr>';
}
echo <<<eo
<td align="center" class="tcat">
<a href="$BASEURL/details.php?id=$t[id]"><img src="$t[imageurl]" width="125" height="125" alt="$t[name]" title="$t[name]"/></a>
</td>
eo;
$i_count++;
}
echo '</tr>';
print '</table>';
}else echo'No torrents to show';
}
collapsee();
}
//End of Last X torrents mod
And replace with
PHP Code:
public function lastxtorrentsshow() {
global $showlastxtorrents;
if ($showlastxtorrents == "yes") {
//Start of Last X torrents mod
global $howmuchtorrents,$thowshow;
echo'<BR>';
collapses('lasttorrents',"<b>Last $howmuchtorrents Torrent Uploads</b>");
if($thowshow == 'text') {
$sql = "SELECT * FROM torrents where visible='yes' ORDER BY added DESC LIMIT $howmuchtorrents";
$result = sql_query($sql) or die('No torrents found');
if( mysql_num_rows($result) != 0 )
{
print'<table width=100% border=1 cellspacing=0 cellpadding=5>';
print'<tr class=thead>';
print"<td class=subheader><center><b>Name</b></center></td>";
print'<td class=subheader><center><b>Seeder</b></center></td>';
print'<td class=subheader><center><b>Leecher</b></center></td>';
print'</tr>';
while( $row = mysql_fetch_assoc($result) )
{
if(get_user_class() >= $arr["minclassread"]):
print'<tr>';
print'<a href="details.php?id=' . $row['id'] . '&hit=1"><td><a href="details.php?id=' . $row['id'] . '&hit=1"><b>' . $row['name'] . '</b></td></a>';
print'<td align=left> ' . $row['seeders'] . '</td>';
print'<td align=left> ' . $row['leechers'] . '</td>';
print'</tr>';
endif;
}
print'</table>';
}else echo'No torrents to show'; }
elseif($thowshow == 'withimgscroll') {
//Start of Last X torrents with poster mod
$query="SELECT * FROM torrents where visible='yes' ORDER BY added DESC LIMIT $howmuchtorrents";
$result=mysql_query($query);
$num = mysql_num_rows($result); // count rows
?>
<table width="100%" align="center" class="bottom" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="embedded">
<table width="100%" align="center" class="bottom" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="embedded">
<table border="0" cellpadding="5" width="100%">
<tr>
<td>
<marquee scrollAmount="3" onMouseover="this.scrollAmount=0" onMouseout="this.scrollAmount=3" scrolldelay="0" direction="left">
<?php
while ($row = mysql_fetch_assoc($result))
{
if($row['imageurl'] != ""){
$id = $row['id'];
$name = $row['name'];
$poster = $row['imageurl'];
$name = str_replace('_', ' ' , $name);
$name = str_replace('.', ' ' , $name);
$name = substr($name, 0, 50);
echo "<a href=\"$BASEURL/details.php?id=$id\" title=\"$name\"><img src=".$row["imageurl"]." width=\"100\" height=\"142\" title=\"$name\" border=\"0\" /></a>";
}
}
//End of the mod
?>
</marquee>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
print("<br/>");
}
collapsee();
}
//End of Last X torrents mod
Then find in administrator/options.php
PHP Code:
tr( "Show Last x Torrents options", makehelp('L13').select('lastxto',array('yes' => 'Show','no' => 'Hide'),_value('lastxto'))."How many torrents to show: <input type='text' size='10' name=howmuchtorrents value='" . (_value('howmuchtorrents') ?
_value('howmuchtorrents') : $sh) .
"'>"." Show: ".select('thowshow',array("text" => "As text","withimg" => "With Image"),_value('thowshow')), 1 ) ;
and replace with
PHP Code:
tr( "Show Last x Torrents options", makehelp('L13').select('lastxto',array('yes' => 'Show','no' => 'Hide'),_value('lastxto'))."How many torrents to show: <input type='text' size='10' name=howmuchtorrents value='" . (_value('howmuchtorrents') ?
_value('howmuchtorrents') : $sh) .
"'>"." Show: ".select('thowshow',array("text" => "As text","withimgscroll" => "With Scrolling Image"),_value('thowshow')), 1 ) ;
here you go m8
greetzz Edgein