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

 找回密码
 立即注册
搜索

发帖时主题图标显示在主题下面,可以当成主题二级分类多级分类或分类信息的方法!

[复制链接]
key888 发表于 2008-11-20 03:35:51 | 显示全部楼层 |阅读模式





好处是可以节省主题分类的利用,discuz在这方面设置的比较麻烦!希望能增加主题多级分类!

本帖源自:https://discuz.dismall.com/viewth ... BC%B1%EA&page=1

修正了那个网友的不足,再次感谢!(发个G G 可否?挺累的 呵呵 http://www.sjz2.com 谅解!!)



修改
templates/default/post_newthread.htm  (发帖时的文件模板)

templates/default/post_editpost.htm (编辑帖子时的文件模板)



第一步:在post_newthread.htm 里查找代码:
  1. <input type="text" name="subject" id="subject" size="45" value="$subject" tabindex="3" />

  2.                         </td>
  3.                 </tr>
复制代码
在下面加上:
  1. <!--{if !$special}-->
  2.                                 <tr>
  3.                                         <th style="border-bottom: 0">{lang icon}</th>
  4.                                         <td style="border-bottom: 0"><label><input class="radio" type="radio" name="iconid" value="0" checked="checked" tabindex="208" /> {lang none}</label> $icons</td>
  5.                                 </tr>
  6.                         <!--{/if}-->
  7.                 <!--{if $maxprice && !$special}-->
  8.                                 <tr>
  9.                                         <th style="border-bottom: 0"><label for="price">{lang price}({$extcredits[$creditstrans][title]})</label></th>
  10.                                         <td style="border-bottom: 0"><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}-->)
  11.                                         {lang post_price_free_comment}</em>
  12.                                 </td>
  13.                                 </tr>
  14.                         <!--{/if}-->
复制代码
第二步:在post_newthread.htm 里查找代码:
  1. <!--{if $maxprice && !$special}-->
  2.                                 <tr>
  3.                                         <th><label for="price">{lang price}({$extcredits[$creditstrans][title]})</label></th>
  4.                                         <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}-->)
  5.                                         {lang post_price_free_comment}</em>
  6.                                 </td>
  7.                                 </tr>
  8.                         <!--{/if}-->

  9.                         <!--{if !$special}-->
  10.                                 <tr>
  11.                                         <th>{lang icon}</th>
  12.                                         <td><label><input class="radio" type="radio" name="iconid" value="0" checked="checked" tabindex="208" /> {lang none}</label> $icons</td>
  13.                                 </tr>
  14.                         <!--{/if}-->
复制代码
替换为:
  1. <!--{if 0}-->
  2.                         <!--{if !$special}-->
  3.                                 <tr>
  4.                                         <th>{lang icon}</th>
  5.                                         <td><label><input class="radio" type="radio" name="iconid" value="0" checked="checked" tabindex="208" /> {lang none}</label> $icons</td>
  6.                                 </tr>
  7.                         <!--{/if}-->
  8.        <!--{/if}-->
复制代码
第三步:在post_editpost.htm 里查找代码:
  1. <input type="hidden" name="origsubject" value="$postinfo[subject]" />
  2. <!--{if $special == 6}-->
  3.         <input type="hidden" name="subjectu8" value="" />
  4.         <input type="hidden" name="tagsu8" value="" />
  5.         <input type="hidden" name="vid" value="1" />
  6. <!--{/if}-->
  7. </td></tr>
复制代码
下面加上:
  1. <!--{if !$special}-->
  2.                                 <tr>
  3.                                         <th style="border-bottom: 0">{lang icon}</th>
  4.                                         <td style="border-bottom: 0"><label><input class="radio" type="radio" name="iconid" value="0" checked="checked" tabindex="208" /> {lang none}</label> $icons</td>
  5.                                 </tr>
  6.                         <!--{/if}-->
  7.                 <!--{if $maxprice && !$special}-->
  8.                                 <tr>
  9.                                         <th style="border-bottom: 0"><label for="price">{lang price}({$extcredits[$creditstrans][title]})</label></th>
  10.                                         <td style="border-bottom: 0"><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}-->)
  11.                                         {lang post_price_free_comment}</em>
  12.                                 </td>
  13.                                 </tr>
  14.                         <!--{/if}-->
复制代码
第四步:在post_editpost.htm 里查找代码:
  1. <!--{if !$thread['special']}-->
  2.                 <tr>
  3.                 <th>{lang icon}</th><td><input type="radio" name="iconid" value="0" tabindex="207" checked /> {lang none} $icons</td>
  4.                 </tr>
  5.         <!--{/if}-->
复制代码
替换为:
  1. <!--{if 0}-->
  2.         <!--{if !$thread['special']}-->
  3.                 <tr>
  4.                 <th>{lang icon}</th><td><input type="radio" name="iconid" value="0" tabindex="207" checked /> {lang none} $icons</td>
  5.                 </tr>
  6.         <!--{/if}-->
  7. <!--{/if}-->
复制代码
更新缓存,OK了,去看看效果吧!
回复

使用道具 举报

指间流沙 发表于 2008-11-20 08:35:07 | 显示全部楼层
楼主是好人啊

收藏了
回复

使用道具 举报

灰空间2 发表于 2008-12-12 01:09:37 | 显示全部楼层
收藏了66666666666666
回复

使用道具 举报

adminadam 发表于 2008-12-29 04:16:54 | 显示全部楼层
这个不错啊 我收藏啦
回复

使用道具 举报

小怪怪 发表于 2009-2-1 18:48:12 | 显示全部楼层
不错 支持下 设置好了

演示 www.like2008.com
回复

使用道具 举报

paimei 发表于 2009-2-15 01:21:58 | 显示全部楼层
7.0怎么改啊
回复

使用道具 举报

willzhuce 发表于 2009-4-11 08:01:01 | 显示全部楼层
标记一下
回复

使用道具 举报

ufokiy 发表于 2009-5-30 21:02:52 | 显示全部楼层
好贴就要顶。。。。。。。。。。。。。。。
回复

使用道具 举报

ufokiy 发表于 2009-6-6 10:11:25 | 显示全部楼层
牛。。。。。。。。。。。。
回复

使用道具 举报

280564290 发表于 2009-6-6 10:12:08 | 显示全部楼层
支持一下,,
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-8-23 17:01 , Processed in 0.101505 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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