This is moderately easy to install, and will be updated first on this site.
由於 php 的功能支援不足,因此這一個外掛以 Perl 撰寫,讓 phpBB 的檔首圖像 (Logo) 可以有替換的功能。這個外掛很蠻安裝,而且會在我的站上使先發佈更新檔
代碼: 選擇全部
##############################################################
## MOD Title: Rotational forum header image
## 外掛名稱: 輪流替換討論區 Logo
## MOD Author: Antony, antony_bailey@lycos.co.uk, Antony Bailey, http://rapiddr3am.slackslash.net
## 外掛作者: Antony, antony_bailey@lycos.co.uk, Antony Bailey, http://rapiddr3am.slackslash.net
## 中文譯者: Mac < ycl_6@sinamail.com > http://phpbb-tw.net/, http://endless-tw.net/
## MOD Description: This allows you to specify a number of header images, that rotate at random. Every refresh.
## 外掛描述: 這可以讓你指定數個圖像,顯示在討論版上方的 Logo 位置,在你每次更新網頁時換另一個圖像
## MOD Version: 1.0.0
## 外掛版本: 1.0.0
##
## Installation Level: Moderate
## 安裝難度: 適中
## Installation Time: 10 minutes.
## 安裝時間: 10 分鐘
## Files To Edit: random-img.cgi, rotation.txt, overall_header.tpl
## 修改檔案: random-img.cgi, rotation.txt, overall_header.tpl
## Included Files: random-img.cgi, rotation.txt, root.php
## 附加檔案: random-img.cgi, rotation.txt, root.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##
## 由於安全上的考量,請檢查:
## http://www.phpbb.com/mods/downloads/ 是否有此外掛的最新版本\r
## 從其他地方下載此檔可能會造成你在你的 phpBB 討論版上寫入有誤的程式碼\r
## 基於這個理由,phpBB 將不會為沒有收藏在我們的外掛資料庫的外掛提供支援\r
## 我們的外掛資料庫在 http://www.phpbb.com/mods/downloads/
##
##############################################################
## Author Notes: I wrote this in perl, because well it was the easiest. And php GD doesn't support gif.
## Images maybe repeated as are picked at random from the text file, and not put in a loop.
## The more images you rotate the more random it becomes.
##
## 作者留言: 這個外掛我用 perl 寫的,因為這是最簡單的方法。而且 php GD 不支援 gif 檔
## 圖像可能會重複顯示出來,因為它是由程式任意挑選的,不是以循環的方式
## 當你使用更多的圖像時,隨機挑選的方式會明顯\r
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##
## 在你加入這個外掛前,你應該把所有與這個外掛有關的檔案進行備份\r
##############################################################
#
#-----[ OPEN 打開 ]------------------------------------------
#
rotation.txt
#
#-----[ FIND 尋找 ]------------------------------------------
#
Insert images here.
#
#-----[ REPLACE WITH 將之取代為 ]------------------------------------------
#
Names of all images, you wish to rotate.
所有你想要隨機循環的圖像的檔名
#
#-----[ UPLAOD 上傳 ]------------------------------------------
#
root.php and roation.txt to templates/subSilver
root.php 和 roation.txt 到 templates/subSilver 中\r
#
#-----[ RUN 執行 ]------------------------------------------
#
root.php
Then make a note of the directory path.
然後記下顯示的路徑
#
#-----[ OPEN 打開 ]------------------------------------------
#
random-img.cgi
#
#-----[ FIND 尋找 ]------------------------------------------
#
/absolute/path/to/image/script
#
#-----[ REPLACE WITH 將之取代為 ]------------------------------------------
#
The result of root.php/rotation.txt
你從 root.php 得到的路徑/rotation.txt
#
#-----[ FIND 尋找 ]------------------------------------------
#
http://www.yourdomain.com/image/path
#
#-----[ REPLACE WITH 將之取代為 ]------------------------------------------
#
The full url of the directory containing the image(s) to be rotated.
填入將要循環的圖像完整"目錄夾"網址,也就是圖片的放置目錄夾,不包含檔名
#
#-----[ OPEN 打開 ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ Find 尋找 ]------------------------------------------
#
<img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" />
#
#-----[ Replace with 將之取代為 ]------------------------------------------
#
<img src="http://yourdomain.com/cgi-bin/random-img.cgi" border="0" alt="{L_INDEX}" vspace="1" />
#
#-----[ Upload 上傳 ]------------------------------------------
#
random-img.cgi to cgi-bin
overall_header.tpl to templates/subSilver
random-img.cgi 到 cgi-bin
overall_header.tpl 到 templates/subSilver
#
#-----[ Delete 刪除 ]------------------------------------------
#
root.php
#
#-----[ SAVE/CLOSE ALL FILES 儲存並且關閉所有檔案 ]------------------------------------------
#
# EoM
# 外掛結束