修復視頻帖遮住"推荐"連結區塊的修改方式 for 6.0正式版
應該算一個小問題,有2個部份,一個是RC1版時已發的影音,和正式版發的影音方式不同,在6.0正式版中目前是同時存在,
個別修正如下:
<於6.0正式版發表的影音檔>
解決方式打開
templates\default\viewthread_video.htm
加入wmode="opaque"的代碼
找到
- <param name="allowFullScreen" value="true">
- <embed src='$playurl' allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowfullscreen="true" height="373" width="438">
复制代码
修改後取代為
- <param name="allowFullScreen" value="true">
- <param name="wmode" value="opaque">
- <embed src='$playurl' allowScriptAccess="always" wmode="opaque" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowfullscreen="true" height="373" width="438">
复制代码
<於6.0RC1版時發表的影音檔>
打開\include\discuzcode.func.php
找到一段代碼
- if($videoopen) {
- function videocode($message, $tid, $pid) {
- global $vsiteid, $vsiteurl, $boardurl;
- $vsiteurl = urlencode($vsiteurl);
- $playurl = "http://union.bokecc.com/flash/discuz2/player.swf?siteid=$vsiteid&vid=\\2&tid=$tid&pid=$pid&autoStart=\\1&referer=".urlencode($boardurl."redirect.php?goto=findpost&pid=$pid&ptid=$tid");
- $flashplayer = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="object_flash_player" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="373" width="438">';
- $flashplayer .= '<param name="movie" value="'.$playurl.'">';
- $flashplayer .= '<param name="quality" value="high">';
- $flashplayer .= '<param name="allowScriptAccess" value="always">';
- $flashplayer .= '<param name="allowFullScreen" value="true">';
- $flashplayer .= '<embed src="'.$playurl.'" allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowfullscreen="true" height="373" width="438">';
- $flashplayer .= '</object>';
- return preg_replace("/\[video=(\d)\](\w+)\[\/video\]/", "$flashplayer", $message);
- }
- }
复制代码
取代為
- if($videoopen) {
- function videocode($message, $tid, $pid) {
- global $vsiteid, $vsiteurl, $boardurl;
- $vsiteurl = urlencode($vsiteurl);
- $playurl = "http://union.bokecc.com/flash/discuz2/player.swf?siteid=$vsiteid&vid=\\2&tid=$tid&pid=$pid&autoStart=\\1&referer=".urlencode($boardurl."redirect.php?goto=findpost&pid=$pid&ptid=$tid");
- $flashplayer = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="object_flash_player" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" height="373" width="438">';
- $flashplayer .= '<param name="movie" value="'.$playurl.'">';
- $flashplayer .= '<param name="quality" value="high">';
- $flashplayer .= '<param name="allowScriptAccess" value="always">';
- $flashplayer .= '<param name="allowFullScreen" value="true">';
- $flashplayer .= '<param name="wmode" value="opaque">';
- $flashplayer .= '<embed src="'.$playurl.'" allowScriptAccess="always" wmode="opaque" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowfullscreen="true" height="373" width="438">';
- $flashplayer .= '</object>';
- return preg_replace("/\[video=(\d)\](\w+)\[\/video\]/", "$flashplayer", $message);
- }
- }
复制代码
以上都只是加上wmode="opaque"的屬性
更新後台緩存
完成!!
[ 本帖最后由 chino 于 2007-9-3 03:18 编辑 ] |