Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   change color of pre-time in browse page (http://www.bvlist.com/showthread.php?t=5948)

firefly007 25th January 2011 14:24

change color of pre-time in browse page
 
Can some one direct me to how I change the pre-time time from black to another color.

I would like some direction on where I would find this...

thanks

lafouine022 25th January 2011 14:39

line 684

remplace

PHP Code:

$TorrentAdded '&nbsp;<b>'.$lang->global['added'].':</b> '.my_datee($dateformat$torrents['added']).' '.my_datee($timeformat$torrents['added']).($ShowImdb '&nbsp;'.$IMDBRating['image'].' '.$IMDBRating['rating'] : ''); 

by

PHP Code:

$TorrentAdded '&nbsp;<b><font color=red>'.$lang->global['added'].':</b> '.my_datee($dateformat$torrents['added']).' '.my_datee($timeformat$torrents['added']).($ShowImdb '</font>&nbsp;'.$IMDBRating['image'].' '.$IMDBRating['rating'] : ''); 

this code
color in red ;)

firefly007 25th January 2011 19:37

thanks
 
thank for your help

but I need to change
Quote:

Hours, 26 Minutes, 30 Seconds
from black to any other color...

thank you again

lafouine022 26th January 2011 00:34

post your browse page please :wild:

firefly007 26th January 2011 02:10

browse.php
 
Quote:


';
}

