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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 彻底淘汰系统自带的表情排列模式FOR5.0

[复制链接]
clf2275 发表于 2006-9-5 21:36:19 | 显示全部楼层 |阅读模式
DZ自带的排列模式只能摆出12个表情 还只能适合小表情用

我们今天就来淘汰系统自带的 修改地方 发表新帖 快速回复  快速发帖

还有的两个地方 发PM的地方 和编辑帖子  没弄 有空整理出来

最近发现我发的插件多被沉下去了  看来大家多只下载 不顶帖

我准备弄好这个插件 不再发布插件了~~~(这些天基本每天发一个插件,还是在插件区等人家出插件吧)

这年头

有技术的做插件不来发布   

没技术的只下插件不顶帖

一般技术发插件发的心凉


我属于第3种人哈~~~希望中间的那种人活跃一点  希望第一种人多多分享


演示地址http://www.wz52.com/bbs

演示图片




1.修改模板目录forumdisplay.htm

  1. <form method="post" id="postform" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" onSubmit="return validate(this)">
复制代码
  1. <!--{if $whosonlinestatus}-->
复制代码
的全部内容删除

替换上下面的内容
  1. <form method="post" id="postform" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" onSubmit="return validate(this)">
  2.         <input type="hidden" name="formhash" value="{FORMHASH}">
  3.         <div class="maintable"><div class="spaceborder" style="width: {TABLEWIDTH}">
  4.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
  5.         <tr><td colspan="4" class="header"><a href="member.php?action=credits&view=forum_post&fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>{lang post_fastpost}</td></tr>
  6.         <tr>
  7.         <td width="18%" class="altbg1"> <span class="bold">{lang options}</span></td>
  8.         <td width="6%" class="altbg2" align="center"><span class="bold">{lang subject}</span></td>
  9.         <td width="59%" class="altbg2">$typeselect <input type="text" name="subject" style="width: 60%" value="" tabindex="1"></td>
  10.         <td width="18%" class="altbg1"> </td>
  11.         </tr>
  12.         <tr class="bottom">
  13.         <td width="18%" class="altbg1" valign="top">
  14.         <input class="checkbox" type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
  15.         <input class="checkbox" type="checkbox" name="smileyoff" value="1"> {lang disable} <a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a><br>
  16.         <input class="checkbox" type="checkbox" name="bbcodeoff" value="1"> {lang disable} <a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a><br>
  17.         <!--{if $allowanonymous || $forum['allowanonymous']}--><input class="checkbox" type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
  18.         <input class="checkbox" type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
  19.         <input class="checkbox" type="checkbox" name="emailnotify" value="1"> {lang post_email_notify}
  20.         <!--{if $allowuseblog && $forum['allowshare']}--><br><input class="checkbox" type="checkbox" name="addtoblog" value="1"> {lang post_blog_thread}<!--{/if}-->
  21.         </td>
  22.         <td width="6%" class="altbg2" align="center" valign="top"><span class="bold">{lang content}</span></td>
  23.         <td width="59%" class="altbg2" valign="top">
  24.         <div style="width: 97%" class="smalltxt" align="right">
  25.         <textarea rows="7" cols="30" style="width: 100%; height: 120px; word-break: break-all" name="message" onKeyDown="ctlent(event);" tabindex="2"></textarea><br><fieldset style="width:100%">
  26. <span id='emo' style='display:none;width:100%;height:120;filter:blendTrans(Duration=0.5);overflow:auto;'>
  27. <script language="JavaScript" src="include/bbcode.js"></script>
  28. <table border=0>
  29. <tr>
  30. <td style="letter-spacing:1px;line-height:100%">
  31. {eval require_once DISCUZ_ROOT.'./forumdata/cache/cache_post.php';}
  32. <!--{loop array_slice($_DCACHE['smilies_display'],0,$quicksmilies_maxs) $key $smiley}-->
  33. {eval $scode= addcslashes($smiley['code'], '\\\'');}
  34. <img src="images/smilies/$smiley['url']" border="0" onmouseover="this.style.cursor='hand';" onclick="AddText('$scode');" alt='$scode'><!--{if ++$key % $quicksmilies_cols == 0}--><br><!--{/if}-->
  35. <!--{/loop}-->
  36. </td>
  37. </tr>
  38. </table>
  39. </span>
  40. </fieldset>
  41. <br>
  42.         <div class="left">
  43.         <input class="button" type="submit" name="topicsubmit" id="postsubmit" value="{lang post_topicsubmit}" tabindex="3">
  44.         {lang post_submit_hotkey}  
  45.         </div>
  46.         <input type="submit" class="lightbutton" name="previewpost" value="{lang post_previewpost}" tabindex="4">
  47.         <input type="reset" class="lightbutton" name="topicsreset" value="{lang post_topicreset}" tabindex="5">
  48.         </div>
  49.         </td>
  50.         <td width="18%" class="altbg1">
  51.                 <p align="center">
  52.                
  53. <script>
  54. function toggle(el) {
  55. if (el.style.display == 'none'){
  56. el.filters.blendTrans.Apply();
  57. el.style.display = '';
  58. el.filters.blendTrans.Play()
  59. }
  60. else {
  61. el.filters.blendTrans.Apply();
  62. el.style.display = 'none';
  63. el.filters.blendTrans.Play()
  64. }
  65. }
  66. </script>
  67. <script language="javascript">
  68. function Change (target,classname,type)
  69. {
  70. if ( target.value == target.defaultValue && type==0) target.value = '';
  71. if ( !target.value && type==1) target.value = target.defaultValue;
  72. target.className=classname;
  73. }
  74. </script>
  75. <a style='cursor:hand' onclick='toggle(emo);' title='·j&acute;M'><img src=images/emo.gif border=0></a><!--{if $smileyinsert}-->
  76.                
  77.                                 </tr>
  78.                         <!--{/if}-->
  79.                         </table>
  80.                         </div>
  81.                 <!--<script type="text/javascript">initSmilies('{$editorid}_smiliebox');</script>-->
  82.                 <!--{/if}-->
  83.         </td></tr></table></div><br></div></form>


  84. <!--{if $whosonlinestatus}-->
