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



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

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