$contentmiddle .= ($is_mod ? '





/*
************************************************
*=============[WDW Tracker v.5.6]=============*
************************************************
* Special Thanks To *
* DrNet - wWw.SpecialCoders.CoM *
* Vinson - wWw.Decode4u.CoM *
* MrDecoder - wWw.Fearless-Releases.CoM *
* Fynnon - wWw.BvList.CoM *
*==============================================*
* Note: Don't Modify Or Delete This Credit *
* Next Target: WDW Tracker v5.7 *
* TS SE WILL BE ALWAYS FREE SOFTWARE ! *
************************************************
*/
require_once('global.php');
gzip();
dbconn(true);
maxsysop();
define('B_VERSION', '4.6.3');

if ($MEMBERSONLY == 'yes')
{
loggedinorreturn();
parked();
}

$lang->load('browse');
$is_mod = is_mod($usergroups);
$special_search = (isset($_GET['special_search']) ? trim($_GET['special_search']) : '');
$do = isset($_POST['do']) ? $_POST['do'] : (isset($_GET['do']) ? $_GET['do'] : '');
$quick_search = isset($_POST['quick_search']) ? trim($_POST['quick_search']) : (isset($_GET['quick_search']) ? trim($_GET['quick_search']) : '');
$search_type = $javaalert = $from = '';
$pagelinks = array();
$showvisible = true;
$is_bookmark_page = false;
$UseQuickMenu = preg_match('#P1#is', $CURUSER['options']);

if (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST' AND $is_mod AND !empty($_POST['tid']))
{
if (($tid = intval($_POST['tid'])) AND is_valid_id($tid) AND ($torrent = trim($_POST['subject'])) AND !empty($torrent))
{
$torrent = unesc($torrent);
$torrent = str_replace('_', ' ', $torrent);
sql_query("UPDATE torrents SET name = ".sqlesc($torrent)." WHERE id = ".sqlesc($tid));
}
}

if ($special_search == 'myreseeds')
{
$extraqueries = " AND t.seeders = 0 AND t.leechers > 0 AND t.owner = ".sqlesc($CURUSER['id']);
$pagelinks[] = "special_search=myreseeds";
$sqfield = "&special_search=myreseeds";
$showvisible = false;
}
elseif ($special_search == 'mybookmarks')
{
$from = 'FROM bookmarks b LEFT JOIN torrents t ON (b.torrentid = t.id)';
$extraqueries = " AND b.userid = ".sqlesc($CURUSER['id']);
$pagelinks[] = "special_search=mybookmarks";
$sqfield = "&special_search=mybookmarks";
$showvisible = false;
$is_bookmark_page = true;
}
elseif ($special_search == 'mytorrents')
{
$extraqueries = " AND t.owner = ".sqlesc($CURUSER['id']);
$pagelinks[] = "special_search=mytorrents";
$sqfield = "&special_search=mytorrents";
$showvisible = false;
}
elseif ($special_search == 'weaktorrents')
{
$extraqueries = " AND t.visible = 'no' OR (t.leechers > 0 AND t.seeders = 0) OR (t.leechers = 0 AND t.seeders = 0)";
$pagelinks[] = "special_search=weaktorrents";
$sqfield = "&special_search=weaktorrents";
$showvisible = false;
$lang->browse['btitle'] = $lang->global['weaktorrents'];
}
elseif ($do == 'search')
{
$extraquery = array();
$keywords = isset($_POST['keywords']) ? $_POST['keywords'] : (isset($_GET['keywords']) ? $_GET['keywords'] : '');
if ($_GET['tags'] AND $_GET['tags'] == 'true' AND !empty($keywords))
{
$keywords = urldecode($keywords);
}
elseif (!empty($keywords))
{
$keywords = trim($keywords);
}
$category = isset($_POST['category']) ? intval($_POST['category']) : (isset($_GET['category']) ? intval($_GET['category']) : 0);
$search_type = isset($_POST['search_type']) ? trim($_POST['search_type']) : (isset($_GET['search_type']) ? trim($_GET['search_type']) : '');

$query = sql_query("SHOW VARIABLES LIKE 'ft_min_word_len';");
$array = mysql_fetch_assoc($query);
$min_length = $array['Value'];
if(is_numeric($min_length))
{
$minsearchword = $min_length;
}
else
{
$minsearchword = 3;
}

if (strlen($keywords) >= $minsearchword && !empty($search_type))
{
switch ($search_type)
{
case 't_name':
$extraquery[] = "(MATCH (t.name) AGAINST ('".mysql_real_escape_string($keywords)."*' IN BOOLEAN MODE))";
break;
case 't_description':
$extraquery[] = "(MATCH (t.descr) AGAINST ('".mysql_real_escape_string($keywords)."*' IN BOOLEAN MODE))";
break;
case 't_both':
$extraquery[] = "(MATCH (t.name,t.descr) AGAINST ('".mysql_real_escape_string($keywords)."*' IN BOOLEAN MODE))";
break;
case 't_uploader':
$query = sql_query("SELECT id FROM users WHERE username = ".sqlesc($keywords)." LIMIT 1");
if (mysql_num_rows($query) > 0)
{
$user = mysql_fetch_assoc($query);
$extraquery[] = "t.owner = ".sqlesc($user['id']).(!$is_mod ? " AND t.anonymous != 'yes'" : "");
}
else
$extraquery[] = "t.owner = ".sqlesc($keywords);
break;
case 't_genre':
$extraquery[] = "(MATCH (t.t_link) AGAINST ('".mysql_real_escape_string($keywords)."*' IN BOOLEAN MODE))";
break;
}
}
else
{
$javaalert = '

';
}
if (is_valid_id($category) && $category > 0)
{
$extraquery[] = "t.category = ".$category;
}
if (count($extraquery) > 0)
{
$extraqueries = ' AND ';
$extraqueries .= implode(' AND ', $extraquery);
$pagelinks[] = 'do=search';
$pagelinks[] = 'keywords='.urlencode(htmlspecialchars_uni($keywor ds));
$pagelinks[] = 'category='.$category;
$pagelinks[] = 'search_type='.urlencode(htmlspecialchars_uni($sea rch_type));
$showvisible = false;
}
}
elseif (isset($_GET['category']) && is_valid_id($_GET['category']) && empty($quick_search))
{
$category = intval($_GET['category']);
$query = sql_query("SELECT id FROM categories WHERE type='s' AND pid = $category");
if (mysql_num_rows($query) > 0)
{
$squerycats=array();
while ($squery=mysql_fetch_assoc($query))
{
$squerycats[] = $squery['id'];
}
$extraqueries = ' AND t.category IN ('.$category.','.implode(',', $squerycats).')';
}
else
{
$extraqueries = ' AND t.category = '.$category;
}
$pagelinks[] = 'category='.$category;
}
elseif (!empty($quick_search))
{
$category = isset($_POST['category']) ? intval($_POST['category']) : (isset($_GET['category']) ? intval($_GET['category']) : '');
switch($quick_search)
{
case 'show_daily_torrents':
$stime = TIMENOW-(60*60*24); // daily
$extraquery[] = "UNIX_TIMESTAMP(t.added) > '$stime'";
$pagelinks[] = 'quick_search=show_daily_torrents';
break;
case 'show_weekly_torrents':
$stime = TIMENOW-(60*60*(24*7)); // weekly
$extraquery[] = "UNIX_TIMESTAMP(t.added) > '$stime'";
$pagelinks[] = 'quick_search=show_today_torrents';
break;
case 'show_montly_torrents':
$stime = TIMENOW-(60*60*(24*28)); // montly
$extraquery[] = "UNIX_TIMESTAMP(t.added) > '$stime'";
$pagelinks[] = 'quick_search=show_today_torrents';
break;
case 'show_dead_torrents':
$showvisible = false;
$extraquery[] = "t.visible = 'no'";
$pagelinks[] = 'quick_search=show_dead_torrents';
break;
case 'show_recommend_torrents':
$extraquery[] = "t.sticky = 'yes'";
$pagelinks[] = 'quick_search=show_recommend_torrents';
break;
case 'show_free_torrents':
$extraquery[] = "t.free = 'yes'";
$pagelinks[] = 'quick_search=show_free_torrents';
break;
case 'show_silver_torrents':
$extraquery[] = "t.silver = 'yes'";
$pagelinks[] = 'quick_search=show_silver_torrents';
break;
case 'show_doubleupload_torrents':
$extraquery[] = "t.doubleupload = 'yes'";
$pagelinks[] = 'quick_search=show_doubleupload_torrents';
break;
case 'show_external_torrents':
$extraquery[] = "t.ts_external = 'yes'";
$pagelinks[] = 'quick_search=show_external_torrents';
break;
case 'show_scene_torrents':
$extraquery[] = "t.isScene > 0";
$pagelinks[] = 'quick_search=show_scene_torrents';
break;
}
if ($category > 0)
{
$extraquery[] = 't.category IN ('.$category.')';
$pagelinks[] = 'category='.$category;
}
if (count($extraquery) > 0)
{
$extraqueries = ' AND ';
$extraqueries .= implode(' AND ', $extraquery);
}
}

if ($usergroups['isvipgroup'] != 'yes' && !$is_mod && $waitsystem == 'yes')
{
include_once(INC_PATH.'/readconfig_waitslot.php');
$gigs = $CURUSER['uploaded'] / (1024*1024*1024);
$ratio = (($CURUSER['downloaded'] > 0) ? ($CURUSER['uploaded'] / $CURUSER['downloaded']) : 0);
if ($waitsystemtype == 1)
{
if ($ratio < $ratio1 || $gigs < $upload1) $wait = $delay1;
elseif ($ratio < $ratio2 || $gigs < $upload2) $wait = $delay2;
elseif ($ratio < $ratio3 || $gigs < $upload3) $wait = $delay3;
elseif ($ratio < $ratio4 || $gigs < $upload4) $wait = $delay4;
else $wait = 0;
}
else
{
$wait = $usergroups['waitlimit'];
}
}
else
{
$wait = '';
}

stdhead($lang->browse['btitle'],true,'supernote', $javaalert);
$_freelechmod = $_silverleechmod = $_x2mod = false;
include(TSDIR.'/'.$cache.'/freeleech.php');
include(INC_PATH.'/readconfig_kps.php');
if ($__F_START < get_date_time() && $__F_END > get_date_time())
{
switch($__FLSTYPE)
{
case 'freeleech';
$___notice = show_notice(sprintf($lang->browse['f_leech'], $__F_START, $__F_END),false,$lang->browse['f_leech_h']);
$_freelechmod = true;
break;
case 'silverleech';
$___notice = show_notice(sprintf($lang->browse['s_leech'], $__F_START, $__F_END),false,$lang->browse['s_leech_h']);
$_silverleechmod = true;
break;
case 'doubleupload';
$___notice = show_notice(sprintf($lang->browse['d_leech'], $__F_START, $__F_END),false,$lang->browse['d_leech_h']);
$_x2mod = true;
break;
}
}
elseif ($bdayreward == 'yes' AND $bdayrewardtype)
{
$curuserbday = explode('-', $CURUSER['birthday']);
if (date('j-n') === $curuserbday[0].'-'.$curuserbday[1])
{
switch ($bdayrewardtype)
{
case 'freeleech';
$___notice = show_notice(sprintf($lang->browse['f_leech'], $curuserbday[0].'-'.$curuserbday[1].'-'.date('Y'), ($curuserbday[0] + 1).'-'.$curuserbday[1].'-'.date('Y')),false,$lang->browse['f_leech_h']);
break;
case 'silverleech';
$___notice = show_notice(sprintf($lang->browse['s_leech'], $curuserbday[0].'-'.$curuserbday[1].'-'.date('Y'), ($curuserbday[0] + 1).'-'.$curuserbday[1].'-'.date('Y')),false,$lang->browse['s_leech_h']);
break;
case 'doubleupload';
$___notice = show_notice(sprintf($lang->browse['d_leech'], $curuserbday[0].'-'.$curuserbday[1].'-'.date('Y'), ($curuserbday[0] + 1).'-'.$curuserbday[1].'-'.date('Y')),false,$lang->browse['d_leech_h']);
break;
}
}
}

require(TSDIR.'/'.$cache.'/categories.php');
$subcategories = array();
$searcincategories = array();
if (count($_categoriesS) > 0)
{
foreach ($_categoriesS as $sc)
{
$sc['name'] = htmlspecialchars_uni($sc['name']);
$searcincategories[] = $sc['id'];
$seolink = ts_seo($sc['id'],$sc['name'],'c');
$scdesc = htmlspecialchars_uni($sc['cat_desc']);
$subcategories[$sc['pid']][] = ''.(isset($category) && $category == $sc['id'] || strpos($CURUSER['notifs'], '[cat'.$sc['id'].']') !== FALSE ? ''.$sc['name'].'' : $sc['name']).'';
}
}

$count = 0;
$categories = '




'.ts_collapse('cats',2).'

'.ts_collapse('cats').'


'.$lang->browse['tcategory'].'





';

if (($rows = count($_categoriesC)) > 0)
{
foreach ($_categoriesC as $c)
{
$searcincategories[] = $c['id'];
if ($count && $count % 5 == 0)
{
$categories .= '';
}
$seolink = ts_seo($c['id'],$c['name'],'c');
$cname = htmlspecialchars_uni($c['name']);
$cdesc = htmlspecialchars_uni($c['cat_desc']);
$categories .= '
';
$count++;
}
}

$categories .= '









'.(isset($category) && $category == $c['id'] || strpos($CURUSER['notifs'], '[cat'.$c['id'].']') !== FALSE ? ''.$cname.'' : $cname).'

'.($subcategories[$c['id']] ? implode(', ', $subcategories[$c['id']]) : '').'

';

if (preg_match("#\[cat.+#i", $CURUSER['notifs']) AND count($extraquery) == 0 AND count($pagelinks) == 0)
{
$defaultcategories = array();
foreach ($searcincategories as $catid)
{
if (strpos($CURUSER['notifs'], '[cat'.$catid.']') !== FALSE)
{
$defaultcategories[] = $catid;
}
}
if (count($defaultcategories) > 0)
{
$extraqueries = ' AND t.category IN ('.implode(',', $defaultcategories).')';
}
}

require_once(INC_PATH.'/functions_category.php');
$catdropdown = ts_category_list('category',(isset($category) ? $category : ''),'');

$search = '








'.ts_collapse('cats_search',2).'




'.ts_collapse('cats_search').'


'.$lang->browse['tsearch'].'





'.$lang->browse['bykeyword'].'


'.$lang->browse['in'].'
'.$catdropdown.'




'.$lang->browse['sastype'].'

'.$lang->browse['in'].'
'.$catdropdown.'



['.$lang->browse['show_latest'].'] ['.$lang->browse['show_recommend_torrents'].'] ['.$lang->browse['show_free_torrents'].'] ['.$lang->browse['show_silver_torrents'].']




';

$orderbyvalue = 'ORDER by t.sticky, t.added DESC';
if ((isset($_POST['sort_order']) AND $_POST['sort_order'] == 'yes') OR (isset($_GET['sort_order']) AND $_GET['sort_order'] == 'yes'))
{
$allowedsortbys = array('added','numfiles','comments','seeders','lee chers','size','times_completed','owner','sticky');
if ($torrentspeed == 'yes')
{
$allowedsortbys = array_merge($allowedsortbys, array('totalspeed'));
}
$sortby = isset($_POST['sortby']) && in_array($_POST['sortby'], $allowedsortbys) ? trim($_POST['sortby']) : (isset($_GET['sortby']) && in_array($_GET['sortby'], $allowedsortbys) ? trim($_GET['sortby']) : '');
$allowedorderbys = array('DESC', 'ASC');
$orderby = isset($_POST['orderby']) && in_array($_POST['orderby'], $allowedorderbys) ? trim($_POST['orderby']) : (isset($_GET['orderby']) && in_array($_GET['orderby'], $allowedorderbys) ? trim($_GET['orderby']) : '');
$orderbyvalue = 'ORDER by '.($sortby != 'totalspeed' ? 't.' : '').$sortby.' '.$orderby;

if (!empty($sortby) OR !empty($orderby))
{
$pagelinks2 = array();
$pagelinks2[] = 'sort_order=yes';
$pagelinks2[] = 'sortby='.htmlspecialchars_uni($sortby);
$pagelinks2[] = 'orderby='.htmlspecialchars_uni($orderby);
}
}

$from = !empty($from) ? $from : 'FROM torrents t';
$showtorrents = array();
$query = sql_query("SELECT t.id, c.vip {$from} LEFT JOIN categories c ON (t.category=c.id) WHERE ".($showvisible ? "t.visible = 'yes' AND " : "").(preg_match('#E0#is', $CURUSER['options']) ? "t.offensive = 'no' AND " : "").($usergroups['canviewviptorrents'] != 'yes' ? "c.vip = 'no' AND " : "")."t.banned = 'no'".(isset($extraqueries) ? $extraqueries : '')) or sqlerr(__FILE__,__LINE__);
$count = mysql_num_rows($query);
$torrentsperpage = ($CURUSER['torrentsperpage'] <> 0 ? intval($CURUSER['torrentsperpage']) : $ts_perpage);
list($pagertop, $pagerbottom, $limit) = pager($torrentsperpage, $count, $_SERVER['SCRIPT_NAME'].'?'.(isset($pagelinks) && count($pagelinks) > 0 ? implode('&', $pagelinks).'&' : '').(isset($pagelinks2) && count($pagelinks2) > 0 ? implode('&', $pagelinks2).'&' : ''));
$groupby = $torrentspeed == 'yes' ? ' GROUP by t.id ' : '';

$query = sql_query("SELECT ".($torrentspeed == 'yes' ? '(t.genre, t.size * t.times_completed + SUM(p.downloaded)) / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(t.added)) AS totalspeed,' : '')." t.*, c.id as categoryid, c.image, c.name as categoryname, c.vip as isviptorrent, u.username, g.namestyle {$from} LEFT JOIN categories c ON (t.category=c.id) LEFT JOIN users u ON (t.owner=u.id) LEFT JOIN usergroups g ON (u.usergroup=g.gid) ".($torrentspeed == 'yes' ? 'LEFT JOIN peers p ON (t.id=p.torrent)' : '')." WHERE ".($showvisible ? "t.visible = 'yes' AND " : "")."t.banned = 'no'".(isset($extraqueries) ? $extraqueries : '')." {$groupby}{$orderbyvalue} $limit") or sqlerr(__FILE__,__LINE__);

if ($progressbar == 'yes')
{
include_once(INC_PATH.'/functions_external.php');
}

$contentheader = ($is_mod ? '





' : '').'









'.($progressbar == 'yes' ? '' : '').'
'.($torrentspeed == 'yes' ? '' : '').'


'.($is_mod ? '' : '').'

';

$__colspan = 12;
($progressbar != 'yes' ? $__colspan-- : '');
($torrentspeed != 'yes' ? $__colspan-- : '');
(!$is_mod ? $__colspan-- : '');
$contentmiddle = $menu_nav = '';
require_once(INC_PATH.'/functions_mkprettytime.php');
if (mysql_num_rows($query) > 0)
{
require_once(INC_PATH.'/functions_imdb_rating.php');
while ($torrents = mysql_fetch_assoc($query))
{


/**
* @author StarionTurbo
* @copyright 2007
* @modname Show torrents by day
* @version v1.0
*/

/** Make some date varibles **/
$day_added = $row['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 '.date('l, j. M', strtotime($row['added'])); // You can change this to something else
$cleandate = "\n"; // This also...
}
/** Prevent that "torrents added..." wont appear again with the same date **/
$prevdate = $thisdate;

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

if ($row["sticky"] == "no")
if(!$_GET['sort'] && !$_GET['d']){
echo $cleandate."\n";
}

if (($torrents['offensive'] == 'yes' && preg_match('#E0#is', $CURUSER['options'])) OR ($usergroups['canviewviptorrents'] != 'yes' && $torrents['isviptorrent'] == 'yes'))
{
continue;
}

$showupdatebutton=true;

if (time() - $torrents['ts_external_lastupdate'] < (TS_TIMEOUT*4))
{
$showupdatebutton=false;
}

$showwait=$elapsed=$color='';

if ($wait > 0)
{
$elapsed = floor((strtotime(date('Y-m-d H:i:s')) - strtotime($torrents['added'])) / 3600);
if ($elapsed < $wait AND $torrents['ts_external'] != 'yes')
{
$color = dechex(floor(127*($wait - $elapsed)/48 + 128)*65536);
$showwait = "" . number_format($wait - $elapsed) . " h";
}
}

$orj_name_ = $torrents['name'];
$torrents['name'] = htmlspecialchars_uni($torrents['name']);
$torrents['genre'] = htmlspecialchars_uni($torrents['genre']);
$genre = $torrents['genre'];
$uploader=''.get_user_color($torrents['username'], $torrents['namestyle']).'';
$disable_user_menu=false;

if ($torrents['anonymous'] == 'yes')
{
if ($torrents['owner'] != $CURUSER['id'] && !$is_mod)
{
$uploader = $lang->global['anonymous'];
$disable_user_menu=true;
}
else
{
$uploader = $uploader.'
'.$lang->global['anonymous'];
}
}

$isScene = '';

if ($torrents['isScene'] > 0)
{
$isScene = sprintf($lang->browse['scene3'], mkprettytime($torrents['isScene']));
}

$seolink = ts_seo($torrents['categoryid'],$torrents['categoryname'],'c');
$seolink2 = ts_seo($torrents['id'],$torrents['name'],'s');
$seolink3 = ts_seo($torrents['id'],$torrents['name'],'d');

$downloadinfo = sprintf($lang->browse['downloadinfo'], $torrents['name']);
$categoryinfo = sprintf($lang->browse['categoryinfo'], $torrents['categoryname']);
$sratio = $torrents["leechers"] > 0 ? $torrents["seeders"] / $torrents["leechers"] : 1;
$lratio = $torrents["seeders"] > 0 ? $torrents["leechers"] / $torrents["seeders"] : 1;

$torrent_files = ''.($torrents['numfiles'] > 1 ? '' : '').ts_nf($torrents['numfiles']).($torrents['numfiles'] > 1 ? '' : '').'';

$torrent_seeders = ($torrents['ts_external'] == 'no' ? ''.($torrents['seeders'] > 0 && $usergroups['canpeers'] == 'yes' ? '' : '').''.ts_nf($torrents['seeders']).''.($torrents['seeders'] > 0 && $usergroups['canpeers'] == 'yes' ? '' : '').'' : ''.ts_nf($torrents['seeders']).'');

$torrent_leechers = ($torrents['ts_external'] == 'no' ? ''.($torrents['leechers'] > 0 && $usergroups['canpeers'] == 'yes' ? '' : '').''.ts_nf($torrents['leechers']).''.($torrents['leechers'] > 0 && $usergroups['canpeers'] == 'yes' ? '' : '').'' : ''.ts_nf($torrents['leechers']).'');

$torrents['times_completed'] = ($torrents['ts_external'] == 'yes' && $torrents['seeders'] > 0 && $torrents['times_completed'] == 0 ? $torrents['seeders'] : $torrents['times_completed']);
$torrent_snatched = ($torrents['ts_external'] == 'no' && $torrents['times_completed'] > 0 && $usergroups['cansnatch'] == 'yes' ? sprintf($lang->browse['info3'], ''.ts_nf($torrents['times_completed']).'') : sprintf($lang->browse['info3'], ''.ts_nf($torrents['times_completed']).''));
$torrent_comments = ($torrents['comments'] > 0 ? '' : '').''.ts_nf($torrents['comments']).''.($torrents['comments'] > 0 ? '' : '');

$isnew = ($torrents['added'] > $CURUSER['last_login'] ? ''.$lang->browse['newtorrent'].'' : '');
$isfree = ($torrents['free'] == 'yes' || ($_freelechmod && $torrents['ts_external'] != 'yes') ? ''.$lang->browse['freedownload'].'' : '');
$issilver = ($torrents['silver'] == 'yes' || ($_silverleechmod && $torrents['ts_external'] != 'yes') ? ''.$lang->browse['silverdownload'].'' : '');
$isrequest = ($torrents['isrequest'] == 'yes' ? ''.$lang->browse['requested'].'' : '');
$isnuked = ($torrents['isnuked'] == 'yes' ? ''.sprintf($lang->browse['nuked'], $torrents['WhyNuked']).'' : '');
$issticky = ($torrents['sticky'] == 'yes' ? ''.$lang->browse['sticky'].'' : '');
$isexternal = ($torrents['ts_external'] == 'yes' && $showupdatebutton ? "".$lang->browse[" : (isset($_GET['tsuid']) && $_GET['tsuid'] == $torrents['id'] ? "".$lang->browse[" : ""));
$isdoubleupload = ($torrents['doubleupload'] == 'yes' || ($_x2mod && $torrents['ts_external'] != 'yes') ? ''.$lang->browse['dupload'].'' : '');
$javascript_tname = addslashes(htmlspecialchars($torrents['name']));
$torrents['name'] = cutename($orj_name_,60);
$torrent_image = ''.$categoryinfo.'';
$name_torrent = ''.(!empty($keywords) ? highlight(htmlspecialchars_uni($keywords), $torrents['name']) : $torrents['name']).' '.$isnew.' '.$issticky.' '.$isfree.' '.$issilver.' '.$isdoubleupload.' '.$isrequest.' '.$isnuked.' '.$isexternal.'';
$torrent_download_link = (!$is_bookmark_page ? '' : '');

if ($progressbar == 'yes')
{
$shareratio = ($torrents['seeders'] == 0 ? 0 : ($torrents['leechers'] == 0 ? 100 : sprintf("%.2f", ($torrents['seeders'] / $torrents['leechers']) * 100)));
$health = ts_external_share_ratio($shareratio);
$torrent_info = '';
}

if ($torrentspeed == 'yes')
{
if ($torrents['ts_external'] == 'yes')
{
$speed = $lang->browse['external'];
}
else
{
if ($torrents['seeders'] > 0 && $torrents['leechers'] > 0)
{
$speed = mksize($torrents['totalspeed']) . '/s';
}
else
{
$speed = $lang->browse['notraffic'];
}
}
$speed = '';
}

$torrents['size'] = mksize($torrents['size']);

$ShowImdb=false;
if ($IMDBRating = TSSEGetIMDBRatingImage($torrents['t_link']))
{
$ShowImdb=true;
}

$TorrentAdded = '
 '.$lang->global['added'].': '.my_datee($dateformat, $torrents['added']).' '.my_datee($timeformat, $torrents['added']).($ShowImdb ? '
 '.$IMDBRating['image'].' '.$IMDBRating['rating'] : '');
$contentmiddle .= '








'.$torrent_info.'
'.$speed.'


'.($is_mod ? '
' : '').'
';

$menu_nav .= ($UseQuickMenu ? '

'.$lang->browse['type'].'  '.$lang->browse['t_name'].' '.$lang->global['avprogress'].''.$lang->global['speed'].' '.$lang->global['size'].' / '.$lang->global['snatched'].' '.$lang->global['uploader'].'
$day_added
'.$health.' '.$speed.' '.$torrent_image.' '.$showwait.' '.$name_torrent.$TorrentAdded.'
'.'  Genre: '.$genre.''.($isScene ? '
 '.$isScene : '').'
'.$torrent_download_link.' '.$torrent_files.' '.$torrent_comments.'
'.$torrent_seeders.'
'.$torrent_leechers.'
'.$torrents['size'].'
'.$torrent_snatched.'
'.$uploader.'













'.($is_mod ? '














' : '').'
'.$lang->global['quickmenu'].'
'.$lang->browse['download'].'
'.(!empty($torrents['t_image']) ? ''.$lang->browse['t_image'].'
'.strip_tags($torrents['name']).'' : $lang->browse['nopreview']).'
'.$lang->browse['viewtorrent'].'
'.$lang->browse['viewcomments'].'
'.$lang->browse['tinfo'].'
'.$lang->browse['edit'].'
'.$lang->browse['quickedit'].'
'.$lang->browse['nuke'].'
'.$lang->browse['delete'].'

' : '').($disable_user_menu == false ? '

' : '');
}
}
else
{
$contentmiddle = '

'.$lang->browse['tryagain'].'


Select Action:







' : '
').'
'.$menu_nav.'

';

if (count($pagelinks) > 0)
{
$hiddenvalues;
foreach ($pagelinks as $name)
{
$values = explode('=', $name);
$hiddenvalues .= '

';
}
}

if (isset($_GET['category']) && is_valid_id($_GET['category']) && empty($quick_search))
{
$sqfield = "&browse_categories&category=".intval($_GET['category']);
}

$finishcontent = '







'.$lang->browse['b_info'].'
'.str_replace("|link|", "$BASEURL/$pic_base_url", $lang->browse['legend_browse']).'



'.$lang->browse['f_options'].'




'.(isset($hiddenvalues) ? $hiddenvalues : '').'
'.$lang->browse['sortby1'].'

'.$lang->browse['orderby1'].'

  




';

$QuickEditTorrentSubject='';
if ($is_mod)
{
$QuickEditTorrentSubject = '

';
}
echo $___notice.$categories.$search.($pagertop ? $pagertop : '

').'
'.$contentheader.$contentmiddle.'
'.($pagerbottom ? $pagerbottom : '').$finishcontent.$QuickEditTorrentSubject;
unset($categories,$search,$contentheader,$contentm iddle,$finishcontent);
stdfoot();
# Function get_slr_color v.0.1
function get_slr_color($ratio)
{
if ($ratio < 0.025) return "#ff0000";
if ($ratio < 0.05) return "#ee0000";
if ($ratio < 0.075) return "#dd0000";
if ($ratio < 0.1) return "#cc0000";
if ($ratio < 0.125) return "#bb0000";
if ($ratio < 0.15) return "#aa0000";
if ($ratio < 0.175) return "#990000";
if ($ratio < 0.2) return "#880000";
if ($ratio < 0.225) return "#770000";
if ($ratio < 0.25) return "#660000";
if ($ratio < 0.275) return "#550000";
if ($ratio < 0.3) return "#440000";
if ($ratio < 0.325) return "#330000";
if ($ratio < 0.35) return "#220000";
if ($ratio < 0.375) return "#FFFFFF";
return "#000000";
}
# Function unesc v.0.1
function unesc($x)
{
if (get_magic_quotes_gpc()) return stripslashes($x);
return $x;
}
?>
thank you.....
lafouine022 26th January 2011 02:54

1 Attachment(s)
your browse.php doesn't work for me ^^

but my code is work in my scrypt :P

i'm attached my browse :)




firefly007 26th January 2011 03:09

screenshot
 
Hi

Thank you for your help.

that seem to work perfectly but if you look at the screenshot below you will see what im having a problem with.

I have highlighted the pre-time time because it is un-readable as you can see with the above torrent,due to my theme been dark.

That is the problem im having. Do you have any idea where i can modify the color of the text

Thank you very much for your help

firefly

http://www.bitstorm.co.za/Untitled-2.gif

lafouine022 26th January 2011 03:29

okiiiiiiii i'm not install pre time mod:p

in line 559

PHP Code:

$cleandate "<tr><td colspan=15><b>$day_added</b></td></tr>\n"// This also... 

remplace for

PHP Code:

$cleandate "<tr><td colspan=15><b><font color=red>$day_added</font></b></td></tr>\n"// This also... 

or

line 694

PHP Code:

<td align="left">'.$showwait.'<a name="#showtorrent'.$torrents['id'].'"></a>&nbsp;'.$name_torrent.$TorrentAdded.''.'&nbsp; <font color="red"Genre: </b>'.$genre.'</font>'.($isScene ? '&nbsp;'.$isScene : '').'</td

remplace for

PHP Code:

<td align="left">'.$showwait.'<a name="#showtorrent'.$torrents['id'].'"></a>&nbsp;'.$name_torrent.$TorrentAdded.''.'&nbsp; <font color="red"Genre: </b>'.$genre.'</font>'.($isScene ? '&nbsp;<font color=red>'.$isScene : '').'</font></td


firefly007 26th January 2011 03:39

hi
 
Still not working:sorry:

I found this on my browse.php on line 615

Quote:

$isScene = '';

if ($torrents['isScene'] > 0)
{
$isScene = sprintf($lang->browse['scene3'], mkprettytime($torrents['isScene']));
}

$seolink = ts_seo($torrents['categoryid'],$torrents['categoryname'],'c');
$seolink2 = ts_seo($torrents['id'],$torrents['name'],'s');
$seolink3 = ts_seo($torrents['id'],$torrents['name'],'d');

lafouine022 26th January 2011 03:45

and

line 694

PHP Code:

<td align="left">'.$showwait.'<a  name="#showtorrent'.$torrents['id'].'"></a>&nbsp;'.$name_torrent.$TorrentAdded.'<br  />'.'&nbsp; <font color="red"Genre:  </b>'.$genre.'</font>'.($isScene ? '<br  />&nbsp;'.$isScene : '').'</td

remplace for

PHP Code:

<td align="left">'.$showwait.'<a  name="#showtorrent'.$torrents['id'].'"></a>&nbsp;'.$name_torrent.$TorrentAdded.'<br  />'.'&nbsp; <font color="red"Genre:  </b>'.$genre.'</font>'.($isScene ? '<br  />&nbsp;<font color=red>'.$isScene :  '').'</font></td


firefly007 26th January 2011 03:54

I dont understand why thas not working
 
that should work but still not working:sorry:

lafouine022 26th January 2011 03:56

lol I have more idea

test this ^^

PHP Code:

if ($torrents['isScene'] > 0)
        {
            
$isScene '<font color=red>'sprintf($lang->browse['scene3'], mkprettytime($torrents['isScene']))'</font>';
        } 

or look your include/language/english/browse.lang.php

and search

$lang->browse['scene3']

and

remplace

PHP Code:

'scene3'=>'<b>Pre-Time:</b> {1}',//Added in v5.2 

by

PHP Code:

'scene3'=>'<font color=red><b>Pre-Time:</b> {1}</font>',//Added in v5.2 


:drink:

firefly007 26th January 2011 04:02

thanks
 
thank you

testing it now

thank you for the help

lafouine022 26th January 2011 04:04

:ok:

firefly007 26th January 2011 04:11

I need a little help . could you explain what i must do and where the code blow must go:sorry:

Quote:

if ($torrents['isScene'] > 0)
{
$isScene = ''sprintf($lang->browse['scene3'], mkprettytime($torrents['isScene']))'';


lafouine022 26th January 2011 04:18

no modification in your browse.php

search

include/language/english/browse.lang.php

in browse.lang.php

remplace

PHP Code:

'scene3'=>'<b>Pre-Time:</b> {1}',//Added in v5.2 

by

PHP Code:

'scene3'=>'<font color=red><b>Pre-Time:</b> {1}</font>',//Added in v5.2 


firefly007 26th January 2011 04:30

t sting
 
hi thank you for the help

will do it now


I did exactly what you said
still nothing do you have any other ideas:sorry:

lafouine022 26th January 2011 04:41

it is not possible you are not lucky ^^

firefly007 26th January 2011 04:43

java
 
do you think it could in java file?:sorry:

lafouine022 26th January 2011 04:50

I do not think it necessary to check that I gave yourself.

in bronws.php

line 694
remplace this

PHP Code:

<td align="left">'.$showwait.'<a name="#showtorrent'.$torrents['id'].'"></a>&nbsp;'.$name_torrent.$TorrentAdded.''.'&nbsp; <font color="red"Genre: </b>'.$genre.'</font>'.($isScene ? '&nbsp;<font color="red">'.$isScene : '''</font>').'</td

and why erreur ?

or include/language/english/browns.lang.php



your soluction is here :p
PHP Code:

'scene3'=>'<b>Pre-Time:</b> <font color=#FF0000>{1}</font>',//Added in v5.2 

i'm not use pre time mod ^^

firefly007 26th January 2011 12:51

re
 
Hi

Still no luck....

I will post browse.lang.php and see if everthing is correct

Thanks again for your help............................

PHP Code:

<?php
/*
************************************************
*==========[WDW Tracker v.5.6]==========*
************************************************
*              Special Thanks To               *
*        DrNet - wWw.SpecialCoders.CoM         *
*          Vinson - wWw.Decode4u.CoM           *
*    MrDecoder - wWw.Fearless-Releases.CoM     *
*           Fynnon - wWw.BvList.CoM            *
*==============================================*
*   Note: Don't Modify Or Delete This Credit   *
*     Next Target: WDW Tracker v5.7     *
*     TS SE WILL BE ALWAYS FREE SOFTWARE !     *
************************************************
*/
/* 
WDW Tracker English Language File
Translation by xam Version: 1.1

*/

if(!defined('IN_TRACKER'))
  die(
'Hacking attempt!');

// browse.php *** RE-CODED SINCE v3.9 ***
$language['browse'] = array
(
    
'bykeyword'     =>'Keyword(s)',
    
'alltypes'        =>'(all categories)',
    
'tryagain'    =>'Try again with a refined search string.',
    
't_name'        =>'Torrent name',
    
't_description'=>'Torrent description',
    
't_both'    =>'Name & Description',
    
't_uploader' =>'Uploader',
    
'in'     =>'in',
    
'tsearch'     =>'Torrent Search',
    
'tcategory' => 'Tracker Categories',
    
'downloadinfo'=> 'Download torrent: {1}',
    
'detailsinfo'    => 'View torrent details: {1}',
    
'categoryinfo'=> 'View category: {1}',    
    
'info3'     => '{1} x time(s)',    
    
'newtorrent'     =>'New torrent',
    
'freedownload'    =>'Free torrent (only upload stats are recorded!).',
    
'silverdownload' =>'Silver torrent (only 50% download stats are recorded!).',
    
'requested'    =>'This torrent was requested by a member.',
    
'nuked'    =>'This torrent has been nuked! Reason: {1}',    
    
'download'    =>'Download torrent',
    
'viewtorrent'    =>'View torrent details',    
    
'viewcomments'    =>'View comments',    
    
'viewsnatch'    =>'View snatch list',
    
'tinfo'        =>'View torrent info',
    
'edit'    =>'Edit torrent',
    
'nuke'     =>'Nuke torrent',
    
'delete'    =>'Delete torrent',
    
'nopreview'    =>'There is no preview image for this torrent!',
    
'sticky'    =>'Recommend Torrents',
    
'updating'    =>'Updating torrent stats...',
    
'update'    =>'External Torrent! Click here to update torrent stats!',
    
'updated'    =>'Torrent stats has been updated!',
    
'show_daily_torrents' => 'Show daily torrents',
    
'show_weekly_torrents' => 'Show weekly torrents',
    
'show_montly_torrents' => 'Show montly torrents',
    
'show_dead_torrents' => 'Show dead torrents',
    
'show_recommend_torrents' => 'Show recommend torrents',
    
'show_free_torrents' => 'Show free torrents',
    
'show_silver_torrents' => 'Show silver torrents',
    
'show_external_torrents' => 'Show external torrents',
    
'sastype'     =>'Select search type ',
    
'btitle'    =>'Browse Torrents',
    
't_image'     =>'Click to view full size',
    
'warnexternal'                =>'Warning!!!\n----------------\nYou are about to download an external torrent which means download and upload stats aren\'t recorded for this torrent!\n\nClick \"OK\" to continue downloading!',
    
'sortby1'=>'Sorted by'// Added v4.0
    
'sortby2'=>'Filelist'// Added v4.0
    
'sortby3'=>'Comments'// Added v4.0
    
'sortby4'=>'Seeders'// Added v4.0
    
'sortby5'=>'Leechers'// Added v4.0
    
'sortby6'=>'Size'// Added v4.0
    
'sortby7'=>'Snatched'// Added v4.0
    
'sortby8'=>'Uploader'// Added v4.0
    
'sortby9'=>'Recommend'// Added v4.0
    
'orderby1'=>'Sort order'// Added v4.0
    
'orderby2'=>'Descending'// Added v4.0
    
'orderby3'=>'Ascending'// Added v4.0
    
'sobutton'=>'Show Torrents'// Added v4.0
    
'serror'=>'An error has occured!\nOne or more of your search terms were shorter than the minimum length.\nThe minimum search term length is {1} characters.\n\nSearch terminated!'// Changed in v5.5
    
'dupload'=>'Seed this torent to get double upload credits!',//Changed in v4.2
    
'legend_browse' =>'
<img src="|link|freedownload.gif" border="0" class="inlineimg" onmouseover="ddrivetip(\'<font color=#347C17>Free Torrents download when set gives the users upload credit only and no download credit is posted to the users stats.  This in turn is a great opportunity to build a users upload stats to improve a users ratio to good standings.</font>\', 300)"; onmouseout="hideddrivetip()">&nbsp;&nbsp;
<img src="|link|silverdownload.gif" border="0" class="inlineimg" onmouseover="ddrivetip(\'<font color=#347C17>Silver Torrents when set only record 50% of the users download credit on that file. This means the user still has a responsibility to seed back a file they download to help reach the sites required ratio or seed time. You will still receive full upload credit for what you help upload to others.</font>\', 300)"; onmouseout="hideddrivetip()">&nbsp;&nbsp;
<img src="|link|isnuked.gif" border="0" class="inlineimg" onmouseover="ddrivetip(\'<font color=#347C17>Nuked Torrent Files are files that have been defined as files that are out of sync with audio or video.  Nuked Files can also be defined as files that are missing segments of the file which can not be recovered. These can also be nuked by scene release groups for bad aspect ratios. A nuked file sometimes are replaced with a updated version soon after it is nuked.</font>\', 300)"; onmouseout="hideddrivetip()">&nbsp;&nbsp;
<img src="|link|isrequest.gif" border="0" class="inlineimg" onmouseover="ddrivetip(\'<font color=#347C17>Requested Torrents are files that users request and a member of the uploader team uploaded the file requested.</font>\', 300)"; onmouseout="hideddrivetip()">&nbsp;&nbsp;
<img src="|link|x2.gif" border="0" class="inlineimg" onmouseover="ddrivetip(\'<font color=#347C17>x2 Double Upload Credit for seeding back files.  When set any user who downloaded this file and recieves a message asking them to reseed this file because another user is trying to download it, will give any user who reseeds this file double the upload credit for helping out reseed.</font>\', 300)"; onmouseout="hideddrivetip()">&nbsp;&nbsp;
<img src="|link|external.gif" height="12" width="12" border="0" class="inlineimg" onmouseover="ddrivetip(\'<font color=#347C17>External Torrents are files that are uploaded to the site from a non-private site that does not require membership to download the file.  All External Torrents are considered Free Torrents and no stats are recorded for downloading it.  Users generally do not have to seed this file back.</font>\', 300)"; onmouseout="hideddrivetip()">&nbsp;&nbsp;
<img src="|link|sticky.gif" height="12" width="12" border="0" class="inlineimg" onmouseover="ddrivetip(\'<font color=#347C17>Recommend Torrents are files that the uploader or admin of site has recommended that this movie is one to have or view.</font>\', 300)"; onmouseout="hideddrivetip()">&nbsp;&nbsp;
<img src="|link|down1.gif" height="12" width="12" border="0" class="inlineimg" onmouseover="ddrivetip(\'<font color=#347C17>Download File Icon.  This icon is available to the user so they can direct download the .torrent file. This icon does not mean the user can get away from giving thanks to the uploader for uploading the file.</font>\', 300)"; onmouseout="hideddrivetip()">&nbsp;&nbsp;
'
// Added v4.2
    
'b_info'    =>'<b>Legend: <small>Scroll Over Pics For Description</small></b>',// Added v4.2
    
'f_options'=>'<b>Filter Options</b>',// Added v4.2
    
'show_double_upload_torrents'=>'show double upload torrents',// Added v4.2
    
'type'=>'Type',//Added in v5.0
    
'speed'=>'Speed',//Added in v5.0
    
'external'=>'(External)',//Added in v5.0
    
'notraffic'=>'(No Traffic)',//Added in v5.0
    
't_genre'=>'IMDB Genre',//Added in v5.0
    
'quickedit'=>'Quick edit torrent subject'//Added in v5.1
    
'f_leech_h' => 'Free Leech Days',//Added in v5.1
    
'f_leech'    =>     'All torrents are Free Leech between {1} - {2}. (Please do not hit \'n\' run, keep the torrents seeded!)'//Added in v5.1
    
's_leech_h' => 'Silver Leech Days',//Added in v5.1
    
's_leech'    =>     'All torrents are Silver Leech between {1} - {2}. (Please do not hit \'n\' run, keep the torrents seeded!)'//Added in v5.1
    
'd_leech_h' => 'Double Upload Days',//Added in v5.1
    
'd_leech'    =>     'All torrents are Double Upload (x2) between {1} - {2}. (Please do not hit \'n\' run, keep the torrents seeded!)'//Added in v5.1
    
'scene3'=>'<b>Pre-Time:</b> <font color=#FF0000>{1}</font>',//Added in v5.2  
    
'scene4'=>'Show scene releases',//Added in v5.2
    
'show_latest'=>'Show latest torrents',//Added in v5.4
);
?>


lafouine022 26th January 2011 13:41

hi I is more idea for you sorry.

firefly007 26th January 2011 19:49

thanks
 
thanks for you help much appreciated :drink:

Bump: I have found it:relax::relax::relax::relax::relax::relax::relax ::relax:

For anyone else who need to change the pre-time

You will need to go to Include=> functions_mkprettytime.php

look on line 127


All times are GMT +2. The time now is 06:51.

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