Create a new function in include/bittorrent.php
Code:
function CutName($txt, $len)
{
return (strlen($txt)>$len ? substr($txt,0,$len-4) .'...':$txt);
}
Find
Code:
function torrenttable
Add anywhere where any other variables are defined
Code:
$char = 10; //Max long...
Change the value to whatever the max characters you want displayed.
Find any occurrences of
Change to
Code:
" . CutName($dispname, $char) . "
Depending on what version of TBDev your torrenttable function maybe in a different file from what is mentioned at the top of this post.