作者:clf2275
https://discuz.dismall.com/viewthread.php?tid=391885
原帖在這
clf2275的只有修改 發表新帖 快速回復 快速發帖
我這個只增加修改 編輯帖子 回覆帖子 短消息
遲些再研究一下PM的
我只是懂少許HTML而已
演示圖可以看回原帖
我正在加入這個插件,看到欠缺編輯帖子 回覆帖子 短消息的,所以先自行修改,如有冒犯,請刪除此帖...
增加了修改 短消息 ,下載附件後覆蓋,pm_send.htm無插件需要修改的吧,應該可以安心覆蓋
1.回覆帖子
修改post_newreply.htm
從
- <td class="altbg1" valign="top">
复制代码
至
- {lang post_submit_hotkey}
复制代码
內容全部刪除
替換以下內容
- <td class="altbg1" valign="top">
- <script>
- function toggle(el) {
- if (el.style.display == 'none'){
- el.filters.blendTrans.Apply();
- el.style.display = '';
- el.filters.blendTrans.Play()
- }
- else {
- el.filters.blendTrans.Apply();
- el.style.display = 'none';
- el.filters.blendTrans.Play()
- }
- }
- </script>
- <script language="javascript">
- function Change (target,classname,type)
- {
- if ( target.value == target.defaultValue && type==0) target.value = '';
- if ( !target.value && type==1) target.value = target.defaultValue;
- target.className=classname;
- }
- </script>
- <input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck> {lang disable} {lang post_parseurl}<br>
- <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>
- <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>
- <!--{if $allowhtml}--><input class="checkbox" type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck> {lang enable} {lang post_html}<br><!--{/if}-->
- <!--{if $allowanonymous}--><input class="checkbox" type="checkbox" name="isanonymous" value="1"> {lang post_anonymous}<br><!--{/if}-->
- <input class="checkbox" type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
- <input class="checkbox" type="checkbox" name="emailnotify" value="1" $emailcheck> {lang post_email_notify}<br>
- <a style='cursor:hand' onclick='toggle(emo);' title='·j´M'><img src=images/emo.gif border=0></a>
- </td>
- <td align="left" class="altbg2" valign="top">
- <div id="$editorid">
- {template post_bbinsert}
- <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>
- <table width=100%" cellpadding="{TABLESPACE}" cellspacing="0" class="editor_button"><tr><td>
- <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>
- </td><td align="right">
- <input type="button" class="lightbutton" value="{lang post_check_length}" onclick="checklength($('postform'))">
- <input type="button" class="lightbutton" name="previewbutton" id="previewbutton" value="{lang post_previewpost}" tabindex="102" onclick="previewpost()">
- <input type="button" class="lightbutton" value=" {lang post_topicreset} " tabindex="103" onclick="clearcontent()">
- </td></table>
- <fieldset style="width:80%">
- <span id='emo' style='display:none;width:100%;height:120;filter:blendTrans(Duration=0.5);overflow:auto;'>
- <script language="JavaScript" src="include/bbcode.js"></script>
- <table border=0>
- <tr>
- <td style="letter-spacing:1px;line-height:100%">
- {eval require_once DISCUZ_ROOT.'./forumdata/cache/cache_post.php';}
- <!--{loop array_slice($_DCACHE['smilies_display'],0,$quicksmilies_maxs) $key $smiley}-->
- {eval $scode= addcslashes($smiley['code'], '\\\'');}
- <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}-->
- <!--{/loop}-->
- </td>
- </tr>
- </table>
- </span>
- </fieldset>
- <br>
- </div>
- <!--{if $allowpostattach && !$seccodecheck}-->
- {template post_attachments}
- <!--{/if}-->
- <div class="postsubmit">
- <input class="button" type="submit" name="replysubmit" id="postsubmit" value="{lang post_newreply}" tabindex="101">
- <input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode">
- <input type="hidden" name="fid" id="fid" value="$fid">
- {lang post_submit_hotkey}
复制代码
2.編輯帖子
修改模板目錄post_editpost.htm
從
- <td class="altbg1" valign="top">
复制代码
至
- {lang post_submit_hotkey}
复制代码
內容全部刪除
替換以下內容
- <td class="altbg1" valign="top">
- <script>
- function toggle(el) {
- if (el.style.display == 'none'){
- el.filters.blendTrans.Apply();
- el.style.display = '';
- el.filters.blendTrans.Play()
- }
- else {
- el.filters.blendTrans.Apply();
- el.style.display = 'none';
- el.filters.blendTrans.Play()
- }
- }
- </script>
- <script language="javascript">
- function Change (target,classname,type)
- {
- if ( target.value == target.defaultValue && type==0) target.value = '';
- if ( !target.value && type==1) target.value = target.defaultValue;
- target.className=classname;
- }
- </script>
- <input class="checkbox" type="checkbox" name="parseurloff" id="parseurloff" value="1" $urloffcheck> {lang disable} {lang post_parseurl}<br>
- <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>
- <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>
- <!--{if $orig['allowhtml']}--><input class="checkbox" type="checkbox" name="htmlon" id="htmlon" value="1" $htmloncheck> {lang enable} {lang post_html}<br><!--{/if}-->
- <!--{if $allowanonymous || (!$allowanonymous && $orig['anonymous'])}--><input class="checkbox" type="checkbox" name="isanonymous" value="1" <!--{if $orig['anonymous']}-->checked<!--{/if}-->> {lang post_anonymous}<br><!--{/if}-->
- <input class="checkbox" type="checkbox" name="usesig" value="1" $usesigcheck> {lang post_show_sig}<br>
- <!--{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}-->
- <!--{if $auditstatuson}--><input class="checkbox" type="checkbox" name="audit" value="1"> <b>{lang auditstatuson}</b><br><!--{/if}-->
- <a style='cursor:hand' onclick='toggle(emo);' title='·j´M'><img src=images/emo.gif border=0></a>
- </td>
- <td align="left" class="altbg2" valign="top">
- <div id="$editorid">
- {template post_bbinsert}
- <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>
- <table width=100%" cellpadding="{TABLESPACE}" cellspacing="0" class="editor_button"><tr><td>
- <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>
- </td><td align="right">
- <input type="button" class="lightbutton" value="{lang post_check_length}" onclick="checklength($('postform'))">
- <input type="button" class="lightbutton" name="previewbutton" id="previewbutton" value="{lang post_previewpost}" tabindex="102" onclick="previewpost()">
- <input type="button" class="lightbutton" value=" {lang post_topicreset} " tabindex="103" onclick="clearcontent()">
- </td></table>
- <fieldset style="width:80%">
- <span id='emo' style='display:none;width:100%;height:120;filter:blendTrans(Duration=0.5);overflow:auto;'>
- <script language="JavaScript" src="include/bbcode.js"></script>
- <table border=0>
- <tr>
- <td style="letter-spacing:1px;line-height:100%">
- {eval require_once DISCUZ_ROOT.'./forumdata/cache/cache_post.php';}
- <!--{loop array_slice($_DCACHE['smilies_display'],0,$quicksmilies_maxs) $key $smiley}-->
- {eval $scode= addcslashes($smiley['code'], '\\\'');}
- <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}-->
- <!--{/loop}-->
- </td>
- </tr>
- </table>
- </span>
- </fieldset>
- <br>
- </div>
- <!--{if $allowpostattach}-->
- {template post_attachments}
- <!--{/if}-->
- <div class="postsubmit">
- <input class="button" type="submit" name="editsubmit" id="postsubmit" value="{lang post_editpost}" tabindex="101">
- <input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode">
- <input type="hidden" name="fid" id="fid" value="$fid">
- <input type="hidden" name="tid" value="$tid">
- <input type="hidden" name="pid" value="$pid">
- <input type="hidden" name="postsubject" value="$postinfo[subject]">
- {lang post_submit_hotkey}
复制代码
[ 本帖最后由 火炎 于 2006-9-8 21:52 编辑 ] |