本帖最后由 popuppp 于 2012-3-5 22:07 编辑  
 
---------------------------分割线-----------横排 最后发表 显出标题和作者------------------- 
 
 
- 最后发表 显出标题和时间,效果图片如下图
 
 
 - 编辑/template/default/forum/中的discuz.htm (若非默认风格,则同样修改)
 
 
查找如下代码 (搜索不到,请缩短搜索,既搜索内容中的两个 <dd>……</dd> 之间 ) 
-                                                                         <!--{if $forum['permission'] == 1}-->
 
 -                                                                                 {lang private_forum}
 
 -                                                                         <!--{else}-->
 
 -                                                                                 <!--{if $forum['redirect']}-->
 
 -                                                                                         {lang url_link}
 
 -                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
 
 -                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
 
 -                                                                                                 <!--{echo cutstr($forum[lastpost][subject], 30)}--> $forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}-->
 
 -                                                                                         <!--{else}-->
 
 -                                                                                                 {lang forum_lastpost}: $forum[lastpost][dateline]
 
 -                                                                                         <!--{/if}-->
 
 -                                                                                 <!--{else}-->
 
 -                                                                                         {lang never}
 
 -                                                                                 <!--{/if}-->
 
 -                                                                         <!--{/if}-->
 
 -                                                                         
 
  复制代码 - 然后将上面查找到的代码,替换成下面的即可(forum[lastpost][subject], 30)  30是最后发表的字节数)
 
 
  
 
- <!--{if $forum['permission'] == 1}-->
 
 - {lang private_forum}
 
 - <!--{else}-->
 
 - <!--{if $forum['redirect']}-->
 
  
- {lang url_link}
 
 - <!--{elseif is_array($forum['lastpost'])}-->
 
 - <!--{if $cat['forumcolumns'] < 3}-->
 
 - <!--{echo cutstr($forum[lastpost][subject], 30)}--> $forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}-->
 
 - <!--{else}-->
 
 - {lang forum_lastpost}: {echo cutstr($forum[lastpost][subject], 30)}  $forum[lastpost][dateline]
 
 - <!--{/if}-->
 
 - <!--{else}-->
 
 - {lang never}
 
 - <!--{/if}-->
 
 - <!--{/if}-->
 
 
  复制代码 修改后的discuz.htm上传直接覆盖
 
修改后的discuz.htm.zip
(5.64 KB, 下载次数: 4031)
 
---------------------------分割线-----------横排 最后发表 显出标题和时间 及版块简介------------------- 
效果图片如下图 
 
 
- 
 
 - 编辑/template/default/forum/中的discuz.htm (若非默认风格,则同样修改)
 
 
查找如下代码 (搜索不到,请缩短搜索,既搜索内容中的两个 <dd>……</dd> 之间 ) 
-                                                                         <!--{if $forum['permission'] == 1}-->
 
 -                                                                                 {lang private_forum}
 
 -                                                                         <!--{else}-->
 
 -                                                                                 <!--{if $forum['redirect']}-->
 
 -                                                                                         {lang url_link}
 
 -                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
 
 -                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
 
 -                                                                                                 <!--{echo cutstr($forum[lastpost][subject], 30)}--> $forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}-->
 
 -                                                                                         <!--{else}-->
 
 -                                                                                                 {lang forum_lastpost}: $forum[lastpost][dateline]
 
 -                                                                                         <!--{/if}-->
 
 -                                                                                 <!--{else}-->
 
 -                                                                                         {lang never}
 
 -                                                                                 <!--{/if}-->
 
 -                                                                         <!--{/if}-->
 
 -                                                                         
 
  复制代码 - 然后将上面查找到的代码,替换成下面的即可(forum[lastpost][subject], 30)  30是最后发表的字节数)
 
 
  
-                                                                         <!--{if $forum[description]}-->本版简介:$forum[description]<!--{/if}-->
 
 -                                                                         <!--{if $forum['permission'] == 1}-->
 
 -                                                                                 {lang private_forum}
 
 -                                                                         <!--{else}-->
 
 -                                                                                 <!--{if $forum['redirect']}-->
 
 -                                                                                 
 
 -         {lang url_link}
 
 -                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
 
 -                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
 
 -                                                                                                 <!--{echo cutstr($forum[lastpost][subject], 30)}--> $forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}-->
 
 -                                                                                         <!--{else}-->
 
 -                                                                                                 {lang forum_lastpost}: {echo cutstr($forum[lastpost][subject], 30)}  $forum[lastpost][dateline]
 
 -                                                                                         <!--{/if}-->
 
 -                                                                                 <!--{else}-->
 
 -                                                                                         {lang never}
 
 -                                                                                 <!--{/if}-->
 
 -                                                                         <!--{/if}-->
 
 -                                                                           
 
  复制代码 修改后的discuz.htm上传直接覆盖
 
修改后的discuz.htm.zip
(26.55 KB, 下载次数: 5744)
  
 |