Author Topic: How to make template for "kar" extension?  (Read 4446 times)

0 Members and 1 Guest are viewing this topic.

Offline dbranko

  • Newbie
  • *
  • Posts: 20
    • View Profile
How to make template for "kar" extension?
« 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

manurom

  • Guest
Re: How to make template for "kar" extension?
« Reply #1 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.
« Last Edit: January 22, 2007, 01:10:46 AM by manurom »

Offline dbranko

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: How to make template for "kar" extension?
« Reply #2 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!