News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

logic for .wmv files

Started by Sebastian Bach, June 23, 2005, 07:54:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sebastian Bach

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

Nibbler

It's in the get_pic_url() function inside include/functions.inc.php.

Sebastian Bach

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

Nibbler

After

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

add

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