请选择 进入手机版 | 继续访问电脑版
设为首页收藏本站

Discuz! 官方站

 找回密码
 立即注册

QQ登录

只需一步,快速开始

Discuz! X 最新研发动态 通过这个窗口,关注跟踪我们的研发进展 Discuz! 开发技术文库 - 给官方提建议

Discuz! X2 正式版下载 帮助网站实现一站式服务  商业支持服务咨询 下载 - 安装 - 常见问题 - 转换 - 讨论 - 购买

2012站长年会开启报名 限量船票免费发放 Discuz!十大荣誉用户评选 - Discuz!NT3.6发布 漫游引入QQ空间游戏 -一骑新区横扫三国-5d6d免费论坛

查看: 6588|回复: 15

[发布] 徹底淘汰系統自帶的表情排列模式FOR5.0 - 增加修改地方 : 編輯帖子 回覆帖子 短消息 [复制链接]

Rank: 3Rank: 3

UID
99881
积分
466
帖子
132
威望
6
在线时间
0 小时
注册时间
2004-7-16
发表于 2006-9-8 21:09:37 |显示全部楼层
作者:clf2275
http://www.discuz.net/viewthread.php?tid=391885
原帖在這
clf2275的只有修改 發表新帖 快速回復  快速發帖
我這個只增加修改 編輯帖子 回覆帖子 短消息
遲些再研究一下PM的
我只是懂少許HTML而已
演示圖可以看回原帖
我正在加入這個插件,看到欠缺編輯帖子 回覆帖子 短消息的,所以先自行修改,如有冒犯,請刪除此帖...


增加了修改 短消息 ,下載附件後覆蓋,pm_send.htm無插件需要修改的吧,應該可以安心覆蓋


1.回覆帖子
修改post_newreply.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. <input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck> {lang disable} {lang post_parseurl}<br>
  25. <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>
  26. <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>
  27. <!--{if $allowhtml}--><input class="checkbox" type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck> {lang enable} {lang post_html}<br><!--{/if}-->
  28. <!--{if $allowanonymous}--><input class="checkbox" type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
  29. <input class="checkbox" type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
  30. <input class="checkbox" type="checkbox" name="emailnotify" value="1" $emailcheck> {lang post_email_notify}<br>
  31. <a style='cursor:hand' onclick='toggle(emo);' title='·j&acute;M'><img src=images/emo.gif border=0></a>
  32. </td>

  33. <td align="left" class="altbg2" valign="top">
  34. <div id="$editorid">
  35. {template post_bbinsert}
  36. <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>
  37. <table width=100%" cellpadding="{TABLESPACE}" cellspacing="0" class="editor_button"><tr><td>
  38. <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>
  39. </td><td align="right">
  40. <input type="button" class="lightbutton" value="{lang post_check_length}" onclick="checklength($('postform'))">
  41. <input type="button" class="lightbutton" name="previewbutton" id="previewbutton" value="{lang post_previewpost}" tabindex="102" onclick="previewpost()">
  42. <input type="button" class="lightbutton" value=" {lang post_topicreset} " tabindex="103" onclick="clearcontent()">
  43. </td></table>

  44. <fieldset style="width:80%">
  45. <span id='emo' style='display:none;width:100%;height:120;filter:blendTrans(Duration=0.5);overflow:auto;'>
  46. <script language="JavaScript" src="include/bbcode.js"></script>
  47. <table border=0>
  48. <tr>
  49. <td style="letter-spacing:1px;line-height:100%">
  50. {eval require_once DISCUZ_ROOT.'./forumdata/cache/cache_post.php';}
  51. <!--{loop array_slice($_DCACHE['smilies_display'],0,$quicksmilies_maxs) $key $smiley}-->
  52. {eval $scode= addcslashes($smiley['code'], '\\\'');}
  53. <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}-->
  54. <!--{/loop}-->
  55. </td>
  56. </tr>
  57. </table>
  58. </span>
  59. </fieldset>
  60. <br>
  61. </div>

  62. <!--{if $allowpostattach && !$seccodecheck}-->
  63.         {template post_attachments}
  64. <!--{/if}-->

  65. <div class="postsubmit">
  66. <input class="button" type="submit" name="replysubmit" id="postsubmit" value="{lang post_newreply}" tabindex="101">
  67. <input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode">
  68. <input type="hidden" name="fid" id="fid" value="$fid">
  69. {lang post_submit_hotkey}
复制代码



