Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

whatsnew在论坛首页调用

[复制链接]
lu5266 发表于 2005-8-26 13:54:25 | 显示全部楼层 |阅读模式
昨天晚上
帮人弄了一个晚上
才弄好了
既然有了
拿出来大家分享下
需要的就顶啊

名称:whatsnew在论坛首页调用
作者:lu5266

演示:http://free4.e-168.cn/luzhenling/bbs/index.php?styleid=10

1:修改模板index.htm


查找:

  1. <!--{if !empty($newpmexists)}-->
  2.         {template pmprompt}
  3. <!--{/if}-->
复制代码



在下面加上:

  1. <!-- whatsnew  hack -->
  2. {template whatsnew}
  3. <!--whatsnew hack end -->
复制代码


2:新建并修改模板whatsnew.htm,修改后并传到对应的模板目录


  1. <table cellspacing="0" cellpadding="0" border="0" width="{TABLEWIDTH}" align="center" bgcolor="{BORDERCOLOR}"><tr><td>

  2. <table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" style="table-layout: fixed; word-wrap: break-word"  >
  3. <tr class="header">
  4. <td width="25%" align="center"><span class="rainbow">▼论坛最新主题▼</span> </td>
  5. <td width="25%" align="center"><span class="rainbow">▼最新回复主题▼</span> </td>
  6. <td width="25%" align="center"><span class="rainbow">▼论坛精华主题▼</span> </td>
  7. <td width="25%" align="center"><span class="rainbow">▼论坛最热主题▼</span> </td>
  8. </tr>

  9. <table cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" border="0" width="100%"   bgcolor="{BORDERCOLOR}" align=center>

  10. <tr>
  11. <td width="25%"  bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
  12. <script src="whatsnew.php?feature=1&length=28&orderby=3&items=10&digest=0"></script></td>

  13. <td width="25%"  bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
  14. <script src="whatsnew.php?feature=1&orderby=0&length=28&items=10&digest=0"></script></td>

  15. <td width="25%"  bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
  16. <script src="whatsnew.php?feature=1&orderby=0&length=28&items=10&digest=1"></script></td>

  17. <td width="25%"  bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
  18. <script src="whatsnew.php?feature=1&length=28&orderby=1&items=10"></script></td>

  19. </tr>

  20. </table>
  21. </td></tr></table>
复制代码
所调用选项
自己根据whatsnew.php和你想要的项目来决定

[ 本帖最后由 lu5266 于 2005-9-28 07:30 编辑 ]

评分

1

查看全部评分

魔焰男孩 发表于 2005-8-26 13:55:54 | 显示全部楼层
顶!说实话,我从来没有成功地使用过whatsnew。
回复

使用道具 举报

freddy 发表于 2005-8-26 15:54:15 | 显示全部楼层
支持LULU!
回复

使用道具 举报

forout 发表于 2005-8-26 16:53:15 | 显示全部楼层
支持一记...
回复

使用道具 举报

 楼主| lu5266 发表于 2005-8-26 21:35:03 | 显示全部楼层
谢谢支持
哈哈
回复

使用道具 举报

M55 发表于 2005-8-26 22:47:28 | 显示全部楼层
什么意思啊老大?我等菜鸟看不明白啊?

哈哈!是不是帮我也搞一个啊!!!!先谢你哦~~~~~~~~~~GOGOGO!
回复

使用道具 举报

mxd-user 发表于 2005-8-26 23:11:39 | 显示全部楼层
支持哈!成功了哈哈
回复

使用道具 举报

 楼主| lu5266 发表于 2005-8-26 23:47:30 | 显示全部楼层
原帖由 M55 于 2005-8-26 22:47 发表
什么意思啊老大?我等菜鸟看不明白啊?

哈哈!是不是帮我也搞一个啊!!!!先谢你哦~~~~~~~~~~GOGOGO!


哈哈
你看看你的楼下
回复

使用道具 举报

rbescom 发表于 2005-8-27 00:43:16 | 显示全部楼层
具体是什么东西?
回复

使用道具 举报

 楼主| lu5266 发表于 2005-8-27 01:06:11 | 显示全部楼层
原帖由 rbescom 于 2005-8-27 00:43 发表
具体是什么东西?

看童虎老师的全新whatsnew系统
https://discuz.dismall.com/viewth ... &extra=page%3D2
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-4 06:16 , Processed in 0.099156 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表