View Single Post
  #16  
Old 10th July 2013, 11:46
Krypto Krypto is offline
Retired from BVList
 
Join Date: Jan 2008
P2P
Posts: 510
Default
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

Code:
$dispname
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.
Reply With Quote
The Following User Says Thank You to Krypto For This Useful Post:
las7h0p3 (2nd August 2013)