那打文章打到一半不就掛了。
這次的重點擺在 index/viewforum/viewonline 這三頁上,
讓使用者可以停在某個網頁上面,五分鐘後自動重整看有沒有新文章。
而viewonline則提供閒閒沒事看線上名單的使用者每30秒重整一次。
同理,可以應用在其他地方。
代碼: 選擇全部
########################################################
## Mod Title: Auto Reflash in Some Pages
## Mod Version: 1.0.1
## Author: Ernie Yang (ernie.yang@msa.hinet.net)
##
## Description:
## This mod will make (index/viewforum) pages auto-reflash in every 5 minutes and 30 seconds in (viewonline) page.
## This mod is for phpBB 2.x.x
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit: 3
## templates/your_templats/index_body.tpl
## templates/your_templats/viewforum_body.tpl
## templates/your_templats/viewonline_body.tpl
##
##########################################################
## Author Notes:
## You can also do it in other pages if you wants it to auto-reflash.
##
##########################################################
## MOD History:
##
## 2003-10-26 - Version 1.0.0
##
##########################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##########################################################
#
#-----[ OPEN 打開 ]---------------------------------------
#
templates/your_templats/index_body.tpl
#
#-----[ TOP, ADD 在頂端加入 ]-----------------------------
#
# The CONTENT="X" decide how many seconds to alto-reflash, you can change it by yourself.
# CONTENT="X" 是決定每隔幾秒鐘自動重新整理,你可以自己換。
#
<META HTTP-EQUIV="Refresh" CONTENT="300">
#
#-----[ OPEN 打開 ]---------------------------------------
#
templates/your_templats/viewforum_body.tpl
#
#-----[ TOP, ADD 在頂端加入 ]-----------------------------
#
# The CONTENT="X" decide how many seconds to alto-reflash, you can change it by yourself.
# CONTENT="X" 是決定每隔幾秒鐘自動重新整理,你可以自己換。
#
<META HTTP-EQUIV="Refresh" CONTENT="300">
#
#-----[ OPEN 打開 ]---------------------------------------
#
templates/your_templats/viewonline_body.tpl
#
#-----[ TOP, ADD 在頂端加入 ]-----------------------------
#
# The CONTENT="X" decide how many seconds to alto-reflash, you can change it by yourself.
# CONTENT="X" 是決定每隔幾秒鐘自動重新整理,你可以自己換。
#
<META HTTP-EQUIV="Refresh" CONTENT="30">
#
#-----[ SAVE/CLOSE ALL FILES 關閉並儲存檔案 ]-------------
#
# EoM
我的第一個MOD,還請指教喔