人民不應該懼怕他們的政府,政府應該要懼怕他們的人民
DO1.首頁顯示最後發表標題、作者、時間 修正美化版 Discuz!5.5
上一篇 /
下一篇 2007-08-20 14:52:07
/ 個人分類:Discuz/ss/xs調用指南
插件作用:首页显示每个版块最新回复主题的标题、时间、作者。并完美适用任何风格,不撑开表格,不影响美观。房市家 大社區T$G;J+C
B:Bq{:}
说 明:插件原创不是我,只是记得以前游人发过,我修改了一下而已!房市家 大社區3ewT:d+e
Y$|
适用版本:Discuz! 5。5正式版
9OH0Sahq#H5c6^N!]q9y0修改文件:include/forum.func.php、templates/default/discuz.htm模板
|4OCk?9{0安装难易:简房市家 大社區%Epo&L{BSCV H
一、修改 include/forum.func.php
先找出以下字串:
list($lastpost['tid'], $lastpost['subject'], $lastpost['dateline'], $lastpost['author']) = is_array($forum['lastpost']) ? $forum['lastpost'] : explode("\t", $forum['lastpost']);
在該字串後面加入:
//首页显示最后发表标题BY 17cL.cn房市家 大社區B.iW(I#@]0i
$lastpost['subject1'] = cutstr($lastpost['subject'], 20, $dot = ' ...');
1x)B)c0p$SS}1Z0M9I0 //其中20是主题的字符长度,可自行修改房市家 大社區Iw!R
NT(T
//首页显示最后发表标题BY 17cL.cn
二、修改 风格文件/discuz.htm房市家 大社區gg!T0W5|mS$W
找出以下字串:
<td align="center" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}" nowrap>房市家 大社區S9@+DW'EAI6It(@
<span class="smalltxt"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a></span><br>{lang forum_lastpost_by} <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}-->
將其替換為:
<td align="left" nowrap>
&P#k1gZ$?1`L
]m7PZ0┌{lang forum_lastpost_in}: <span class="smalltxt"><a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost" title="{lang forum_lastpost_in}: {$forum[lastpost][subject]}">$forum[lastpost][subject1]</a></span><br>房市家 大社區J`,Vvu)WJ1_/v
├作者: <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--><br>房市家 大社區/H*pS%g5[8JF
└时间: <a href="redirect.php?tid=$forum[lastpost][tid]&goto=lastpost#lastpost">$forum[lastpost][dateline]</a>
1_-iW2D'M-JH s%M`o0
導入論壇
引用鏈接
收藏
分享給好友
推薦到圈子
管理
舉報
TAG: