วิธีทำ
1. เอาสคริป xml ไปก่อน
โค้ด:
<?xml version="1.0" encoding="utf-8"?>
<product productid="media_inline" title="Playing Media Files Inline"
description="Display media files within posts and threads" version="1.0.1" active="1">
<templates>
<template name="postbit_attachmentflash" templatetype="template" date="1125000000" username="Stitch" version="3.5.0 Release Candidate 3">
<![CDATA[
<br>
<center>
<table border="0" align="center" width="400" cellspacing="0" cellpadding="0" height="275">
<tr>
<td class="thead" width="100%" height="25">
<center>
<font color="#FFFFFF">
Flash Attachment
</font>
</center>
</td>
</tr>
<tr>
<td width="100%" height="225">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download./pub/...version=6,0,0,0"
WIDTH="450" HEIGHT="225" id="$flashid" ALIGN=""
>
<PARAM NAME=movie VALUE="$flashfilenameandlocation">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>
<EMBED src="$flashfilenameandlocation" quality=high bgcolor=#000000
WIDTH="450" HEIGHT="225"
NAME="$flashid"
ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www./go/getflashplayer"
>
</EMBED>
</OBJECT>
</center>
</td>
</tr>
<tr>
<td class="thead" width="100%" height="25">
<center>
<font color="#6600FF">
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">$attachment[filename]</a> <span class="smallfont">($attachment[filesize] bytes, $attachment[counter] views)</span>
</font>
</center>
</td>
</tr>
</table>
</center>
<br>
]]>
</template>
<template name="postbit_attachmentmp3" templatetype="template" date="1125000000" username="Stitch" version="3.5.0 Release Candidate 3">
<![CDATA[
<br>
<center>
<table border="0" align="center" width="400" cellspacing="0" cellpadding="0" height="275">
<tr>
<td class="thead" width="100%" height="25">
<center>
<font color="#FFFFFF">
MP3 Attachment
</font>
</center>
</td>
</tr>
<tr>
<td width="100%" height="225">
<center>
<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player"
width="400" height="225"
codebase="http://activex.microsoft.com/activex...rsion=6,0,0,0"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject"
>
<param name="URL" value="$mp3filenameandlocation">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="1">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="loop" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value="">
<param name="volume" value="200">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="0">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="7938">
<param name="_cy" value="6482">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/d...r/default.asp" src="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"
rate=1
balance=0
currentPosition=1
playCount=1
autoStart=1
loop=-1
currentMarker=0
invokeURLs=-1
volume=200
mute=0
uiMode=full
stretchToFit=0
windowlessVideo=0
enabled=-1
enableContextMenu=0
fullScreen=0
SAMIStyle
SAMILang
SAMIFilename
captioningID
enableErrorDialogs=0
_cx=7938
_cy=6482
width=400
height=225>
</embed>
</object>
</center>
</td>
</tr>
<tr>
<td class="thead" width="100%" height="25">
<center>
<font color="#6600FF">
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">$attachment[filename]</a> <span class="smallfont">($attachment[filesize] bytes, $attachment[counter] views)</span>
</font>
</center>
</td>
</tr>
</table>
</center>
<br>
]]>
</template>
<template name="postbit_attachmentwma" templatetype="template" date="1125000000" username="Stitch" version="3.5.0 Release Candidate 3">
<![CDATA[
<br>
<center>
<table border="0" align="center" width="400" cellspacing="0" cellpadding="0" height="275">
<tr>
<td class="thead" width="100%" height="25">
<center>
<font color="#FFFFFF">
WMA Attachment
</font>
</center>
</td>
</tr>
<tr>
<td width="100%" height="225">
<center>
<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player" width="400" height="225"
codebase="http://activex.microsoft.com/activex...rsion=6,0,0,0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="URL" value="$wmafilenameandlocation">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="1">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="loop" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="200">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="0">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="7938">
<param name="_cy" value="6482">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/d...r/default.asp" src="$wmafilenameandlocation"
rate=1
balance=0
currentPosition=1
playCount=1
autoStart=1
loop=-1
currentMarker=0
invokeURLs=-1
volume=200
mute=0
uiMode=full
stretchToFit=0
windowlessVideo=0
enabled=-1
enableContextMenu=0
fullScreen=0
SAMIStyle
SAMILang
SAMIFilename
captioningID
enableErrorDialogs=0
_cx=7938
_cy=6482
width=400
height=225>
</embed>
</object>
#3300FF
</center>
</td>
</tr>
<tr>
<td class="thead" width="100%" height="25">
<center>
<font color="#6600FF">
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">$attachment[filename]</a> <span class="smallfont">($attachment[filesize] bytes, $attachment[counter] views)</span>
</font>
</center>
</td>
</tr>
</table>
</center>
<br>
]]>
</template>
<template name="postbit_attachmentwmv" templatetype="template" date="1125000000" username="Stitch" version="3.5.0 Release Candidate 3">
<![CDATA[
<br>
<center>
<table border="0" align="center" width="400" cellspacing="0" cellpadding="0" height="350">
<tr>
<td class="thead" width="100%" height="25">
<center>
<font color="#FFFFFF">
WMV Attachment
</font>
</center>
</td>
</tr>
<tr>
<td width="100%" height="350">
<center>
<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player" width="400" height="300">
<param name="URL" value="$wmvfilenameandlocation">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="1">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="loop" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="100">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="0">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="7938">
<param name="_cy" value="6482">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/d...r/default.asp" src="$wmvfilenameandlocation"
rate=1
balance=0
currentPosition=1
playCount=1
autoStart=1
loop=-1
currentMarker=0
invokeURLs=-1
volume=100
mute=0
uiMode=full
stretchToFit=0
windowlessVideo=0
enabled=-1
enableContextMenu=0
fullScreen=0
SAMIStyle
SAMILang
SAMIFilename
captioningID
enableErrorDialogs=0
_cx=7938
_cy=6482
width=400
height=300>
</embed>
</object>
</center>
</td>
</tr>
<tr>
<td class="thead" width="100%" height="25">
<center>
<font color="#6600FF">
<a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">$attachment[filename]</a> <span class="smallfont">($attachment[filesize] bytes, $attachment[counter] views)</span>
</font>
</center>
</td>
</tr>
</table>
</center>
<br>
]]>
</template>
</templates>
<phrases>
<phrasetype name="GLOBAL" fieldname="global">
<phrase name="attach_wmv"><![CDATA[Window Media Video]]></phrase>
<phrase name="attach_mp3"><![CDATA[MPEG-1 layer 3 Audio Encoding]]></phrase>
<phrase name="attached_flash"><![CDATA[Attached Flash File:]]></phrase>
<phrase name="attach_wma"><![CDATA[Window Media Audio :]]></phrase>
</phrasetype>
</phrases>
</product>
Select all and copy to Notepad
บันทึกให้เป็นไฟล์ media_product.xml
Bookmarks