Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Free Torrent Source > Mods & Themes
Reply
  #1  
Old 27th December 2009, 22:09
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Smile [FTS 1.1] Make last torrents on index Scrolling
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) != )
{


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>&nbsp;&nbsp;&nbsp;&nbsp;' $row['seeders'] . '</td>';
print
'<td align=left>&nbsp;&nbsp;&nbsp;&nbsp;' $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) != )
{
    
$i_count $i_done 0;
        echo 
'<table width=100%>
<tr>'
;
while( 
$t mysql_fetch_assoc($result) ) {

    if (
$i_count && $i_count == 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>&nbsp;&nbsp;&nbsp;&nbsp;' . $row['seeders'] . '</td>';
print'<td align=left>&nbsp;&nbsp;&nbsp;&nbsp;' . $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($name050);
                                                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')), ) ; 
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')), ) ; 
here you go m8



greetzz Edgein
Reply With Quote
The Following 4 Users Say Thank You to Edgein For This Useful Post:
Darkness (3rd January 2012), Fynnon (7th August 2011), nicukent (28th December 2009), Runny (27th January 2010)
  #2  
Old 28th December 2009, 01:04
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default
Awesome Edgein, thank you very much, Happy New Year:-)
Reply With Quote
  #3  
Old 27th January 2010, 16:25
Runny's Avatar
Runny Runny is offline
Member
 
Join Date: Jan 2010
Denmark
Posts: 11
Default
Just installed this on the 1.1 Bugfixed version. Works great. Thx.
Reply With Quote
  #4  
Old 26th February 2010, 03:51
OverNight OverNight is offline
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 16
Default
That's what I'm searching for, is possible to edit it for to use with xbtit?

Thanks
Reply With Quote
  #5  
Old 1st March 2010, 11:21
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
I think it is
but I have no experience with xbtit
ask again in the xbtit forum

sorry m8 i cant help you

grtzz Edgein
Reply With Quote
Reply

Tags
11 , fts , index , make , scrolling , torrents

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Index Naureenc Yuna Scatari Edition (YSE) 3 12th January 2010 01:28
[REQ]Scrolling Latest Images Of Torrent On Index GauravJ123 xBTiT 0 25th July 2009 12:25
Help me index scream21m Yuna Scatari Edition (YSE) 1 4th May 2009 13:12
Index kp380lv Yuna Scatari Edition (YSE) 4 16th July 2008 11:47



All times are GMT +2. The time now is 20:25. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.