复制代码
2.修改viewthread.htm
查找从
  1. <form method="post" id="postform" action="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra&replysubmit=yes" onSubmit="return validate(this)">
复制代码
  1. <!--{if $forum['ismoderator'] || $forumjump && !$jsmenu[1] || $visitedforums}-->
复制代码
内容全部删除 替换上以下内容
  1. <form method="post" id="postform" action="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra&replysubmit=yes" onSubmit="return validate(this)">
  2.         <input type="hidden" name="formhash" value="{FORMHASH}">
  3.         <div class="maintable"><div class="spaceborder" style="width: {TABLEWIDTH}">
  4.         <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
  5.         <tr><td colspan="4" class="header"><a href="member.php?action=credits&view=forum_reply&fid=$fid" target="_blank"><img src="{IMGDIR}/credits.gif" alt="{lang credits_policy_view}" align="right" border="0" /></a>{lang post_fastreply}</td></tr>
  6.         <tr>
  7.         <td width="18%" class="altbg1"> <span class="bold">{lang options}</span></td>
  8.         <td width="6%" class="altbg2" align="center"><span class="bold">{lang subject}</span></td>
  9.         <td width="59%" class="altbg2">$typeselect <input type="text" name="subject" style="width:60%" value="" tabindex="1">
  10. </td>
  11.         <td width="18%" class="altbg1"> </td>
  12.         </tr>
  13.         <tr class="bottom">
  14.         <td width="18%" class="altbg1" valign="top">
  15.         <input class="checkbox" type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
  16.         <input class="checkbox" type="checkbox" name="smileyoff" value="1"> {lang disable} <a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a><br>
  17.         <input class="checkbox" type="checkbox" name="bbcodeoff" value="1"> {lang disable} <a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a><br>
  18.         <!--{if $allowanonymous || $forum['allowanonymous']}--><input class="checkbox" type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
  19.         <input class="checkbox" type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
  20.         <input class="checkbox" type="checkbox" name="emailnotify" value="1"> {lang post_email_notify}
  21.         </td>
  22.         <td width="6%" class="altbg2" align="center" valign="top"><span class="bold">{lang content}</span></td>
  23.         <td width="59%" class="altbg2" valign="top">
  24.         <div style="width: 97%" class="smalltxt" align="right">
  25.         <textarea rows="7" cols="10" name="message" style="width: 100%; height: 120px; word-break: break-all" onKeyDown="ctlent(event);" tabindex="2"></textarea><br>
  26. <fieldset style="width:100%">
  27. <span id='emo' style='display:none;width:100%;height:120;filter:blendTrans(Duration=0.5);overflow:auto;'>
  28. <script language="JavaScript" src="include/bbcode.js"></script>
  29. <table border=0>
  30. <tr>
  31. <td style="letter-spacing:1px;line-height:100%">
  32. {eval require_once DISCUZ_ROOT.'./forumdata/cache/cache_post.php';}
  33. <!--{loop array_slice($_DCACHE['smilies_display'],0,$quicksmilies_maxs) $key $smiley}-->
  34. {eval $scode= addcslashes($smiley['code'], '\\\'');}
  35. <img src="images/smilies/$smiley['url']" border="0" onmouseover="this.style.cursor='hand';" onclick="AddText('$scode');" alt='$scode'><!--{if ++$key % $quicksmilies_cols == 0}--><br><!--{/if}-->
  36. <!--{/loop}-->
  37. </td>
  38. </tr>
  39. </table>
  40. </span>
  41. </fieldset>
  42. <br>
  43.         <div class="left">
  44.         <input class="button" type="submit" name="replysubmit" id="postsubmit" value="{lang post_topicsubmit}" tabindex="3">
  45.         {lang post_submit_hotkey}  
  46.         </div>
  47.         <input type="submit" name="previewpost" class="lightbutton" value="{lang post_previewpost}" tabindex="4">
  48.         <input type="reset" name="topicsreset" class="lightbutton" value="{lang post_topicreset}" tabindex="5">
  49.         </div>
  50.         </td>
  51.         <td width="18%" class="altbg1">
  52.                 <p align="center">
  53.                 <script>
  54. function toggle(el) {
  55. if (el.style.display == 'none'){
  56. el.filters.blendTrans.Apply();
  57. el.style.display = '';
  58. el.filters.blendTrans.Play()
  59. }
  60. else {
  61. el.filters.blendTrans.Apply();
  62. el.style.display = 'none';
  63. el.filters.blendTrans.Play()
  64. }
  65. }
  66. </script>
  67. <script language="javascript">
  68. function Change (target,classname,type)
  69. {
  70. if ( target.value == target.defaultValue && type==0) target.value = '';
  71. if ( !target.value && type==1) target.value = target.defaultValue;
  72. target.className=classname;
  73. }
  74. </script>
  75. <a style='cursor:hand' onclick='toggle(emo);' title='·j&acute;M'><img src=images/emo.gif border=0></a><!--{if $smileyinsert}-->
  76.                         </p>
  77.                         <div id="{$editorid}_smiliebox">
  78.                         <table cellpadding="3" cellspacing="0" width="80%" border="0" align="center">
  79.                         <!--{/if}-->
  80.                         </table>
  81.                         </div>
  82.                
  83.         </td></tr></table></div><br></div></form>
  84. <!--{/if}-->

  85. <!--{if $forum['ismoderator'] || $forumjump && !$jsmenu[1] || $visitedforums}-->
