原帖是发在4。0区的我在4。1上装了一样可以使用,不用做任何修改
(完全通用)
我只是转发一下~希望斑竹能加到4。1插件区内
=========================================================
== 版权:咕咕 ==
== ==
== 原帖地址:https://discuz.dismall.com/viewthread.php?tid=193751&extra=page%3D2 ==
=========================================================
在header.htm模板中搜索
- <script language="JavaScript" src="include/common.js"></script>
复制代码
下面添加
- <script language="JavaScript" src="./ylei_mfqq/xnc.js"></script>
复制代码
修改post_bbinsert.htm模板
搜索
在前面加入
- <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>
复制代码
修改 include/discuzcode.func.php
搜索
- if(!$bbcodeoff && $allowimgcode) {
复制代码
前加
此显示方式是每个魔法表情占一行,但只要鼠标移上图片就能自动播放。
- $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=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>", $message);
复制代码
下载附件後并解压,把 ylei_mfqq 整个目录放到论坛根目录
这个作者好象很多....但是现在修改的就是偶啦~~
图片和FLASH下载!!!
http://wmdly.btyou.com/mfqq.rar |