1
FAQ, Tips / Re: How can I add more allowed file extensions?
« on: August 13, 2006, 03:26:36 PM »@ m3tallica and all other wmv-friends,
WMV as new valid file extension
1. add wmv as new file extension in your ACP -> Settings -> Valid file extensions
2. for wmv-files add the following code line into your includes/upload_definitions.phpCode: [Select]$mime_type_match['wmv'] = array("video/x-ms-wmv");
or this (update ...)Code: [Select]$mime_type_match['wmv'] = array("video/x-ms-wmv", "application/x-unknown")
3. create a new wmv.html in templates/<your_template>/media/ like thisCode: [Select]<!-- Template file for WMV Movies -->
<embed id="VideoVIDEO"
name="VideoVIDEO"
pluginspage="http://www.microsoft.com/windows/windowsmedia/en/Download/default.asp"
src="{media_src}"
type="application/x-mplayer2"
EnableFullScreenControls="1"
AUTOREWIND="0"
SHOWSTATUSBAR="1"
AnimationatStart="false"
SHOWDISPLAY="0"
AUTOSIZE="1"
ENABLECONTEXTMENU="1"
SHOWCONTROLS="1"
PLAYCOUNT="0">
<br>
4. create a new wmv-icon as wmv.gif in templates/<your_template>/icons/ like this
... thats all ... now you can present wmv-files in your 4images gallery ...
mawenzi
Oustanding..thanks, works perfectly...thanks for the advice