Quote:
Originally Posted by phpdevrus
how do i limit the displayed file name? some of my file names are long and it messes up my template on vba index.
thnx
|
The only way to do this is to edit includes/class_downloads.php. Once you do that, the name displayed in the "tops" will be truncated on both the DownloadsII pages and on the VBA pages.
If you still want to do that, make these changes:
Around line 144 FIND:
PHP Code:
$name = addslashes($latest['name']);
REPLACE with:
PHP Code:
$name = addslashes(substr($latest['name'],0,xxx))." ... ";
Replace the xxx with how long you want the name to be. Follow the same procedure on line 174 (identical to above).