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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

求三级置顶分开:固顶主题、重要主题、推荐主题Discuz 6.1的

[复制链接]
OrdinaryGuy 发表于 2008-6-28 19:27:08 | 显示全部楼层 |阅读模式
我找过了,没有6.1的,只有6.0的,在6.1中根本没有6.0的code,所以更改不了!!

以下是6.0的

1.修改:forumdisplay.htm模版

查找:复制内容到剪贴板代码:
                <!--{if $separatepos == $key + 1}-->
                </table>
                <table summary="forum_$fid" id="forum_$fid" cellspacing="0" cellpadding="0">
                <thead class="separation">
                        <tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4">{lang forum_normal_threads}</td></tr>
                </thead>
                <!--{/if}-->替换为:复制内容到剪贴板代码:
<!-- 三级置顶 -->
<!--{if $tr != $thread['displayorder']}-->
          <tr class="category"><td> </td><td colspan="6">
          <!--{if $thread['displayorder'] == 1}-->
          <thead class="separation">
<tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=Green><b>推荐主题</b></font>
  </thead>
          <!--{elseif $thread['displayorder'] == 2}-->
          <thead class="separation">
<tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=Blue><b>重要主题</b></font>
  </thead>
          <!--{elseif $thread['displayorder'] == 3}-->
          <thead class="separation">
<tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=red><b>固顶主题</b></font>
  </thead>
          </b><!--{else}-->
          <thead class="separation">
<tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=#000000>{lang forum_normal_threads}</font>
  </thead>
          <!--{/if}-->
          </td></tr>
          <!--{eval $tr = $thread['displayorder'];}-->
          <!--{/if}-->
<!-- 三级置顶 -->
钻石会员 发表于 2008-6-28 20:16:27 | 显示全部楼层
演示www.ucrzj.cn

打开模板文件forumdisplay.htm
查找:

  1. <!--{if $separatepos == $key + 1}-->
  2.                 </table>
  3.                 <table summary="forum_$fid" id="forum_$fid" cellspacing="0" cellpadding="0">
  4.                 <thead class="separation">
  5.                 <tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4">{lang forum_normal_threads}</td></tr>
  6.                 </thead>
  7.                 <!--{/if}-->
复制代码


替换为:

  1. <!--{if $tr != $thread['displayorder']}-->
  2.           <tr class="category"><td> </td><td colspan="6">
  3.           <!--{if $thread['displayorder'] == 1}-->
  4.           <thead class="separation">
  5. <tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=green><b>★本版置顶</b></font>
  6.   </thead>
  7.           <!--{elseif $thread['displayorder'] == 2}-->
  8.           <thead class="separation">
  9. <tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=blue><b>★★分区置顶</b></font>
  10.   </thead>
  11.           <!--{elseif $thread['displayorder'] == 3}-->
  12.           <thead class="separation">
  13. <tr><td>&nbsp;</td><td>&nbsp;</td><td colspan="4"><font color=red><b>★★★全局置顶</b></font>
  14.   </thead>
  15.           </b><!--{else}-->
  16.           <thead class="separation">
  17. <tr><td>&nbsp;</td><td>&nbsp;</td></td><td colspan="4"><font color=#000000><b>{lang forum_normal_threads}</b></font>
  18.   </thead>
  19.           <!--{/if}-->
  20.           </td></tr>
  21.           <!--{eval $tr = $thread['displayorder'];}-->
  22.           <!--{/if}-->
复制代码
回复

使用道具 举报

飘香公主 发表于 2008-6-28 22:04:06 | 显示全部楼层
看我的签名
回复

使用道具 举报

setf 发表于 2008-6-29 01:13:32 | 显示全部楼层
谢谢
回复

使用道具 举报

papcong 发表于 2008-7-17 08:40:48 | 显示全部楼层
使用留名。。
回复

使用道具 举报

astcws 发表于 2008-7-27 12:16:17 | 显示全部楼层
谢了!
回复

使用道具 举报

嘟啦蝶影 发表于 2008-8-15 09:53:10 | 显示全部楼层
不错,帮忙顶.
http://dlhpc.vicp.cc
回复

使用道具 举报

tfwork 发表于 2008-8-28 12:43:52 | 显示全部楼层
刚装上,效果不错,http://www.nokiabj.com
回复

使用道具 举报

瞧瞧瞧、 发表于 2013-8-16 12:01:19 | 显示全部楼层
为什么我找不到<!--{if $separatepos == $key + 1}-->,我用的是X3的,求指教!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-22 06:56 , Processed in 0.102352 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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