复制代码
3.修改post_newthread.htm
  1. <td class="altbg1" valign="top">
复制代码
  1. {lang post_submit_hotkey}
复制代码
内容全部删除

替换以下内容
  1. <td class="altbg1" valign="top">
  2.  <script>
  3. function toggle(el) {
  4. if (el.style.display == 'none'){
  5. el.filters.blendTrans.Apply();
  6. el.style.display = '';
  7. el.filters.blendTrans.Play()
  8. }
  9. else {
  10. el.filters.blendTrans.Apply();
  11. el.style.display = 'none';
  12. el.filters.blendTrans.Play()
  13. }
  14. }
  15. </script>
  16. <script language="javascript">
  17. function Change (target,classname,type)
  18. {
  19. if ( target.value == target.defaultValue && type==0) target.value = '';
  20. if ( !target.value && type==1) target.value = target.defaultValue;
  21. target.className=classname;
  22. }
  23. </script>
  24. <a style='cursor:hand' onclick='toggle(emo);' title='·j&acute;M'><img src=images/emo.gif border=0></a><br>
  25. <input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck> {lang disable} {lang post_parseurl}<br>
  26. <input class="checkbox" type="checkbox" name="smileyoff" id="smileyoff" value="1" $smileyoffcheck> {lang disable} <a href="faq.php?page=messages#6" target="_blank">{lang post_smilies}</a><br>
  27. <input class="checkbox" type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" $codeoffcheck> {lang disable} <a href="faq.php?page=misc#1" target="_blank">{lang post_discuzcode}</a><br>
  28. <!--{if $allowhtml}--><input class="checkbox" type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck> {lang enable} {lang post_html}<br><!--{/if}-->
  29. <!--{if $allowanonymous}--><input class="checkbox" type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
  30. <input class="checkbox" type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
  31. <input class="checkbox" type="checkbox" name="emailnotify" value="1" $notifycheck> {lang post_email_notify}
  32. <!--{if $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])}-->
  33.         <br><input class="checkbox" type="checkbox" name="sticktopic" value="1" $stickcheck> {lang post_stick_thread}
  34.         <br><input class="checkbox" type="checkbox" name="addtodigest" value="1" $digestcheck> {lang post_digest_thread}
  35. <!--{/if}-->
  36. <!--{if $allowuseblog && $forum['allowshare']}--><br><input class="checkbox" type="checkbox" name="addtoblog" value="1" $blogcheck> {lang post_blog_thread}<!--{/if}-->
  37. </td>

  38. <td align="left" class="altbg2" valign="top">
  39. <div id="$editorid">
  40. {template post_bbinsert}
  41. <div class="editor_text"><textarea name="message" rows="10" cols="60" style="width:100%; height:350px" tabindex="100" id="{$editorid}_textarea" onSelect="javascript: storeCaret(this);" onClick="javascript: storeCaret(this);" onKeyUp="javascript:storeCaret(this);" onKeyDown="ctlent(event);">$message</textarea></div>
  42. <table width=100%" cellpadding="{TABLESPACE}" cellspacing="0" class="editor_button"><tr><td>
  43. <div class="editor_textexpand"><img src="images/common/bb_contract.gif" width="11" height="21" title="{lang post_discuzcode_contract}" alt="{lang post_discuzcode_contract}" onclick="resizeEditor(-100)" /><img src="images/common/bb_expand.gif" width="12" height="21" title="{lang post_discuzcode_expand}" alt="{lang post_discuzcode_expand}" onclick="resizeEditor(100)" /></div>
  44. </td><td align="right">
  45. <input type="button" class="lightbutton" value="{lang post_check_length}" onclick="checklength($('postform'))">
  46. <input type="button" class="lightbutton" name="previewbutton" id="previewbutton" value="{lang post_previewpost}" tabindex="102" onclick="previewpost()">
  47. <input type="button" class="lightbutton" value=" {lang post_topicreset} " tabindex="103" onclick="clearcontent()">
  48. </td></table>

  49. <fieldset style="width:80%">
  50. <span id='emo' style='display:none;width:100%;height:120;filter:blendTrans(Duration=0.5);overflow:auto;'>
  51. <script language="JavaScript" src="include/bbcode.js"></script>
  52. <table border=0>
  53. <tr>
  54. <td style="letter-spacing:1px;line-height:100%">
  55. {eval require_once DISCUZ_ROOT.'./forumdata/cache/cache_post.php';}
  56. <!--{loop array_slice($_DCACHE['smilies_display'],0,$quicksmilies_maxs) $key $smiley}-->
  57. {eval $scode= addcslashes($smiley['code'], '\\\'');}
  58. <img src="images/smilies/$smiley['url']" border="0" onmouseover="this.style.cursor='hand';" onclick="AddText('$scode');" alt='$scode'><!--{if ++$key % $quicksmilies_cols == 0}--><br><!--{/if}-->
  59. <!--{/loop}-->
  60. </td>
  61. </tr>
  62. </table>
  63. </span>
  64. </fieldset>
  65. <br>
  66. </div>

  67. <!--{if $allowpostattach && !$seccodecheck}-->
  68.         {template post_attachments}
  69. <!--{/if}-->

  70. <div class="postsubmit">
  71. <input class="button" type="submit" name="topicsubmit" id="postsubmit" value="{lang post_newthread}" tabindex="101">
  72. <input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode">
  73. {lang post_submit_hotkey}
