View Single Post
  #1  
Old 6th October 2010, 09:15
mmisu120000's Avatar
mmisu120000 mmisu120000 is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 202
Default [TSSE 5.6] Show Torrents added by day
I've made a mod based on an old tbdev one, wich will separate by a row the torrents added each day.

Here it it what you should do:

in TSSE 5.6 - browse.php, find
PHP Code:
        $contentmiddle .= '
        <tr'
.($torrents['sticky'] == 'yes' ' class="sticky"' '').'> 
replace it with:
PHP Code:
/** 
 * @author mmisu120000
 * @copyright 2010
 * @mod name Show torrents by day
 * @version v1.1
 */

/** Make some date varibles **/
$day_added $torrents['added'];
$day_show strtotime($day_added);
$thisdate date('Y-m-d',$day_show);

/** If date already exist, disable $cleandate varible **/
if($thisdate==$prevdate){
$cleandate '';

/** If date does not exist, make some varibles **/
}else{
$day_added 'Torrents added '.my_datee($dateformat$torrents['added']); // You can change this to something else
$cleandate "<tr><td align = 'center' style='background-color: #999999; color: black;' colspan=15><b>$day_added</b></td></tr>\n"// This also...
}
/** Prevent that "torrents added..." wont appear again with the same date **/
$prevdate $thisdate;

/** If torrents not listed by added date **/

if ($torrents["sticky"] == "no")
if(!
$_GET['sort'] && !$_GET['d']){
   
$zzzzzz $cleandate;
}
        
$contentmiddle .= $zzzzzz '
        <tr'
.($torrents['sticky'] == 'yes' ' class="sticky"' '').'> 
This should do the trick ...

Enjoy!
__________________
"How terrible is wisdom when it holds no benefit for the wise?" - Louis Cypher
WDW Tracker - Using heavy modified TSSE
Reply With Quote
The Following 13 Users Say Thank You to mmisu120000 For This Useful Post:
aMiGo1972 (14th December 2012), BEST (6th October 2010), Botanicar (27th July 2013), FENIX (26th April 2013), kira (3rd March 2012), lafouine022 (22nd October 2010), Marco (6th October 2010), Metalmania (18th April 2012), PAX (6th August 2011), peiratikos (11th November 2011), Titya (24th March 2011), Tones (1st November 2012), vulongvy (20th April 2012)