4images Forum & Community
4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started 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
-
Hello,
in "includes/upload_definitions.php", find:
$mime_type_match['mid'] = array("audio/x-midi", "audio/mid", "audio/midi");
add after:
$mime_type_match['kar'] = array("audio/midi", "music/x-karaoke");
in "templates/your_template/media", create a file called "kar.html", with this code:
<!-- 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.
-
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!