Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=117)
-   -   [TSSE 5.6] Show Torrents added by day (http://www.bvlist.com/showthread.php?t=5463)

mmisu120000 6th October 2010 09:15

[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!

lateam 6th October 2010 10:20

http://lateam.cc/gallery/Capture-23.png

good
thank:drink:

Marco 6th October 2010 10:58

nice job
 
:friend:works charm thx mmisu ;)

nikosuk 11th October 2010 16:51

nice work
 
works perfectly !!
nice work
thank you

PAX 20th March 2012 09:04

simple, functional mod , works 100%. thanks, I recommend to all :drink:

Metalmania 18th April 2012 10:12

Nice mod and simple, works 100 % :friend:

vulongvy 20th April 2012 14:00

nice mod !
thanks for share ! :friend:

Tones 10th July 2012 19:07

nice one!!
 
thx man great job!!:drink:


All times are GMT +2. The time now is 22:12.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.