Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 全功能播放器+FLASH+歌词秀+全按扭(HIDE) For 3.0f by oytktk

[复制链接]
 楼主| oytktk 发表于 2005-10-23 14:25:18 | 显示全部楼层
原帖由 dqcy 于 2005-10-23 14:24 发表


我以前装了"贴内支持多媒体在线播放{自定义大小/是否自播}{添加专用按扭}"这个插件的,请问相应的补丁在那里? 因为这类插件实在太多了,我都乱了,烦请指引一下,谢谢


原贴里....你把DISCUZCODE里的重新加一下就OK了~
回复

使用道具 举报

dqcy 发表于 2005-10-23 14:36:41 | 显示全部楼层
谢谢,我这就去看看
回复

使用道具 举报

M55 发表于 2005-11-3 17:45:55 | 显示全部楼层
希望兄弟有时间改个 D25SP1 的出来,你原来的那个D25的好象不支持插入歌词功能哦(当然,这只是期待啦,等你有时间再改不迟)
回复

使用道具 举报

默契网管 发表于 2005-11-20 22:14:42 | 显示全部楼层
D3.0  B3  不能用  歌词功能
回复

使用道具 举报

默契网管 发表于 2005-11-21 21:57:17 | 显示全部楼层
这是你让我们找的
  1. if(!$bbcodeoff && $allowimgcode) {
  2.                 if(empty($discuzcodes['searcharray']['imgcode'])) {
  3.                         $discuzcodes['searcharray']['imgcode'] = array(
  4.                                 "/\[swf\]\s*([^\[]+?)\s*\[\/swf\]/ies",
  5.                                 "/\[img\]\s*([^\[]+?)\s*\[\/img\]/ies",
  6.                                 "/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[]+?)\s*\[\/img\]/ies"
  7.                         );
  8.                         $discuzcodes['replacearray']['imgcode'] = array(
  9.                                 "bbcodeurl('\\1', ' <img src="images/attachicons/flash.gif" align="absmiddle"> <a href="%s" target="_blank">Flash: %s</a> ')",
  10.                                 "bbcodeurl('\\1', '<img src="%s" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.resized) this.style.cursor=\'hand\';" onclick="if(!this.resized) {return true;} else {window.open(\'%s\');}" onmousewheel="return imgzoom(this);">')",
  11.                                 "bbcodeurl('\\3', '<img width="\\1" height="\\2" src="%s" border="0">')"
  12.                         );
  13.                 }
  14.                 $message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
  15.         }
复制代码




这是找到的....3.0 B3的
  1. if(!$bbcodeoff && $allowimgcode) {
  2.                 if(empty($discuzcodes['searcharray']['imgcode'])) {
  3.                         $discuzcodes['searcharray']['imgcode'] = array(
  4.                                 "/\[swf\]\s*([^\[]+?)\s*\[\/swf\]/ies",
  5.                                 "/\[img\]\s*([^\[]+?)\s*\[\/img\]/ies",
  6.                                 "/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[]+?)\s*\[\/img\]/ies"
  7.                         );
  8.                         $discuzcodes['replacearray']['imgcode'] = array(
  9.                                 "bbcodeurl('\\1', ' <img src="images/attachicons/flash.gif" align="absmiddle"> <a href="%s" target="_blank">Flash: %s</a> ')",
  10.                                 "bbcodeurl('\\1', '<img src="%s" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}" onmouseover="if(this.resized) this.style.cursor=\'hand\';" onclick="if(!this.resized) {return true;} else {window.open(\'%s\');}" onmousewheel="return imgzoom(this);">')",
  11.                                 "bbcodeurl('\\3', '<img width="\\1" height="\\2" src="%s" border="0">')"
  12.                         );
  13.                 }

  14.                 $message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
  15.         }
复制代码
回复

使用道具 举报

 楼主| oytktk 发表于 2005-11-21 21:59:58 | 显示全部楼层
这个是没问题的...那你先等等,等我升级到3.0B3看看先.
回复

使用道具 举报

默契网管 发表于 2005-11-21 22:17:00 | 显示全部楼层
恩 记得PM 我
回复

使用道具 举报

 楼主| oytktk 发表于 2005-11-21 23:51:42 | 显示全部楼层
D3中

查找:


