Discuz技巧:怎么才能使横排显示简介?

09年06月09日

新手使用Discuz论坛程序时候,对于分区横排可能很多人都会遇到不显示简介的问题,解决方法要修改一下模板,具体方法如下:

 

1、首先打开 templates/default/discuz.htm文件

 

2、通过ctrl+f 找到$forum[lastpost][dateline]</a>,应该文件中只有一处

 

3、查看相关代码为

    $forum[lastpost][dateline]</a>

            <!–{else}–> {lang never} <!–{/if}–></p>

 

4、在其后加上[版块介绍显示]的相关代码 如下:

     <!–{if $forum[description]}–><p>$forum[description]</p><!–{/if}–>

 

5、修改后的代码为

   <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost"

              title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by}

{if $forum['lastpost']['author']}$forum['lastpost']['authorusername']

{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>

           <!–{else}–> {lang never} <!–{/if}–></p>

           <!–{if $forum[description]}–><p>$forum[description]</p><!–{/if}–>

           <!–{/if}–> <!–{else}–>

 

6、其中有底色的是我们加的代码,请检查是否正确

 

7、附上截图

横排 简介






相关文章:

  1. JSTL 学习、应用记录
  2. CSS对IE7,IE6,FireFox和其它不同浏览器的控制(转)
  3. Discuz程序文件目录含义
  4. 感受:1年程序员读6年软件工程师的总结
  5. 初学者如何学习J2SE直到J2EE相关进阶视频点评



  • 原文链接: http://www.astesys.com/website/dz/573.html
  • 转载文章请注明: 爱思特
  • 发表评论