五、外观设置-风格界面模板总管理
打开“页首通用(header.tpl.php)”,然后找到
<div style="line-height:22px;text-align:left; padding:5px 220px 0px 8px!important; padding:5px 220px 5px 8px;">
<FORM METHOD=POST ACTION="query.php">
<input type="text" name="keyword" size="15">
<input type="radio" name="stype" value="1" class="radio">{$lang['tpl.header.search1']}
<input type="radio" name="stype" value="2" checked="checked" class="radio">{$lang['tpl.header.search2']}
<input type="radio" name="stype" value="7" class="radio">{$str_ft}
<input type="submit" name="submit" class="button" value="{$lang['tpl.header.search5']}">
<input type="hidden" name="boardid" value="{$boardid}">
</FORM>
</div>
</div>
</div>
<br />
469行左右。在下面加入:
<!--
EOT;
if($boardid==0){
print <<<EOT
-->
<table cellpadding="4" cellspacing="1" align="center" class="tableborder1" style="width:98%;height:22px;">
<tr>
<th align="center">最新主题</th>
<th align="center">最新热门</th>
<th align="center">最新回复</th>
<th align="center">最新会员</th>
</tr>
<tr>
<td class="tablebody1" style="padding:6px;line-height:18px;"><script src="dv_news.php?get_name[]=newtopic"></script></td>
<td class="tablebody1" style="padding:6px;line-height:18px;"><script src="dv_news.php?get_name[]=hottopic"></script></td>
<td class="tablebody1" style="padding:6px;line-height:18px;"><script src="dv_news.php?get_name[]=lasttopic"></script></td>
<td class="tablebody1" style="padding:6px;line-height:18px;"><script src="dv_news.php?get_name[]=huiyuan"></script></td>
</tr>
</table>
<br />
<!--
EOT;
}else{
print <<<EOT
-->
<!--
EOT;
}
print <<<EOT
-->
最后附件解压后的images文件夹四张小图标上传到论坛根目录下的images文件夹里。OK
刷新你的论坛首页看看~~~惊喜出现了~~~做成功的给个演示看看~~
点击浏览该文件[此帖子已经被作者于2007-06-06 14:13:16编辑过]