DZ自带的排列模式只能摆出12个表情 还只能适合小表情用
我们今天就来淘汰系统自带的 修改地方 发表新帖 快速回复 快速发帖
还有的两个地方 发PM的地方 和编辑帖子 没弄 有空整理出来
最近发现我发的插件多被沉下去了 看来大家多只下载 不顶帖
我准备弄好这个插件 不再发布插件了~~~(这些天基本每天发一个插件,还是在插件区等人家出插件吧)
这年头
有技术的做插件不来发布
没技术的只下插件不顶帖
一般技术发插件发的心凉
我属于第3种人哈~~~希望中间的那种人活跃一点 希望第一种人多多分享
演示地址http://www.wz52.com/bbs
演示图片
1.修改模板目录forumdisplay.htm
从- <form method="post" id="postform" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" onSubmit="return validate(this)">
复制代码 到- <!--{if $whosonlinestatus}-->
复制代码 的全部内容删除
替换上下面的内容- <form method="post" id="postform" action="post.php?action=newthread&fid=$fid&extra=$extra&topicsubmit=yes" onSubmit="return validate(this)">
- <input type="hidden" name="formhash" value="{FORMHASH}">
- <div class="maintable"><div class="spaceborder" style="width: {TABLEWIDTH}">
- <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
- <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>
- <tr>
- <td width="18%" class="altbg1"> <span class="bold">{lang options}</span></td>
- <td width="6%" class="altbg2" align="center"><span class="bold">{lang subject}</span></td>
- <td width="59%" class="altbg2">$typeselect <input type="text" name="subject" style="width: 60%" value="" tabindex="1"></td>
- <td width="18%" class="altbg1"> </td>
- </tr>
- <tr class="bottom">
- <td width="18%" class="altbg1" valign="top">
- <input class="checkbox" type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
- <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>
- <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>
- <!--{if $allowanonymous || $forum['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"> {lang post_email_notify}
- <!--{if $allowuseblog && $forum['allowshare']}--><br><input class="checkbox" type="checkbox" name="addtoblog" value="1"> {lang post_blog_thread}<!--{/if}-->
- </td>
- <td width="6%" class="altbg2" align="center" valign="top"><span class="bold">{lang content}</span></td>
- <td width="59%" class="altbg2" valign="top">
- <div style="width: 97%" class="smalltxt" align="right">
- <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%">
- <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 class="left">
- <input class="button" type="submit" name="topicsubmit" id="postsubmit" value="{lang post_topicsubmit}" tabindex="3">
- {lang post_submit_hotkey}
- </div>
- <input type="submit" class="lightbutton" name="previewpost" value="{lang post_previewpost}" tabindex="4">
- <input type="reset" class="lightbutton" name="topicsreset" value="{lang post_topicreset}" tabindex="5">
- </div>
- </td>
- <td width="18%" class="altbg1">
- <p align="center">
-
- <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>
- <a style='cursor:hand' onclick='toggle(emo);' title='·j´M'><img src=images/emo.gif border=0></a><!--{if $smileyinsert}-->
-
- </tr>
- <!--{/if}-->
- </table>
- </div>
- <!--<script type="text/javascript">initSmilies('{$editorid}_smiliebox');</script>-->
- <!--{/if}-->
- </td></tr></table></div><br></div></form>
- <!--{if $whosonlinestatus}-->
复制代码 2.修改viewthread.htm
查找从- <form method="post" id="postform" action="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra&replysubmit=yes" onSubmit="return validate(this)">
复制代码 至- <!--{if $forum['ismoderator'] || $forumjump && !$jsmenu[1] || $visitedforums}-->
复制代码 内容全部删除 替换上以下内容- <form method="post" id="postform" action="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra&replysubmit=yes" onSubmit="return validate(this)">
- <input type="hidden" name="formhash" value="{FORMHASH}">
- <div class="maintable"><div class="spaceborder" style="width: {TABLEWIDTH}">
- <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" align="center">
- <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>
- <tr>
- <td width="18%" class="altbg1"> <span class="bold">{lang options}</span></td>
- <td width="6%" class="altbg2" align="center"><span class="bold">{lang subject}</span></td>
- <td width="59%" class="altbg2">$typeselect <input type="text" name="subject" style="width:60%" value="" tabindex="1">
- </td>
- <td width="18%" class="altbg1"> </td>
- </tr>
- <tr class="bottom">
- <td width="18%" class="altbg1" valign="top">
- <input class="checkbox" type="checkbox" name="parseurloff" value="1"> {lang disable} {lang post_parseurl}<br>
- <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>
- <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>
- <!--{if $allowanonymous || $forum['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"> {lang post_email_notify}
- </td>
- <td width="6%" class="altbg2" align="center" valign="top"><span class="bold">{lang content}</span></td>
- <td width="59%" class="altbg2" valign="top">
- <div style="width: 97%" class="smalltxt" align="right">
- <textarea rows="7" cols="10" name="message" style="width: 100%; height: 120px; word-break: break-all" onKeyDown="ctlent(event);" tabindex="2"></textarea><br>
- <fieldset style="width:100%">
- <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 class="left">
- <input class="button" type="submit" name="replysubmit" id="postsubmit" value="{lang post_topicsubmit}" tabindex="3">
- {lang post_submit_hotkey}
- </div>
- <input type="submit" name="previewpost" class="lightbutton" value="{lang post_previewpost}" tabindex="4">
- <input type="reset" name="topicsreset" class="lightbutton" value="{lang post_topicreset}" tabindex="5">
- </div>
- </td>
- <td width="18%" class="altbg1">
- <p align="center">
- <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>
- <a style='cursor:hand' onclick='toggle(emo);' title='·j´M'><img src=images/emo.gif border=0></a><!--{if $smileyinsert}-->
- </p>
- <div id="{$editorid}_smiliebox">
- <table cellpadding="3" cellspacing="0" width="80%" border="0" align="center">
- <!--{/if}-->
- </table>
- </div>
-
- </td></tr></table></div><br></div></form>
- <!--{/if}-->
- <!--{if $forum['ismoderator'] || $forumjump && !$jsmenu[1] || $visitedforums}-->
复制代码 3.修改post_newthread.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>
- <a style='cursor:hand' onclick='toggle(emo);' title='·j´M'><img src=images/emo.gif border=0></a><br>
- <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" $notifycheck> {lang post_email_notify}
- <!--{if $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])}-->
- <br><input class="checkbox" type="checkbox" name="sticktopic" value="1" $stickcheck> {lang post_stick_thread}
- <br><input class="checkbox" type="checkbox" name="addtodigest" value="1" $digestcheck> {lang post_digest_thread}
- <!--{/if}-->
- <!--{if $allowuseblog && $forum['allowshare']}--><br><input class="checkbox" type="checkbox" name="addtoblog" value="1" $blogcheck> {lang post_blog_thread}<!--{/if}-->
- </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="topicsubmit" id="postsubmit" value="{lang post_newthread}" tabindex="101">
- <input type="hidden" name="wysiwyg" id="{$editorid}_mode" value="$editormode">
- {lang post_submit_hotkey}
复制代码 4.修改论坛根目录config.inc.php
在最后加入 里头内容根据自己情况修改- $quicksmilies_maxs = '50'; //总表情
- $quicksmilies_cols = '10'; //每行的表情
复制代码 把附件解压 然后把图片放入论坛的images目录
改好收工 回来顶贴哈~~~~~~
[ 本帖最后由 clf2275 于 2006-9-5 22:05 编辑 ] |