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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 播放器+FLASH+歌词秀+全按扭(HIDE) For 4.0.0 by oytktk

[复制链接]
zjtx 发表于 2005-12-18 16:40:54 | 显示全部楼层
if(!$bbcodeoff && $allowimgcode) {
                if(empty($discuzcodes['searcharray']['imgcode'])) {
                        $discuzcodes['searcharray']['imgcode'] = array(
                                "/\[swf\]\s*([^\[\<\r\n]+?)\s*\[\/swf\]/ies",
                                "/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies",
                                "/\[img=(\d{1,3})[x|\,](\d{1,3})\]\s*([^\[\<\r\n]+?)\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.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor=\'hand\'; this.alt=\'Click here to open new window\\nCTRL+Mouse wheel to zoom in/out\';}\" 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);
        }


   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);
        }
回复

使用道具 举报

zjtx 发表于 2005-12-18 16:42:53 | 显示全部楼层
上面找的 不完全匹配的
应该没关系的吧?
回复

使用道具 举报

aliex 发表于 2005-12-18 21:03:14 | 显示全部楼层
OK,好东西,顶了
回复

使用道具 举报

PHP论坛 发表于 2005-12-18 21:39:19 | 显示全部楼层
不好。希望楼主能够写一个简单点的。这样整段替换很容易出问题。。。。。
不适合菜鸟安装
回复

使用道具 举报

oytktk 发表于 2005-12-18 21:56:34 | 显示全部楼层
原帖由 PHP论坛 于 2005-12-18 21:39 发表
不好。希望楼主能够写一个简单点的。这样整段替换很容易出问题。。。。。
不适合菜鸟安装



就是因为考虑到安装时容易出问题对新手来说不利,所以才用了替换,而且这段代码基本是不会动的.
你就放心使用吧.
回复

使用道具 举报

默契网管 发表于 2005-12-18 22:17:50 | 显示全部楼层
支持 老O
回复

使用道具 举报

codekk 发表于 2005-12-18 23:00:55 | 显示全部楼层
找不到那代码
回复

使用道具 举报

烤烟者 发表于 2005-12-19 01:09:51 | 显示全部楼层
用上了 感觉超好
回复

使用道具 举报

wyu 发表于 2005-12-19 01:20:23 | 显示全部楼层
终于搞定了,刚才还以为和emule插件有冲突呢,原来是修改的时候太粗心了

感谢作者开发这么好的插件

不过Flash无法定义大小啊

[ 本帖最后由 wyu 于 2005-12-19 01:32 编辑 ]
回复

使用道具 举报

wyu 发表于 2005-12-19 13:52:32 | 显示全部楼层
Flash自定义大小也搞定了,再次感谢作者
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-17 02:12 , Processed in 0.101349 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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