本插件整合自sw08的快速发新话题时可填TAG For 6.0RC1及kensoy的快速发新主题添加『其他信息』 for DZ6.0RC1
快速发新话题时可填TAG For 6.0RC1的连接为
https://discuz.dismall.com/thread-692100-1-1.html
快速发新主题添加『其他信息』 for DZ6.0RC1的连接为
https://discuz.dismall.com/thread-695545-1-4.html
1、修改forumdisplay.php文件(注意备份)
找到:
- include template('forumdisplay');
复制代码
上面添加:
- if(!submitcheck('topicsubmit', 0, $seccodecheck, $secqaacheck)) {
- $icons = '';
- if(!$special && is_array($_DCACHE['icons'])) {
- $key = 1;
- foreach($_DCACHE['icons'] as $id => $icon) {
- $icons .= ' <input class="radio" type="radio" name="iconid" value="'.$id.'" /><img src="'.SMDIR.'/'.$icon.'" alt="" />';
- $icons .= !(++$key % 10) ? '<br />' : '';
- }
- }
- }
复制代码
2、修改templates/default/forumdisplay.htm(注意备份,若是有其他风格请修改其他风格的这个文件)
找到:- <script type="text/javascript">
- var textobj = $('message');
- window.onbeforeunload = function () {saveData(textobj.value)};
- if(is_ie >= 5 || is_moz >= 2) {
- lang['post_autosave_none'] = "{lang post_autosave_none}";
- lang['post_autosave_confirm'] = "{lang post_autosave_confirm}";
- } else {
- $('restoredata').style.display = 'none';
- }
- </script>
复制代码 下面添加:- <div class="mainbox formbox">
- <table summary="post" cellspacing="0" cellpadding="0">
- <script type="text/javascript">
- function showadv() {
- if($("advshow").checked == true) {
- $("adv").style.display = "";
- } else {
- $("adv").style.display = "none";
- }
- }
- function checkuserexists(username, objname) {
- var x = new Ajax();
- username = is_ie && document.charset == 'utf-8' ? encodeURIComponent(username) : username;
- x.get('ajax.php?inajax=1&action=checkuserexists&username=' + username, function(s){
- var obj = $(objname);
- obj.innerHTML = s;
- });
- }
- <!--{if $typeid}-->ajaxget('post.php?action=threadtypes&typeid=$typeid&inajax=1', 'threadtypes');<!--{/if}-->
- </script>
- <thead>
- <tr>
- <td><label><input id="advshow" class="checkbox" type="checkbox" onclick="showadv()" tabindex="203" />{lang post_otherinfo}</label></td>
- <th> </th>
- </tr>
- </thead>
- <tbody id="adv" style="display: none">
- <!--{if $special == 5}-->
- <tr>
- <th><label for="endtime">{lang debate_endtime}</label></th>
- <td><input onclick="showcalendar(event, this, true)" type="text" name="endtime" size="45" value="" tabindex="204" /></td>
- </tr>
- <tr>
- <th><label for="umpire">{lang debate_umpire}</label></th>
- <td><input type="text" name="umpire" id="umpire" size="45" tabindex="205" onblur="checkuserexists(this.value, 'checkuserinfo')" value="$discuz_user" /><span id="checkuserinfo"></span></td>
- </tr>
- <!--{/if}-->
- <!--{if $allowsetreadperm}-->
- <tr>
- <th><label for="readperm">{lang readperm_thread}</label></th>
- <td><input type="text" name="readperm" id="readperm" size="6" value="$readperm" tabindex="206" /> <em class="tips">({lang post_zero_is_nopermission})</em></td>
- </tr>
- <!--{/if}-->
- <!--{if $maxprice && !$special}-->
- <tr>
- <th><label for="price">{lang price}({$extcredits[$creditstrans][title]})</label></th>
- <td><input type="text" name="price" id="price" size="6" value="$price" tabindex="207" /> <em class="tips">{$extcredits[$creditstrans][unit]} ({lang post_price_comment}<!--{if $maxincperthread}-->{lang post_price_income_comment}<!--{/if}--><!--{if $maxchargespan}-->{lang post_price_charge_comment}<!--{/if}-->)
- {lang post_price_free_comment}</em>
- </td>
- </tr>
- <!--{/if}-->
- <!--{if !$special}-->
- <tr>
- <th>{lang icon}</th>
- <td><label><input class="radio" type="radio" name="iconid" value="0" checked="checked" tabindex="208" /> {lang none}</label> $icons</td>
- </tr>
- <!--{/if}-->
- <!--{if $tagstatus}--><p>
- <tr>
- <th><label for="tags"><b>{lang post_tag}</b></label></th>
- <td><input size="45" type="input" id="tags" name="tags" value="" tabindex="200" /> <em class="tips">{lang tag_comment}</em></p></td>
- </tr>
- <!--{/if}-->
- </tbody>
- </table>
- </div>
复制代码 3、OK,搞掂!
大家有钱的捧个钱场,没钱的捧个贴场!多顶为妙!
演示:
有钱的捧个钱场,没钱的捧个顶场! 只有有了大家的支持,我才有动力!
我的FOR DZ6.0RC1 其他HACK及美化!
快速发新主题添加『其他信息』并增加可填TAG功能 For DZ6.0RC1
https://discuz.dismall.com/thread-695949-1-1.html
首页横排美化(版块图标、最后发表标题、版主、版块介绍等8.1更新)For DZ6.0RC1
https://discuz.dismall.com/thread-693718-1-1.html
解决DZ6RC1黑色风格的输入框背景无法修改颜色的问题的方法!(其他风格也适用哦!)
https://discuz.dismall.com/thread-692062-1-1.html
3级置顶分开:固顶主题、重要主题、推荐主题 For Dz6.0RC1 By PopLong
https://discuz.dismall.com/thread-698075-1-1.html
[ 本帖最后由 poplong 于 2007-8-3 08:26 编辑 ] |