柒瑞首页4格【圣诞版】(天气、名人名言、折叠、滚动)FOR DZ6.0 GBK 插件,手动修改
[DST] 柒瑞首页4格【圣诞版】(天气、名人名言、折叠、滚动)FOR DZ6.0 GBK 插件,,,,全新安装,,,好像是没有改过源文件才能,,,如果改过原文件的,,,那本人这里有一小小经验,,,,看看吧,,,,
1、下载[DST] 柒瑞首页4格【圣诞版】(天气、名人名言、折叠、滚动)FOR DZ6.0 GBK 插件
2、将你的文件index.php
templates/default/discuz.htm
下载
改动下:
index.php
找到
$newthreads = round(($timestamp - $lastvisit + 600) / 1000) * 1000;
在后面加:
//------ plm 缓存修改首页四格开始 ------
@include DISCUZ_ROOT.'./index_four.php';
//------ plm 缓存修改首页四格结束 ------
templates/default/discuz.htm
找到:
</strong> $customtopics [<a href="###" onclick="window.open('misc.php?action=customtopics', '', 'width=320,height=450,resizable=yes,scrollbars=yes');">{lang edit}</a>]<br />
<!--{/if}-->
<!--{if !empty($qihoo['links']['topics'])}-->
<strong>{lang qihoo_topics}</strong>
<!--{loop $qihoo['links']['topics'] $url}-->
{$url}
<!--{/loop}-->
<!--{/if}-->
<!--{/if}-->
</td>
<!--{/if}-->
</tr>
</table>
在下面加:
<!-- 首页四格代码开始 -->
<div class="mainbox forumlist">
<span class="headactions">
<!--{if $cat['moderators']}-->{lang forum_category_modedby}: $cat[moderators]<!--{/if}-->
<img id="category_$cat[fid]_img" src="{IMGDIR}/collapsed_no.gif" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
</span>
<span class="headactions">{template weather}</span>
<h3>『 名人名言:$geyanline_7ree 』</h3>
<table cellspacing="0" cellpadding="0" id="category_$cat[fid]" summary="category$cat[fid]" cellspacing="0" cellpadding="0" style="$collapse['category_'.$cat[fid]]">
<thead class="category">
<tr>
<td align="center" class="lastpost"><b>『 最新图片 』</b></td>
<td align="center" class="lastpost"><b>『 新鲜出炉 』</b></td>
<td align="center" class="lastpost"><b>『 最新关注 』</b></td>
<td align="center" class="lastpost"><b>『 本周热门 』</b></td>
</tr>
</thead>
<tr>
<td align="center" class="lastpost">
<script type="text/javascript" src="pic.php"></script>
</td>
<td class="lastpost">
<!--{loop $new_post_threadlist $nthread}-->
<!--{if $nthread[replies]}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><img src="images/list.gif" border="0" /> <a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}最后回复: $nthread[lastreplytime]{LF}{lang lastpost}: $nthread[lastposter]'>$nthread[view_subject]</a></div>
<!--{else}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><img src="images/list.gif" border="0" /> <a href="viewthread.php?tid=$nthread[tid]" $nthread['highlight'] title='最新帖子 {LF}所在论坛: $nthread[forumname]{LF}主题标题: $nthread[subject] {LF}主题作者: $nthread[author]{LF}发表时间: $nthread[date]{LF}浏览次数: $nthread[views] 次 {LF}回复次数: $nthread[replies] 次{LF}最后回复: 暂时没有回复'>$nthread[view_subject]</a></div>
<!--{/if}-->
<!--{/loop}-->
</td>
<td class="lastpost">
<!--{loop $new_reply_threadlist $rthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><img src="images/list.gif" border="0" /> <a href="viewthread.php?tid=$rthread[tid]" $rthread['highlight'] title='最新回复 {LF}所在论坛: $rthread[forumname]{LF}主题标题: $rthread[subject]{LF}主题作者: $rthread[author]{LF}发表时间: $rthread[date]{LF}浏览次数: $rthread[views] 次{LF}回复次数: $rthread[replies] 次{LF}最后回复: $rthread[lastreplytime]{LF}{lang lastpost}: $rthread[lastposter]'>$rthread[view_subject]</a></div>
<!--{/loop}-->
</td>
<td class="lastpost">
<!--{loop $new_hot_threadlist $mthread}-->
<div style="overflow: hidden;height: 20px;width: 100%;"><img src="images/list.gif" border="0" /> <a href="viewthread.php?tid=$mthread[tid]" $mthread['highlight'] title='本周热门 {LF}所在论坛: $mthread[forumname]{LF}主题标题: $mthread[subject]{LF}主题作者: $mthread[author]{LF}发表时间: $mthread[date]{LF}浏览次数: $mthread[views] 次{LF}回复次数: $mthread[replies] 次{LF}最后回复: $mthread[lastreplytime]{LF}{lang lastpost}: $mthread[lastposter]'>$mthread[view_subject]</a></div>
<!--{/loop}-->
</td>
</tr>
</table>
</div>
<!-- 首页四格代码结束 -->
装上面两个文件,,,传到《[DST] 柒瑞首页4格【圣诞版】(天气、名人名言、折叠、滚动)FOR DZ6.0 GBK 插件》将原有的这两个文件替换下,然后再传到FTP中,,,,其它文件不要动,,,,
就这样,,,,应该说行的,,,
可以试试,,,,,
http://ekebar.com/bbs