返回列表 回復 發帖

【DZ61小修改系列】進入主題列表[我的主題]加下劃線

文章來源 : http://www.discuz.net/thread-1023701-1-1.html

在blueidea上看到了一個貼心的功能,如果是我發的主題會加粗,方便有些站流量很大,找不到自己的帖的論壇,這裡考慮到加粗可能沒有加下劃線實在,因而改成加下劃線了,要改也很方便。

為了使修改最小,只改了模板,這樣刪起來也方便。

編輯 templates/default/forumdisplay.htm  (註:裝了其他風格的,修改風格目錄下的該模板。)

找到
<!--{if $separatepos == $key + 1}-->
在上面加:
  1. <!--作者主題加下劃線 by 郭鑫-->
  2. <!--{if $thread['authorid'] == $discuz_uid}-->
  3.         {eval $addstyle = "style='text-decoration:underline'"; }
  4. <!--{else}-->
  5.         {eval $addstyle = ""; }
  6. <!--{/if}-->
  7. <!--/作者主題加下劃線-->
複製代碼
繼續找:
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]>$thread[subject]</a></span>
改成:
  1. <a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight] {$addstyle}>$thread[subject]</a></span>
複製代碼
附:如果不喜歡下劃線,可將上面代碼的:
  1. text-decoration:underline
複製代碼
改成其他css樣式,如加粗的:
  1. font-weight:bold;
複製代碼
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊
返回列表