|
whatsnew在论坛首页调用
名称:whatsnew在论坛首页调用
作者:lu5266
演示:[url]http://free4.e-168.cn/luzhenling/bbs/index.php?styleid=10[/url]
1:修改模板index.htm
查找:
CODE:[Copy to clipboard]<!--{if !empty($newpmexists)}-->
{template pmprompt}
<!--{/if}-->
在下面加上:
CODE:[Copy to clipboard]<!-- whatsnew hack -->
{template whatsnew}
<!--whatsnew hack end -->
2:新建并修改模板whatsnew.htm,修改后并传到对应的模板目录
CODE:[Copy to clipboard]<table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" bgcolor="{BORDERCOLOR}"><tr><td>
<table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" style="table-layout: fixed; word-wrap: break-word" >
<tr class="header">
<td width="25%" align="center"><span class="rainbow">▼论坛最新主题▼</span> </td>
<td width="25%" align="center"><span class="rainbow">▼最新回复主题▼</span> </td>
<td width="25%" align="center"><span class="rainbow">▼论坛精华主题▼</span> </td>
<td width="25%" align="center"><span class="rainbow">▼论坛最热主题▼</span> </td>
</tr>
<table cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" border="0" width="100%" bgcolor="{BORDERCOLOR}" align=center>
<tr>
<td width="25%" bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
<script src="whatsnew.php?feature=1&length=28&orderby=3&items=10&digest=0"></script></td>
<td width="25%" bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
<script src="whatsnew.php?feature=1&orderby=0&length=28&items=10&digest=0"></script></td>
<td width="25%" bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
<script src="whatsnew.php?feature=1&orderby=0&length=28&items=10&digest=1"></script></td>
<td width="25%" bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
<script src="whatsnew.php?feature=1&length=28&orderby=1&items=10"></script></td>
</tr>
</table>
</td></tr></table>
QUOTE:
所调用选项
自己根据whatsnew.php和你想要的项目来决定
[ 本帖最后由 lu5266 于 2005-9-28 07:30 编辑 ] |
Powered by Discuz! Archiver 2.5 Deluxe
© 2001-2005 Comsenz Technology Ltd
Processed in 0.010022 second(s), 2 queries |