免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖
回復 1# pucca0823



[D7.0/7.2] 橫排美化

discuz.htm
1.找
  1. <th width="$cat[forumcolwidth]"{$forum[folder]}>
複製代碼
2.下面加入
  1. $forum[icon]
複製代碼
3.找
  1.                                                 <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if} style="{if $forum[extra][namecolor]}color: {$forum[extra][namecolor]};{/if}">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  2.                                                 <!--{if !$forum[redirect]}-->
  3.                                                         <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
  4.                                                         <!--{if $forum['permission'] == 1}-->
  5.                                                                 <p>{lang private_forum}
  6.                                                         <!--{else}-->
  7.                                                                 <p>{lang forum_lastpost}:
  8.                                                                         <!--{if is_array($forum['lastpost'])}-->
  9.                                                                                 <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>
  10.                                                                         <!--{else}-->
  11.                                                                                 {lang never}
  12.                                                                         <!--{/if}-->
  13.                                                                 </p>
複製代碼
4.改為
  1.                         <h2>┌ <a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if}>$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  2.                                                 <!--{if !$forum[redirect]}-->
  3.                                                         <p>├ {lang lastpost} : <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 10)}</a> By : <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite></p>
  4.                                                         <!--{if $forum['permission'] == 1}-->
  5.                                                                 <p>{lang private_forum}
  6.                                                         <!--{else}-->
  7.                                                                 <p>└   <!--{if is_array($forum['lastpost'])}-->
  8.                                                                         {lang forum_threads}: <strong>$forum[threads]</strong>, {lang forum_posts}: <strong>$forum[posts]</strong>
  9.                                                                         <!--{else}-->
  10.                                                                                 {lang never}
  11.                                                                         <!--{/if}-->
  12.                                                                 </p>
複製代碼
如想更改显示主题字数 , 可更改以下数字          
($forum[lastpost][subject], 10)


1.jpg
2.jpg

TOP

返回列表