2.編輯帖子
修改模板目錄post_editpost.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. <input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck> {lang disable} {lang post_parseurl}<br>
  25. <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>
  26. <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>
  27. <!--{if $orig['allowhtml']}--><input class="checkbox" type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck> {lang enable} {lang post_html}<br><!--{/if}-->
  28. <!--{if $allowanonymous || (!$allowanonymous && $orig['anonymous'])}--><input class="checkbox" type="checkbox" name="isanonymous" value="1" <!--{if $orig['anonymous']}-->checked<!--{/if}-->> {lang post_anonymous}<br><!--{/if}-->
  29. <input class="checkbox" type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
  30. <!--{if $isorigauthor}--><input class="checkbox" type="checkbox" name="delete" value="1"> <b>{lang post_delpost}</b><!--{if $thread['special'] == 3 && $isfirstpost}-->{lang reward_price_back}<!--{/if}--><br><!--{/if}-->
  31. <!--{if $auditstatuson}--><input class="checkbox" type="checkbox" name="audit" value="1"> <b>{lang auditstatuson}</b><br><!--{/if}-->
  32. <a style='cursor:hand' onclick='toggle(emo);' title='·j&acute;M'><img src=images/emo.gif border=0></a>
  33. </td>

  34. <td align="left" class="altbg2" valign="top">
  35. <div id="$editorid">
  36. {template post_bbinsert}
  37. <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);">$postinfo[message]</textarea></div>
  38. <table width=100%" cellpadding="{TABLESPACE}" cellspacing="0" class="editor_button"><tr><td>
  39. <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>
  40. </td><td align="right">
  41. <input type="button" class="lightbutton" value="{lang post_check_length}" onclick="checklength($('postform'))">
  42. <input type="button" class="lightbutton" name="previewbutton" id="previewbutton" value="{lang post_previewpost}" tabindex="102" onclick="previewpost()">
  43. <input type="button" class="lightbutton" value=" {lang post_topicreset} " tabindex="103" onclick="clearcontent()">
  44. </td></table>

  45. <fieldset style="width:80%">
  46. <span id='emo' style='display:none;width:100%;height:120;filter:blendTrans(Duration=0.5);overflow:auto;'>
  47. <script language="JavaScript" src="include/bbcode.js"></script>
  48. <table border=0>
  49. <tr>
  50. <td style="letter-spacing:1px;line-height:100%">
  51. {eval require_once DISCUZ_ROOT.'./forumdata/cache/cache_post.php';}
  52. <!--{loop array_slice($_DCACHE['smilies_display'],0,$quicksmilies_maxs) $key $smiley}-->
  53. {eval $scode= addcslashes($smiley['code'], '\\\'');}
  54. <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}-->
  55. <!--{/loop}-->
  56. </td>
  57. </tr>
  58. </table>
  59. </span>
  60. </fieldset>
  61. <br>
  62. </div>

  63. <!--{if $allowpostattach}-->
  64.         {template post_attachments}
  65. <!--{/if}-->

  66. <div class="postsubmit">
  67. <input class="button" type="submit" name="editsubmit" id="postsubmit" value="{lang post_editpost}" tabindex="101">
  68. <input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode">
  69. <input type="hidden" name="fid" id="fid" value="$fid">
  70. <input type="hidden" name="tid" value="$tid">
  71. <input type="hidden" name="pid" value="$pid">
  72. <input type="hidden" name="postsubject" value="$postinfo[subject]">
  73. {lang post_submit_hotkey}
复制代码

[ 本帖最后由 火炎 于 2006-9-8 21:52 编辑 ]

pm_send.zip

1.94 KB, 下载次数: 421

Rank: 3Rank: 3

UID
99881
积分
466
帖子
132
威望
6
在线时间
0 小时
注册时间
2004-7-16
发表于 2006-9-8 21:11:28 |显示全部楼层
啊!我的emo.gif圖片換了位置的(只是移到下方 )
如需要換其他位置請自行修改

[ 本帖最后由 火炎 于 2006-9-8 21:38 编辑 ]

使用道具 举报

Genius

小游戏俱乐部

Rank: 12Rank: 12Rank: 12

UID
164741
积分
12212
帖子
13907
威望
63
在线时间
5 小时
注册时间
2005-2-1
发表于 2006-9-8 21:34:59 |显示全部楼层
支持

使用道具 举报

Rank: 6Rank: 6

UID
287154
积分
1033
帖子
837
威望
15
在线时间
0 小时
注册时间
2005-12-13
发表于 2006-9-8 21:44:33 |显示全部楼层
第二个替换有3处<td class="altbg1" valign="top">   请问是哪一处开始的?
300多行的  还是200多行的  还是100多行的呀?

使用道具 举报

Rank: 3Rank: 3

UID
99881
积分
466
帖子
132
威望
6
在线时间
0 小时
注册时间
2004-7-16
发表于 2006-9-8 21:48:06 |显示全部楼层
原帖由 gm8fox 于 2006-9-8 21:44 发表
第二个替换有3处<td class="altbg1" valign="top">   请问是哪一处开始的?
300多行的  还是200多行的  还是100多行的呀?

第三個的

使用道具 举报

Rank: 3Rank: 3

UID
99881
积分
466
帖子
132
威望
6
在线时间
0 小时
注册时间
2004-7-16
发表于 2006-9-8 21:51:00 |显示全部楼层
增加了修改 短消息 ,下載附件後覆蓋,pm_send.htm無插件需要修改的吧,應該可以安心覆蓋

[ 本帖最后由 火炎 于 2006-9-8 21:52 编辑 ]

使用道具 举报

Rank: 4

UID
414737
积分
754
帖子
716
威望
16
在线时间
0 小时
注册时间
2006-8-6
发表于 2006-9-10 18:48:27 |显示全部楼层
呵呵,顶了再改!谢谢LZ的分享了哈!^_^

使用道具 举报

Rank: 2

UID
483459
积分
58
帖子
73
威望
0
在线时间
0 小时
注册时间
2006-11-7
发表于 2006-12-17 05:32:25 |显示全部楼层
哈哈  他的是不怎么完整`
路过......

使用道具 举报

Rank: 2

UID
483459
积分
58
帖子
73
威望
0
在线时间
0 小时
注册时间
2006-11-7
发表于 2006-12-17 06:30:12 |显示全部楼层
忘记问你位置怎么改了`~?`
路过......

使用道具 举报

Rank: 2

UID
285865
积分
97
帖子
118
威望
0
在线时间
0 小时
注册时间
2005-12-12
发表于 2006-12-17 15:59:01 |显示全部楼层
我也是,请教下位置的修改方法

使用道具 举报

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

fastpost

手机版|Archiver|北京康盛新创科技有限责任公司 ( 京ICP证110024号|京网文[2011]0019-007号 )  

GMT+8, 2012-2-13 05:38 , Processed in 0.149576 second(s), 16 queries , Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部