TShopping
標題:
Dz 6.0 上傳媒體在線播放
[打印本頁]
作者:
woff
時間:
2008-5-31 12:38
標題:
Dz 6.0 上傳媒體在線播放
測試 Demo:
http://www.kkfriend.com/dz6/view
... &extra=page%3D1
ps. Firefox 未支援 (待修正)
打開 default/discuzcode.htm
找:注意有兩處這個代碼,在第一個的下面添加
global $attachrefcheck, $extcredits, $creditstrans, $ftp, $thumbstatus;
複製代碼
下面添加
$media = array('', 'wma', 'mp3','wav', 'mid'); //音訊播放格式
$rms = array('', 'rm', 'rmvb'); //real 格式
$video = array('', 'wmv', 'avi', 'mpg'); //視頻格式
複製代碼
再找:
<!--{if ($attachrefcheck || $attach['remote']) && !($attach['remote'] && substr($ftp['attachurl'], 0, 3) != 'ftp' && !$ftp['hideurl'])}-->
<img src="attachment.php?aid=$attach[aid]&noupdate=yes" border="0" onload="attachimg(this, 'load')" onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, 'attachment.php?aid=$attach[aid]')" alt="$attach[filename]" />
<!--{else}-->
<img src="$attach[url]/$attach[attachment]" onload="attachimg(this, 'load')" onmouseover="attachimg(this, 'mouseover')" onclick="zoom(this, '$attach[url]/$attach[attachment]')" alt="$attach[filename]" />
<!--{/if}-->
<!--{/if}-->
</p>
<!--{/if}-->
</dd>
複製代碼
下面添加:
<!--/////////媒體在線播放------------->
<!--{elseif array_search(fileext($attach['filename']), $media)}-->
<dt>
$attach[attachicon]
<a href="attachment.php?aid=$attach[aid]" target="_blank">$attach[filename]</a>
<em>($attach[attachsize])</em>
</dt>
<dd>
<p>
$attach[dateline], {lang downloads}attach[downloads]
<!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
<!--{if $attach['price']}-->
, {lang price}: <strong>{$extcredits[$creditstrans][title]} $attach[price] {$extcredits[$creditstrans][unit]}</strong> [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
<!--{if !$attach['payed']}-->
[<a href="misc.php?action=attachpay&aid=$attach[aid]" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
</dd>
<!--{if !$attach['price'] || $attach['payed']}-->
<OBJECT align=middle class=OBJECT classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 height=65 id=MediaPlayer width=360>
<ARAM NAME="AudioStream" VALUE="-1">
<ARAM NAME="AutoSize" VALUE="0">
<ARAM NAME="AutoStart" VALUE="0"> //自動播放0改-1
<ARAM NAME="AnimationAtStart" VALUE="-1">
<ARAM NAME="AllowScan" VALUE="-1">
<ARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<ARAM NAME="AutoRewind" VALUE="0">
<ARAM NAME="Balance" VALUE="0">
<ARAM NAME="BaseURL" VALUE="">
<ARAM NAME="BufferingTime" VALUE="5">
<ARAM NAME="CaptioningID" VALUE="">
<ARAM NAME="ClickToPlay" VALUE="-1">
<ARAM NAME="CursorType" VALUE="0">
<ARAM NAME="CurrentPosition" VALUE="0">
<ARAM NAME="CurrentMarker" VALUE="0">
<ARAM NAME="DefaultFrame" VALUE="">
<ARAM NAME="DisplayBackColor" VALUE="0">
<ARAM NAME="DisplayForeColor" VALUE="16777215">
<ARAM NAME="DisplayMode" VALUE="0">
<ARAM NAME="DisplaySize" VALUE="4">
<ARAM NAME="Enabled" VALUE="-1">
<ARAM NAME="EnableContextMenu" VALUE="-1">
<ARAM NAME="EnablePositionControls" VALUE="-1">
<ARAM NAME="EnableFullScreenControls" VALUE="0">
<ARAM NAME="EnableTracker" VALUE="-1">
<ARAM NAME="Filename" VALUE="attachment.php?aid=$attach[aid]&noupdate=yes">
<ARAM NAME="InvokeURLs" VALUE="-1">
<ARAM NAME="Language" VALUE="-1">
<ARAM NAME="Mute" VALUE="0">
<ARAM NAME="layCount" VALUE="10">
<ARAM NAME="reviewMode" VALUE="0">
<ARAM NAME="Rate" VALUE="1">
<ARAM NAME="SAMILang" VALUE="">
<ARAM NAME="SAMIStyle" VALUE="">
<ARAM NAME="SAMIFileName" VALUE="">
<ARAM NAME="SelectionStart" VALUE="-1">
<ARAM NAME="SelectionEnd" VALUE="311.385">
<ARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<ARAM NAME="SendWarningEvents" VALUE="-1">
<ARAM NAME="SendErrorEvents" VALUE="-1">
<ARAM NAME="SendKeyboardEvents" VALUE="0">
<ARAM NAME="SendMouseClickEvents" VALUE="0">
<ARAM NAME="SendMouseMoveEvents" VALUE="0">
<ARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<ARAM NAME="ShowCaptioning" VALUE="0">
<ARAM NAME="ShowControls" VALUE="-1">
<ARAM NAME="ShowAudioControls" VALUE="-1">
<ARAM NAME="ShowDisplay" VALUE="0">
<ARAM NAME="ShowGotoBar" VALUE="0">
<ARAM NAME="ShowPositionControls" VALUE="-1">
<ARAM NAME="ShowStatusBar" VALUE="-1">
<ARAM NAME="ShowTracker" VALUE="-1">
<ARAM NAME="TransparentAtStart" VALUE="0">
<ARAM NAME="VideoBorderWidth" VALUE="0">
<ARAM NAME="VideoBorderColor" VALUE="0">
<ARAM NAME="VideoBorder3D" VALUE="0">
<ARAM NAME="Volume" VALUE="-130">
<ARAM NAME="WindowlessVideo" VALUE="0">
</OBJECT>
<!--{/if}-->
<!--{elseif array_search(fileext($attach['filename']), $video)}-->
<dt>
$attach[attachicon]
<a href="attachment.php?aid=$attach[aid]" target="_blank">$attach[filename]</a>
<em>($attach[attachsize])</em>
</dt>
<dd>
<p>
$attach[dateline], {lang downloads}attach[downloads]
<!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
<!--{if $attach['price']}-->
, {lang price}: <strong>{$extcredits[$creditstrans][title]} $attach[price] {$extcredits[$creditstrans][unit]}</strong> [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
<!--{if !$attach['payed']}-->
[<a href="misc.php?action=attachpay&aid=$attach[aid]" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
</dd>
<!--{if !$attach['price'] || $attach['payed']}-->
<object width="360" height="300" id="player$attach[aid]" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="AutoStart" value="0">
<param NAME="Balance" value="0">
<param name="enabled" value="-1">
<param NAME="EnableContextMenu" value="-1">
<param NAME="url" value="attachment.php?aid=$attach[aid]&noupdate=yes">
<param NAME="layCount" value="1">
<param name="rate" value="1">
<param name="currentPosition" value="0">
<param name="currentMarker" value="1">
<param name="defaultFrame" value="">
<param name="invokeURLs" value="0">
<param name="baseURL" value="">
<param name="stretchToFit" value="0">
<param name="volume" value="50">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="windowlessVideo" value="0">
<param name="fullScreen" value="0">
<param name="enableErrorDialogs" value="-1">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="ShowTracker" value="-1">
</object>
<!--{/if}-->
<!--{elseif fileext($attach['filename'])=='swf'||fileext($attach['filename'])=='fla'}-->
<dt>
$attach[attachicon]
<a href="attachment.php?aid=$attach[aid]" target="_blank">$attach[filename]</a>
<em>($attach[attachsize])</em>
</dt>
<dd>
<p>
$attach[dateline], {lang downloads}attach[downloads]
<!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
<!--{if $attach['price']}-->
, {lang price}: <strong>{$extcredits[$creditstrans][title]} $attach[price] {$extcredits[$creditstrans][unit]}</strong> [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
<!--{if !$attach['payed']}-->
[<a href="misc.php?action=attachpay&aid=$attach[aid]" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
</dd>
<!--{if !$attach['price'] || $attach['payed']}-->
<embed id="player$attach[aid]" width="480" height="360" pluginspage="http://www.macromedia.com/go/getflashplayer" src="attachment.php?aid=$attach[aid]¬humb=yes" type="application/x-shockwave-flash" menu="true" quality="high">
</embed>
<!--{/if}-->
<!--{elseif array_search(fileext($attach['filename']), $rms)}-->
<dt>
$attach[attachicon]
<a href="attachment.php?aid=$attach[aid]" target="_blank">$attach[filename]</a>
<em>($attach[attachsize])</em>
</dt>
<dd>
<p>
$attach[dateline], {lang downloads}attach[downloads]
<!--{if $attach['readperm']}-->, {lang readperm}: <strong>$attach[readperm]</strong><!--{/if}-->
<!--{if $attach['price']}-->
, {lang price}: <strong>{$extcredits[$creditstrans][title]} $attach[price] {$extcredits[$creditstrans][unit]}</strong> [<a href="misc.php?action=viewattachpayments&aid=$attach[aid]" target="_blank">{lang pay_view}</a>]
<!--{if !$attach['payed']}-->
[<a href="misc.php?action=attachpay&aid=$attach[aid]" target="_blank">{lang attachment_buy}</a>]
<!--{/if}-->
<!--{/if}-->
</p>
<!--{if $attach['description']}--><p>{$attach[description]}</p><!--{/if}-->
</dd>
<!--{if !$attach['price'] || $attach['payed']}-->
<object width="420" height="280" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" id="layer_name" viewastext>
<param name="Autostart" value="0">
<param name="CONTROLS" value="ImageWindow">
<param name="CONSOLE" value="_master">
<param name="LOOP" value="0">
<param name="CENTER" value="0">
<param name="_ExtentX" value="9525">
<param name="_ExtentY" value="7938">
<param name="SHUFFLE" value="0">
<param name="REFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="NUMLOOP" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
</object>
<object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=68 width="420" VIEWASTEXT>
<param name="_ExtentX" value="9525">
<param name="_ExtentY" value="1693">
<param name="Autostart" value="0">
<param name="LOOP" value="0">
<param name="CENTER" value="0">
<param name="SRC" value="$attach[url]/$attach[attachment]">
<param name="SHUFFLE" value="0">
<param name="REFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="NUMLOOP" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
</object>
<!--{/if}-->
<!--/////////媒體在線播放------------->
複製代碼
歡迎光臨 TShopping (http://www.tshopping.com.tw/)
Powered by Discuz! X3.2