代碼: 選擇全部
#################################################################
## MOD Title: Board Message MOD XL
## MOD Author: Shannado <sven@shannado.nl> (Sven) http://www.shannado.nl/forumorg
## MOD Description: With this MOD the admin is able to set mulptiple message at the top of the board.
## He/She can choose in the board configuaration, if the message appear on ALL pages or on the Index ONLY or
## not at all or on the forum you selected. It can handle more then 255 characters
## MOD Version: 1.0.5
##
## Installation Level: Intermediate
## Installation Time: 15 - 25 Minutes
## Files To Edit: page_header.php,
## overall_header_tpl,
## constants.php,
## functions.php,
## session.php
## Included Files: admin_board_msg_xl.php,
## board_msg_xl_edit_body.tpl,
## board_msg_xl_view_body.tpl,
## board_message_xl.php,
## functions_bm.php,
## board_msg_xl_preview_body.tpl,
## lang_main_bm_xl.php,
## lang_admin_bm_xl.php
## default.gif
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
## YYYY-MM-DD - Version x.x.x
## - version notes go here
##
## ------------
## 01-01-2002 - 0.6.0 beta
## - Beta
##
## 01-01-2002 - 0.9.0 beta
## - A lot of improvements and extended the functionality
##
## 01-01-2002 - 0.9.1 beta
## - Error in the sort function
##
## 01-01-2002 - 0.9.2 beta
## - Fixed small errors
## - Enabled BB Code
##
## 01-01-2002 - 0.9.3 beta
## - Fixed Typo in constants.php
## - forgot to to include bbcode_strip() function in the HOW TO
##
## 01-01-2002 - 0.9.4 beta
## - When editing/adding the message, you can preview the message
## - More Smilies window added (just like when posting a post)
## - Cleaned up the code a bit
##
## 01-01-2002 - 1.0.0 FINAL
## - FINAL
##
## 01-01-2002 - 1.0.1 FINAL
## - When Gzip comression enabled there were some problems.
##
## 01-01-2002 - 1.0.2 FINAL
## - Link to the FAQ was wrong
##
## 01-01-2002 - 1.0.3 FINAL
## - Fixed error in pagination
##
## 01-01-2002 - 1.0.4 FINAL
## - Made phpBB v2.0.2 complaint and EasyMod 0.0.7 complaint
##
## 05-12-2003 - 1.0.5 FINAL
## - Made phpBB v2.0.6 complaint and EasyMod 0.0.10a complaint
## - Adjusted to the new Template
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
################################################################# - 外掛模組下載網址:
http://www.shannado.nl/forumorg/
- 中文語系:
lang_admin_bm_xl.php
代碼: 選擇全部
//board msg MOD XL
$lang['Board_msg_xl'] = "公告看板";
$lang['Board_msg_xl_explain'] = "選擇你想要更改的看板訊息";
$lang['Bm_id'] = "編號";
$lang['Bm_title'] = "看板訊息標題";
$lang['Bm_message'] = "看板訊息";
$lang['Bm_showpage'] = "這篇訊息將會顯示在哪個版面上面";
$lang['Bm_display'] = "看板訊息顯示在";
$lang['Bm_auth'] = '可以看到看板訊息的對象';
$lang['Bm_width'] = '寬度 (%)';
$lang['Bm_width_explain'] = '輸入數字在 % 以決定看板寬度';
$lang['Bm_startdate'] = '起始日期';
$lang['Bm_enddate'] = '結束日期';
$lang['Bm_date_explain'] = '這個欄位決定看板資訊的起始及結束日期';
$lang['Bm_images'] = '圖片';
$lang['Bm_images_explain'] = '輸入要顯示出來的圖片檔案名稱 <b>及</b> 路徑 (必須從論壇根目錄下) . 記得前面要加入 "/". 留下空白表示沒有圖片';
$lang['Bm_days'] = '日子';
$lang['Bm_days_explain'] = '決定哪一個訊息要在哪一天被顯示在公告看板上的 (勾選)';
$lang['Bm_order'] = '次序';
$lang['Bm_off'] = '關閉';
$lang['Bm_all_pages'] = '所有頁面';
$lang['Bm_index'] = '首頁';
$lang['Bm_mod'] = '版面管理員';
$lang['Bm_all_auth'] = '所有會員';
$lang['Bm_updated'] = "看板資訊更新";
$lang['Click_return_bm'] ='點選 %s這裡%s 回到看板資訊XL管理模式';
$lang['Bm_del_success'] = '看板資訊刪除';
// Not in use right now, maybe later, maybe not
$lang['Bm_starttime'] = '起始時間';
$lang['Bm_endtime'] = '結束時間';
$lang['Bm_time_explain'] = '確定要在這一段時間內顯示嗎?';
$lang['Bm_timezone'] = '使用者的時區';
$lang['Bm_timezone_explain'] = 'Which timezone (users or board) must be used, when calculating if the message be shown or not. Does nothing with the startdate and enddate.';
$lang['Bm_back'] = '點選這裡回到上一頁';- lang_main_bm_xl.php
代碼: 選擇全部
//Board Msg XL MAIN
$lang['Bm_next'] = '下一則';
$lang['Bm_prev'] = '上一則';
$lang['Bm_no_message'] = '抱歉, 沒有可以使用的資訊';
$lang['Bm_error'] = ' !! 錯誤 !!';
$lang['Bm_preview'] = ' 預覽看板訊息 ';- Bug 修正:
原文章網址:
http://www.phpbb.com/phpBB/viewtopic.ph ... 096#219096
解決編輯/新增公告時的斷行語法需再加上 <BR> 語法才能夠斷行的問題
#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
board_message_xl.php#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$template->assign_vars(array(
'BM_TITLE' => $bm_title,#-----[ BEFORE ADD 之前, 加上 ]------------------------------------
#
代碼: 選擇全部
$bm_msg = preg_replace("/(\015\012)|(\015)|(\012)|(\013)/","<br />
",$bm_msg);#-----[ OPEN 打開 ]------------------------------------------------
#
代碼: 選擇全部
admin/admin_board_msg_xl.php#-----[ FIND 尋找 ]------------------------------------------------
#
代碼: 選擇全部
$template->assign_vars(array(
'L_BACK' => $lang['Bm_back'],#-----[ BEFORE ADD 之前, 加上 ]------------------------------------
#
代碼: 選擇全部
$board_msg = preg_replace("/(\015\012)|(\015)|(\012)|(\013)/","<br />
",$board_msg);#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束
