coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Sebastian Bach on June 23, 2005, 07:54:31 AM

Title: logic for .wmv files
Post by: Sebastian Bach on June 23, 2005, 07:54:31 AM
Where is the logic that determines using the wmv.jpg file as the thumbnail? I can't find it in any of the files. I want to change the logic so that if it is a .wmv file it will read from a folder ex. videothumbs/{filename}.jpg
Title: Re: logic for .wmv files
Post by: Nibbler on June 23, 2005, 07:22:58 PM
It's in the get_pic_url() function inside include/functions.inc.php.
Title: Re: logic for .wmv files
Post by: Sebastian Bach on June 24, 2005, 05:34:30 AM
what would I change if I wanted to store thumbnails in a folder named the same as the {filename}.wmv instead of the static wmv.jpg file

basically {filename}.wmv will use wmvthumbs/{filename}.jpg
Title: Re: logic for .wmv files
Post by: Nibbler on June 24, 2005, 01:01:38 PM
After

} elseif ($mime_content['content'] != 'image' && $mode == 'thumb') {

add

if ($mime_content['extension'] == 'wmv')  return path2url('wmvthumbs/' . str_replace('.wmv', '.jpg', $pic_row['filename']));