無意中發現這支外掛, 覺得還不錯的, 大家分享.
這是一個利用國外提供的網路空間儲存圖檔的論壇外掛
好處:
不佔用你的空間、沒有頻寬問題
不必擔心圖檔上傳帶來的駭客入侵問題
可儲存大圖檔, 單一圖檔體積上限4mb
沒有數量限制、愛貼多少就貼多少
經上載測試, 速度也不慢.
代碼: 選擇全部
##############################################################
## MOD Title: Simple Image Upload
## MOD Author: Sium < admin@postimage.org > (N/A) http://www.postimage.org
## MOD Description:
## This mod integrates image hosting with phpBB
## It makes image upload very simple. All images are
## hosted on remote image hosting service, not on
## your forum. When user uploads image, script
## creates a thumbnail for image and appends bbcode
## to post user is typing. User doesn't need to
## know anything about bbcode. And this mod is very
## simple to install.
## MOD Version: 1.0.4
##
## Installation Level: Easy
## Installation Time: ~1 Minutes
## Files To Edit: ./includes/template.php
## Included Files: addform.html
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## If you run into any problems or have any questions feel free to email me at admin@postimage.org.
##
##############################################################
## MOD History:
##
## 2006-12-24 - Version 1.0.4
## - Updated Install code
##
## 2006-05-14 - Version 1.0.3
## - Updated Install code
##
## 2006-04-21 - Version 1.0.2
## - Updated Install code
##
## 2006-04-09 - Version 1.0.1
## - No longer requires eXtreme Styles mod
## - Updated Install code
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy addform.html to ./addform.html
#
#-----[ OPEN ]---------------------------------------------
#
./includes/template.php
#
#-----[ FIND ]---------------------------------------------
# around line 265
$str = implode("", @file($filename));
if (empty($str))
{
die("Template->loadfile(): File $filename for handle $handle is empty");
}
#
#-----[ AFTER, ADD ]---------------------------------------------
#
if(basename($filename) === 'posting_body.tpl')
{
$str = str_replace('</textarea>', '</textarea><br /> • <span class="genmed"><a href="javascript:void(0);" onclick="window.open(\'http://www.postimage.org/index.php?mode=phpbb&lang=english&tpl=.&forumurl=\' + escape(document.location.href), \'_imagehost\', \'resizable=yes,width=500,height=400\');return false;">上傳圖片</a>在此上傳的圖片會以縮圖顯示, 最大4mb</span>', $str);
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
我把英文部份稍為中文化, 請在原載點下載原外掛, 並上傳 addform.html 到目錄下
原外掛下載及 Demo: http://www.postimage.org/mod.php
.