i just recently installed this and
absolutely love it!!! heres a pic of what my
torrentflux page looks like now:
i tweaked the transfer bars a bit
and of course played around with the themes i found in
the themes thread.
i changed a bit of the
code to get the bars to look like the old bars from the
matrix theme.
both changes i made are done in the
functions.php
look for:
//XFER:****************************************************
//XFER:
displayXferBar(max_bytes, used_bytes, title)
//XFER:
displays xfer percentage bar
function
displayXferBar($total, $used, $title)
then
after that erase whats in there and put in this
instead:
{
global
$cfg;
$remaining =
max(0,$total-$used/(1024*1024));
$percent = round($remaining/$total*100,0);
$freeSpace = "";
if
($percent > 20)
{
$freeSpace = "
(".formatFreeSpace($remaining)." Remaining)";
}
?>
<tr>
<td width="2%"
align="left"><div class="tiny"><?php echo
$title ?></div></td>
<td width="80%">
<table width="100%"
border="0" cellpadding="0" cellspacing="0"
style="margin-top:1px;margin-bottom:1px;">
<tr>
<td
background="themes/<?php echo $cfg["theme"]
?>/images/proglass2.gif" width="<?php echo
$percent ?>%"><div class="tinypercent"
align="center"><?php echo $percent."%".$freeSpace
?></div></td>
<td
background="themes/<?php echo $cfg["theme"]
?>/images/noglass.gif" width="<?php echo (100 -
$percent) ?>%"><img src="images/blank.gif"
width="1" height="3" border="0"></td>
</tr>
</table>
</td>
</tr>
<?php
}
where
proglass2.gif is basically the proglass.gif found in the
matrix theme rotated 180 degrees.
the next change
is found by looking for this:
//
***************************************************************************
//
***************************************************************************
//
Display the Drive Space Graphical Bar
function
displayDriveSpaceBar($drivespace)
and then
erasing whats in there and putting in this:
{
global
$cfg;
$freeSpace = "";
if ($drivespace > 20)
{
$freeSpace = "
(".formatFreeSpace($cfg["free_space"])."
Free)";
}
?>
<table width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr
nowrap>
<td
width="2%"><div class="tiny"><?php echo
_STORAGE ?>:</div></td>
<td width="80%">
<table width="100%"
border="0" cellpadding="0" cellspacing="0">
<tr>
<td
background="themes/<?php echo $cfg["theme"]
?>/images/proglass.gif" width="<?php echo
$drivespace ?>%"><div class="tinypercent"
align="center"><?php echo
$drivespace."%".$freeSpace
?></div></td>
<td
background="themes/<?php echo $cfg["theme"]
?>/images/noglass.gif" width="<?php echo (100 -
$drivespace) ?>%"><img src="images/blank.gif"
width="1" height="3" border="0"></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
}
where
again proglass.gif is the proglass.gif found in the
matrix theme.
thx again for this amazing hack and
i hope to see your todo list finished up sometime
soon!!