4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: dbranko on January 18, 2007, 08:48:10 PM

Title: How to make template for "kar" extension?
Post by: dbranko on January 18, 2007, 08:48:10 PM
How to make template for "kar" extension?I have midi and kar files on my site and i can preview midi files but i can not preview kar files!Help
Title: Re: How to make template for "kar" extension?
Post by: manurom on January 22, 2007, 12:49:52 AM
Hello,

in "includes/upload_definitions.php", find:
Code: [Select]
$mime_type_match['mid'] = array("audio/x-midi", "audio/mid", "audio/midi");add after:
Code: [Select]
$mime_type_match['kar'] = array("audio/midi", "music/x-karaoke");

in "templates/your_template/media", create a file called "kar.html", with this code:
Code: [Select]
<!-- Template file for KAR Audio Files -->
<embed src="{media_src}" type="audio/midi" hidden="true" autostart="true" loop="true" height="1" width="1"></embed>
{media_icon}<br />

At the end, in "templates/your_template/icons", add the kar icon, you will find in attachment (for administrators and developers, it would be better to have png icons, as gif format copyright is really boring).
Once done, kar files will work as midi files.
Title: Re: How to make template for "kar" extension?
Post by: dbranko on February 07, 2007, 02:12:54 AM
Ok,but i want template like midi template!Users can preview midi files but kar preview is not posible!WMA plug-in stops on start!Is somethong wrong with my "4dark" template because everything is is OK with "default" template?Plug-in cant start karaoke file!