网站首页   进入论坛     官方下载     使用教程     免费用户     付费用户     Bug报告     购买授权     捐助我们  
文章内容              Thread Content
 首页  >> DiY-Page程序开发  >> 程序开发讨论
让DIY-page支持DZ4。0的全功能播放器!
作者 goau   查看 6593   发表时间 2006/2/8 03:05  【论坛浏览】
################################
##名称:让DIY-page支持DZ4。0的全功能播放器!
##原创:goau
##适用版本:DiY-Page 3.5.2
##修改内容:hpmain/module/dbcmd_dz4.php
##说明:修改得比较匆促,请关注更新
##演示/技术支持:http://goau.greatweb.cn
##欢迎交换连接--冬迹网络
##播放器版本:播放器+FLASH+歌词秀+全按扭(HIDE) For 4.0.0 by oytktk
##相关帖子:http://www.discuz.net/viewthread.php?tid=201475
################################

修改hpmain/module/dbcmd_dz4.php

找到:

  代码:
if ($ifimgcode) {
$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"
);

替换为:

  代码:
if ($ifimgcode) {
$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"

);

再找:

  代码:
$replacearray['imgcode']=array(
"bbcodeurl('\\1', 'Flash: %s ')",
"bbcodeurl('\\1', '510) {this.resized=true; this.width=510; this.alt=\'".$this->dbcmdlangchars['l_viewfullsizepic']."\';}\" onmouseover=\"if(this.resized) this.style.cursor=\'hand\';\" onclick=\"if(this.resized) {window.open(this.src);}\">')",
"bbcodeurl('\\3', '')"
);

替换为:

  代码:
$replacearray['imgcode']=array(
"bbcodeurl('\\1', '全屏欣赏

')",
"bbcodeurl('\\1', '
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', '※单击鼠标在新窗口中打开※

')",
"bbcodeurl('\\1', '
[ 双击退出全屏播放状态 ]

')",
"bbcodeurl('\\1', '')",
"bbcodeurl('\\1', '
')",
"bbcodeurl('\\1', '
[ 按ESC退出全屏播放状态 ]


')",
"bbcodeurl('\\4', '
[ 双击退出全屏播放状态 ]

')",
"bbcodeurl('\\4', '
[ 按ESC退出全屏播放状态 ]


')",
"bbcodeurl('\\3', '')"
);

再找:

  代码:
function threadcontent($tid,$readmultiposts,$banfidinout,$banfidlist,$bantidlist,$titlefontsize,$contentfontsize,$titlemaxlength,$dateformat,$attachshowahead,$attachshowdetail,$showreplies,$replieslimit,$replieswordslength,$js,$jsid) {
$tid=intval($tid);
$readmultiposts= intval($readmultiposts)==1 ? 1 : 0;
$banfidinout= intval($banfidinout)==1 ? 1 : 0;
$titlefontsize= intval($titlefontsize)==0 ? 18 : intval($titlefontsize);
$contentfontsize= intval($contentfontsize)==0 ? 12 : intval($contentfontsize);
$titlemaxlength= intval($titlemaxlength)==0 ? 60 : intval($titlemaxlength);
$dateformat= trim($dateformat)=='' ? 'Y/n/j H:i' : $dateformat;
$attachshowahead= intval($attachshowahead)==1 ? 1 : 0;
$attachshowdetail= intval($attachshowdetail)==1 ? 1 : 0;
$showreplies= intval($showreplies)==1 ? 1 : 0;
$replieslimit= intval($replieslimit)==0 ? 10 : intval($replieslimit);
$replieswordslength= intval($replieswordslength)==0 ? 200 : intval($replieswordslength);

上面添加:

  代码:
function gcxdisp($code) {
global $discuzcodes;
$discuzcodes['pcodecount']++;
$code = htmlspecialchars(str_replace('\\"', '"', preg_replace("/^[\n\r]*(.+?)[\n\r]*$/is", "\\1", $code)));
$discuzcodes['codehtml'][$discuzcodes['pcodecount']] = "
$code
";
$discuzcodes['codecount']++;
return "[\tDISCUZ_CODE_$discuzcodes[pcodecount]\t]";
}

再找:

  代码:
$message=preg_replace("/\s*\[code\](.+?)\[\/code\]\s*/is","

".$this->dbcmdlangchars['l_code'].":
\\1

",$message);

下面添加:

  代码:
$message = preg_replace("/\s*\[gcx\](.+?)\[\/gcx\]\s*/is", "

".$this->dbcmdlangchars['l_gcxdisp'].":
\\1

",$message);

修改完毕,进入后台更新页面

[ 本帖最后由 goau 于 2006-2-8 20:43 编辑 ]

留位更新

序号 评论者 共有评论 17   【论坛浏览】  【发表评论】 评论时间
11 hayashi 用力顶

我才发现...原来有插件..~
2006/3/27 11:13
12 wenshuang 3.5.3已经支持这些代码了 2006/3/27 11:30
13 hayashi 我的 hpmain里面没有 /module/ 这事最新版吗 怎么连续两个我都改不暸~ 不是没这个档案 寄售 收寻不到 那段码~ 2006/3/27 14:59
14 wenshuang

  引用:
原帖由 hayashi 于 2006-3-27 14:59 发表
我的 hpmain里面没有 /module/ 这事最新版吗 怎么连续两个我都改不暸~ 不是没这个档案 寄售 收寻不到 那段码~

DIYPAGE3.5.3已经支持这个功能了,不必再改
2006/3/27 15:11
15 hayashi 对不起但是婐还是看不到

长达七分钟的超神的控球

作者: dvdlin 查看次数: 3 发表时间: 2006/3/23 05:12 【论坛流览】

[mv]http://video.premiumtv.co.uk/rangersfc/video/mrwoo_hi.wmv[/mv]<---这个我强制 再露台装了一个 加了一个mv disuz code就 好了
问题是 iframe要如何野让他能用呢???PS:j我装的的是 这个插件http://www.alan888.com/Discuz/viewthread.php?tid=57084&highlight=%BC%BD%A9%F1
+iframehttp://www.alan888.com/Discuz/viewthread.php?tid=57166

[ 本帖最后由 hayashi 于 2006-3-29 06:17 编辑 ]
2006/3/28 17:52
16 hayashi 还有一个问题顺便问一下大大 就是 首页那些可以最新图案..只能 看到上传的附件妈 有办法改成别人贴的图也看的到吗?
知识不足请多多包含~

[ 本帖最后由 hayashi 于 2006-3-28 17:59 编辑 ]
2006/3/28 17:58
17 wenshuang 可在hpmain/bbcode.php中添加,把其中wmv /wmv 改成 mv就好 2006/3/30 19:53
 共有评论数 17  每页显示 10
页码 2/2  |<  <<   1 2   >>  >| 
Powered by DiY-Page 5.2.0 © 2005-2008