复制代码
4.修改论坛根目录config.inc.php
在最后加入  里头内容根据自己情况修改
  1. $quicksmilies_maxs = '50'; //总表情
  2. $quicksmilies_cols = '10';  //每行的表情
复制代码
把附件解压 然后把图片放入论坛的images目录

改好收工 回来顶贴哈~~~~~~

[ 本帖最后由 clf2275 于 2006-9-5 22:05 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

评分

1

查看全部评分

PerfectWorks 发表于 2006-9-5 21:36:55 | 显示全部楼层
顶,沙发
回复

使用道具 举报

PerfectWorks 发表于 2006-9-5 21:37:32 | 显示全部楼层
偶是写插件的时候不顶帖,不写插件的时候去灌水
回复

使用道具 举报

cqggff 发表于 2006-9-5 21:37:59 | 显示全部楼层
板凳?
板凳被PerfectWorks占了
回复

使用道具 举报

 楼主| clf2275 发表于 2006-9-5 21:40:44 | 显示全部楼层
有人说发表新帖 那个图片不太明显  下面代码是把图片放到编辑框上面  

查找post_newthread.htm文件中
  1.  <script>
  2. function toggle(el) {
  3. if (el.style.display == 'none'){
  4. el.filters.blendTrans.Apply();
  5. el.style.display = '';
  6. el.filters.blendTrans.Play()
  7. }
  8. else {
  9. el.filters.blendTrans.Apply();
  10. el.style.display = 'none';
  11. el.filters.blendTrans.Play()
  12. }
  13. }
  14. </script>
  15. <script language="javascript">
  16. function Change (target,classname,type)
  17. {
  18. if ( target.value == target.defaultValue && type==0) target.value = '';
  19. if ( !target.value && type==1) target.value = target.defaultValue;
  20. target.className=classname;
  21. }
  22. </script>
  23. <a style='cursor:hand' onclick='toggle(emo);' title='·j&acute;M'><img src=images/emo.gif border=0></a><br>
复制代码


内容全部删除

继续修改post_bbinsert.htm 查找
  1. <input type="button" id="wysiwygmode" value="{lang editor_mode_wysiwyg}" onclick="switchEditor(1)" class="editor_switcher">
复制代码


在后面加入
  1.  <script>
  2. function toggle(el) {
  3. if (el.style.display == 'none'){
  4. el.filters.blendTrans.Apply();
  5. el.style.display = '';
  6. el.filters.blendTrans.Play()
  7. }
  8. else {
  9. el.filters.blendTrans.Apply();
  10. el.style.display = 'none';
  11. el.filters.blendTrans.Play()
  12. }
  13. }
  14. </script>
  15. <script language="javascript">
  16. function Change (target,classname,type)
  17. {
  18. if ( target.value == target.defaultValue && type==0) target.value = '';
  19. if ( !target.value && type==1) target.value = target.defaultValue;
  20. target.className=classname;
  21. }
  22. </script>
  23. <a style='cursor:hand' onclick='toggle(emo);' title='·j&acute;M'><img src=images/emo.gif border=0></a>
复制代码

[ 本帖最后由 clf2275 于 2006-9-6 22:31 编辑 ]
回复

使用道具 举报

chinawenxu 发表于 2006-9-5 21:42:43 | 显示全部楼层
不用!支持!!!!!!!!!
回复

使用道具 举报

jary 发表于 2006-9-5 21:43:56 | 显示全部楼层
支持的说
回复

使用道具 举报

garuda 发表于 2006-9-5 21:46:59 | 显示全部楼层
支持
回复

使用道具 举报

fy_langzi 发表于 2006-9-5 21:47:44 | 显示全部楼层
不支持不行啊
回复

使用道具 举报

瓦全 发表于 2006-9-5 21:51:25 | 显示全部楼层
支持
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-30 02:42 , Processed in 0.129756 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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