已修正
论坛升级到了5.0可是原来的巧嘴娃娃和魔法表情不能在5.0中用了,可在官方又没人发5.0的,所以自己研究了下,也小改了一下东东!!
原帖https://discuz.dismall.com/thread-193751-1-3.html
在header.htm模板中搜索- <script type="text/javascript" src="include/common.js"></script>
复制代码 下面添加- <script language="JavaScript" src="./ylei_mfqq/xnc.js"></script>
复制代码 修改post_bbinsert.htm模板
搜索- <br>
- <div id="{$editorid}_switcher">
复制代码 在<br>上面加入- <TABLE cellSpacing=0 cellPadding=0 width="450"
- border=0>
- <TBODY>
- <TR>
- <TD id=SetEm></TD>
- <TD class=Dvbbs_Reply id=emot
- rowSpan=3>正在读取心情图片</TD></TR>
- <TR>
- <TD id=SetAu onclick=Show_Xnc_Audibles(1)><IMG
- title=选择巧嘴娃娃 height=18
- src="ylei_mfqq/zui.gif"
- width=18></TD></TR>
- <TR>
- <TD id=SetMe onclick=Show_Xnc_MagicEmot(1)><IMG
- title=选择魔法表情 height=18
- src="ylei_mfqq/mofa.gif"
- width=18></TD></TR></TBODY></TABLE> <SCRIPT language=JavaScript>Xnc_Emot_init()</SCRIPT>
复制代码
DZ5.0 重要修正 start
之前5.0 无法使用就是缺少下面修改..
炼之家论坛修正,观众有信心.
修改post_newreply.htm, post_editpost.htm, post_newthread.htm 三个模板
搜索
- <form method="post" id="postform"
复制代码
替换为
- <form method="post" name="input" id="postform"
复制代码
修正结束..
修改 include/discuzcode.func.php
搜索上面加
此显示方式是每个魔法表情占一行,但只要鼠标移上图片就能自动播放。
- $message = preg_replace("/\[Magic(.+?)\]/is", "<P> <img src="ylei_mfqq/gif/\\1.gif" border="0" title="魔法表情" Onmouseover=setTimeout("DispMagicEmot('\\1');",10); style="cursor: hand;border:2px solid #666666;" onmousewheel="return bbimg(this)" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;"><br>魔法表情</P>", $message);
- $message = preg_replace("/\[\Ylei_Au(.+?)\]/is", "<Span onmouseover="DispAudibles(this,\\1)"><OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=48 height=48><PARAM NAME=movie VALUE="ylei_mfqq/xnc/\\1.Swf"><param name=menu value=false><PARAM NAME=quality VALUE=high><PARAM NAME=play VALUE=false><param name="wmode" value="transparent"><embed src="ylei_mfqq/xnc/\\1.Swf" quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=48 height=48></embed></OBJECT></Span><br>巧嘴娃娃</P>", $message);
复制代码
此显示方式是多个魔法表情占一行,鼠标移上图片就能自动播放
- $message = preg_replace("/\[Magic(.+?)\]/is"<img src="ylei_mfqq/gif/\\1.gif" border="0" title="魔法表情" Onmouseover=setTimeout("DispMagicEmot('\\1');",10); style="cursor: hand;border:2px solid #666666;" onmousewheel="return bbimg(this)" onload="javascript:if(this.width>screen.width-500)this.style.width=screen.width-500;">", $message);
- $message = preg_replace("/\[\Ylei_Au(.+?)\]/is", "<Span onmouseover="DispAudibles(this,\\1)"><OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0 classid=clsid27CDB6E-AE6D-11cf-96B8-444553540000 width=48 height=48><ARAM NAME=movie VALUE="ylei_mfqq/xnc/\\1.Swf"><param name=menu value=false><ARAM NAME=quality VALUE=high><PARAM NAME=play VALUE=false><param name="wmode" value="transparent"><embed src="ylei_mfqq/xnc/\\1.Swf" quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=48 height=48></embed></OBJECT></Span>", $message);
复制代码
下载附件后并解压,把 ylei_mfqq 整个目录放到论坛根目录
图片和FLASH下载!!!
http://wmdly.btyou.com/mfqq.rar
演示
http://younc.dyndns.tv/pw4/thread-4206-1-1.html
[ 本帖最后由 younc 于 2006-10-29 20:50 编辑 ] |