if(!$bbcodeoff && $allowbbcode && stristr($message,'[/code]')) {


改为:

if(!$bbcodeoff && $allowbbcode && (stristr($message,'[/code]') || stristr($message,'[/gcx]'))) {
回复

使用道具 举报

lcfy 发表于 2005-11-22 11:29:49 | 显示全部楼层
请问,D3.0F B3 中是不是不用改这一步?

include/discuzcode.func.php修改开始

查找:


CODE:[Copy to clipboard]if(!$bbcodeoff && $allowimgcode) {
                if(empty($discuzcodes['searcharray']['imgcode'])) {
                        $discuzcodes['searcharray']['imgcode'] = array(
                                "/\[swf\]\s*([^\[]+?)\s*\[\/swf\]/ies",
                                "/\[img\]\s*([^\[]+?)\s*\[\/img\]/ies",
                                "/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[]+?)\s*\[\/img\]/ies"
                        );
                        $discuzcodes['replacearray']['imgcode'] = array(
                                "bbcodeurl('\\1', ' <img src=\"images/attachicons/flash.gif\" align=\"absmiddle\"> <a href=\"%s\" target=\"_blank\">Flash: %s</a> ')",
                                "bbcodeurl('\\1', '<img src=\"%s\" border=\"0\" onload=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}\" onmouseover=\"if(this.resized) this.style.cursor=\'hand\';\" onclick=\"if(!this.resized) {return true;} else {window.open(\'%s\');}\" onmousewheel=\"return imgzoom(this);\">')",
                                "bbcodeurl('\\3', '<img width=\"\\1\" height=\"\\2\" src=\"%s\" border=\"0\">')"
                        );
                }
                $message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
        }
整段替换为:


CODE:[Copy to clipboard]        if(!$bbcodeoff && $allowimgcode) {
                if(empty($discuzcodes['searcharray']['imgcode'])) {
                        $discuzcodes['searcharray']['imgcode'] = array(
                                "/\[swf\]\s*([^\[]+?)\s*\[\/swf\]/ies",
                                "/\[img\]\s*([^\[]+?)\s*\[\/img\]/ies",
                                "/\[swf=(\d+?)[x|\,](\d+?)\]\s*(.+?)\s*\[\/swf\]/ies",
                                "/\[wmv\]\s*(.+?)\s*\[\/wmv\]/ies",
                                "/\[mp3\]\s*(.+?)\s*\[\/mp3\]/ies",
                                "/\[ron\]\s*(.+?)\s*\[\/ron\]/ies",
                                "/\[rm\]\s*(.+?)\s*\[\/rm\]/ies",
                                "/\[wmv=(\d+?)[x|\,](\d+?)[x|\,](\d+?)\]\s*(.+?)\s*\[\/wmv\]/ies",
                                "/\[rm=(\d+?)[x|\,](\d+?)[x|\,](\d+?)\]\s*(.+?)\s*\[\/rm\]/ies",
                                "/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[]+?)\s*\[\/img\]/ies"
                        );
                        $discuzcodes['replacearray']['imgcode'] = array(
                                "bbcodeurl('\\1', '<a href=\"%s\" target=\"_blank\"><u>※单击鼠标在新窗口中打开※</u></a><br><br><embed width=\"360\" height=\"300\" src=\"%s\" type=\"application/x-shockwave-flash\"></embed>')",
                                "bbcodeurl('\\1', '<br><img src=\"%s\" border=\"0\" onload=\"if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt=\'单击这里开新视窗查看\\n按住CTRL,并滚动鼠标滚轮缩放图片大小\';}\" onmouseover=\"if(this.resized) this.style.cursor=\'hand\';\" onclick=\"if(!this.resized) {return true;} else {window.open(\'%s\');}\" onmousewheel=\"return imgzoom(this);\">')",
                                "bbcodeurl('\\3', '<a href=\"%s\" target=\"_blank\"><u>※单击鼠标在新窗口中打开※</u></a><br><br><embed width=\"\\1\" height=\"\\2\" src=\"%s\" type=\"application/x-shockwave-flash\"></embed>')",
                                "bbcodeurl('\\1', '<br><input type=\"button\" name=\"mplayer\" onclick=\"document.MediaPlayer.DisplaySize=3\" value=\"全屏播放\"> [ 双击退出全屏播放状态 ] <br><br><object align=\"middle\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" class=\"OBJECT\" id=\"MediaPlayer\" width=\"360\" height=\"300\" ><PARAM NAME=\"AutoStart\" VALUE=\"0\" ><param name=\"enableContextMenu\" value=\"0\"><param name=\"ShowStatusBar\" value=\"-1\"><param name=\"Filename\" value=\"%s\"><embed type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" flename=\"mp\" src=\"%s\" width=\"360\" height=\"300\"></embed></object>')",
                                "bbcodeurl('\\1', '<object align=\"middle\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" class=\"OBJECT\" id=\"MediaPlayer\" width=\"480\" height=\"68\" ><PARAM NAME=\"AutoStart\" VALUE=\"-1\" ><param name=\"enableContextMenu\" value=\"0\"><param name=\"ShowStatusBar\" value=\"-1\"><param name=\"Filename\" value=\"%s\"><embed type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" flename=\"mp\" src=\"%s\" width=\"480\" height=\"68\"></embed></object>')",
                                "bbcodeurl('\\1', '<object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" id=\"Player\" width=\"480\" height=\"0\" viewastext><param name=\"Autostart\" value=\"-1\"><param name=\"CONTROLS\" value=\"ImageWindow\"><param name=\"enableContextMenu\" value=\"0\"><param name=\"CONSOLE\" value=\"_master\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=64 id=Player width=480 VIEWASTEXT><param name=\"_ExtentX\" value=\"18256\"><param name=\"_ExtentY\" value=\"794\"><param name=\"Autostart\" value=\"-1\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"><param name=\"BACKGROUNDCOLOR\" value=\"#000000\"><param name=\"SRC\" value=\"%s\"></object>')",
                                "bbcodeurl('\\1', '<br><input type=\"button\" name=\"rmplayer\" onclick=\"document.rmplayer.SetFullScreen()\" value=\"全屏播放\"> [ 按ESC退出全屏播放状态 ] <br><br><object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" id=\"rmplayer\" width=\"360\" height=\"300\" viewastext><param name=\"Autostart\" value=\"0\"><param name=\"CONTROLS\" value=\"ImageWindow\"><param name=\"enableContextMenu\" value=\"0\"><param name=\"CONSOLE\" value=\"_master\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=64 id=Player width=360 VIEWASTEXT><param name=\"_ExtentX\" value=\"18256\"><param name=\"_ExtentY\" value=\"794\"><param name=\"Autostart\" value=\"0\"><param name=\"LOOP\" value=\"0\"><param name=\"CENTER\" value=\"0\"><param name=\"BACKGROUNDCOLOR\" value=\"#000000\"><param name=\"SRC\" value=\"%s\"></object>')",
                                "bbcodeurl('\\4', '<br><input type=\"button\" name=\"mplayer\" onclick=\"document.MediaPlayer.DisplaySize=3\" value=\"全屏播放\"> [ 双击退出全屏播放状态 ] <br><br><object align=\"middle\" classid=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" class=\"OBJECT\" id=\"MediaPlayer\" width=\"\\1\" height=\"\\2\" ><PARAM NAME=\"AutoStart\" VALUE=\"\\3\" ><param name=\"ShowStatusBar\" value=\"-1\"><param name=\"enableContextMenu\" value=\"0\"><param name=\"Filename\" value=\"%s\"><embed type=\"application/x-oleobject\" codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\" width=\"\\1\" height=\"\\2\"></embed></object>')",
                                "bbcodeurl('\\4', '<br><input type=\"button\" name=\"rmplayer\" onclick=\"document.rmplayer.SetFullScreen()\" value=\"全屏播放\"> [ 按ESC退出全屏播放状态 ] <br><br><object width=\"\\1\" height=\"\\2\" classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" id=\"rmplayer\" viewastext><param name=\"Autostart\" value=\"\\3\"><param name=\"CONTROLS\" value=\"ImageWindow\"><param name=\"enableContextMenu\" value=\"0\"><param name=\"CONSOLE\" value=\"_master\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"></object><br><object classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=64 id=Player width=\"\\1\" VIEWASTEXT><param name=\"_ExtentX\" value=\"18256\"><param name=\"_ExtentY\" value=\"794\"><param name=\"Autostart\" value=\"\\3\"><param name=\"LOOP\" value=\"-1\"><param name=\"CENTER\" value=\"0\"><param name=\"SRC\" value=\"%s\"></object>')",
                                "bbcodeurl('\\3', '<img width=\"\\1\" height=\"\\2\" src=\"%s\" border=\"0\">')"
                        );
                }
                $message = preg_replace($discuzcodes['searcharray']['imgcode'], $discuzcodes['replacearray']['imgcode'], $message);
        }
回复

使用道具 举报

默契网管 发表于 2005-11-22 12:25:30 | 显示全部楼层
OK  了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-6-2 15:10 , Processed in 0.099239 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表