1 頁 (共 1 頁)

[問題] 可否有人可以提供i-Forum Rule檔案。

發表於 : 2005-03-19 03:01
blueshing
原本的連結已無法下載。可否請各位幫忙提供~感謝!

發表於 : 2005-03-19 13:51
Man520
install.txt:

代碼: 選擇全部

############################################################## 
## 外掛名稱: i-Forum Rule
## 外掛作者: Ray < blue_sky_ray@hotmail.com > (Ray Fung) http://www.ioptional.com/
## 外掛簡介: 	一個簡單的版面規則外掛,可以於每一個版面的上方顯示,
## 		版面規則。
## 外掛版本: 1.0.0
## 
## 安裝難度: 容易
## 安裝時間: 10 分鐘
## 修改檔案: 5
##		viewforum.php
##		admin/admin_forums.php
##		language/lang_chinese_traditional_taiwan/lang_admin.php
##		language/lang_chinese_traditional_taiwan/lang_main.php
## 		templates/subSilver/viewforum_body.tpl
## 		templates/subSilver/admin/forum_edit_body.tpl
## 加入檔案: 0
############################################################## 
## 作者之言:
##	- 顯示版面規則
############################################################## 
## MOD History:
## v1.0.0
##	- 版本釋出\r
##
##############################################################
## 安裝此外掛之前請先備份好你的論壇。
##############################################################
#
#-----[ SQL ]---------------------------------
#
ALTER TABLE phpbb_forums ADD forum_rule text;

#
#-----[ OPEN ]---------------------------------
#
viewforum.php

#
#-----[ FIND ]---------------------------------
#
$template->assign_vars(array(
	'FORUM_ID' => $forum_id,
	'FORUM_NAME' => $forum_row['forum_name'],

#
#-----[ REPLACE WITH ]--------------------------------
#
if( !empty($forum_row['forum_rule']) )
{
	$template->assign_block_vars('forum_rule', array());
}

$template->assign_vars(array(
	'FORUM_ID' => $forum_id,
	'FORUM_NAME' => $forum_row['forum_name'],
	'FORUM_RULE' => $forum_row['forum_rule'],

#
#-----[ OPEN ]---------------------------------
#
admin/admin_forums.php

#
#-----[ FIND ]---------------------------------
#
				$forumdesc = $row['forum_desc'];
				$forumstatus = $row['forum_status'];

#
#-----[ AFTER, ADD ]--------------------------------
#
				$forumrule = $row['forum_rule'];

#
#-----[ FIND ]---------------------------------
#
				$forumdesc = '';
				$forumstatus = FORUM_UNLOCKED;

#
#-----[ AFTER, ADD ]--------------------------------
#
				$forumrule = '';

#
#-----[ FIND ]---------------------------------
#
				'L_FORUM_DESCRIPTION' => $lang['Forum_desc'],
				'L_FORUM_STATUS' => $lang['Forum_status'],

#
#-----[ AFTER, ADD ]--------------------------------
#
				'L_FORUM_RULE' => $lang['Forum_rule'],

#
#-----[ FIND ]---------------------------------
#
				'L_DAYS' => $lang['Days'],

#
#-----[ FIND ]---------------------------------
#
				'FORUM_NAME' => $forumname,
				'DESCRIPTION' => $forumdesc

#
#-----[ BEFORE, ADD ]--------------------------------
#
				'FORUM_RULE' => $forumrule,

#
#-----[ FIND ]---------------------------------
#
			// There is no problem having duplicate forum names so we won't check for it.
			$sql = "INSERT INTO "

#
#-----[ IN-LINE FIND ]---------------------------------
#
, forum_status

#
#-----[ IN-LINE AFTER ADD ]---------------------------------
#
, forum_rule

#
#-----[ IN-LINE FIND ]---------------------------------
#
, " . intval($HTTP_POST_VARS['forumstatus']) . "

#
#-----[ IN-LINE AFTER ADD ]---------------------------------
#
, '" . str_replace("\'", "''", $HTTP_POST_VARS['forumrule']) . "'

#
#-----[ FIND ]---------------------------------
#
			$sql = "UPDATE " . FORUMS_TABLE . "
				SET forum_name =

#
#-----[ IN-LINE FIND ]---------------------------------
#
, forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "

#
#-----[ IN-LINE AFTER ADD ]---------------------------------
#
, forum_rule = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumrule']) . "'

#
#-----[ OPEN ]---------------------------------
#
language\lang_chinese_traditional_taiwan\lang_admin.php

#
#-----[ FIND ]---------------------------------
#
//
// That's all Folks!

#
#-----[ BEFORE, ADD ]--------------------------------
#
/* i-Forum Rule MOD */
$lang['Forum_rule'] = '版面規則';

#
#-----[ OPEN ]---------------------------------
#
templates\subSilver\viewforum_body.tpl

#
#-----[ FIND ]---------------------------------
#
  <table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
	<tr> 
	  <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
	  <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>

#
#-----[ BEFORE, ADD ]---------------------------------
#
  <!-- BEGIN forum_rule -->
  <table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr> 
		<td width="100%"><span class="gensmall"><hr>{FORUM_RULE}<hr></span></td>
	</tr>
  </table>
  <br />
  <!-- END forum_rule -->

#
#-----[ OPEN ]---------------------------------
#
templates\subSilver\admin\forum_edit_body.tpl

#
#-----[ FIND ]---------------------------------
#
	<tr> 
	  <td class="row1">{L_FORUM_DESCRIPTION}</td>
	  <td class="row2"><textarea rows="5" cols="45" wrap="virtual" name="forumdesc" class="post">{DESCRIPTION}</textarea></td>
	</tr>

#
#-----[ AFTER, ADD ]--------------------------------
#
	<tr> 
	  <td class="row1">{L_FORUM_RULE}</td>
	  <td class="row2"><textarea rows="5" cols="45" wrap="virtual" name="forumrule" class="post">{FORUM_RULE}</textarea></td>
	</tr>

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 
readme.txt

代碼: 選擇全部

			[ 版權聲名 ]
所有外掛全是本人 (Ray) 以 iOptional 名義出品製作,完全是一個
免費軟件,在法律保護下可以自由使用,但請不要未經授權的情況下
自行發佈,整合推出以及擅自修改,也不要作為商業用途,否則本人
不會負上任何法律上的責任,希望各位尊重版權,以為做成無謂的爭\r
議。如果還有什麼問題,可以連到以下的網址:
http://www.ioptional.com

------------------------------------------------------------
			[ 注意事項 ]
1. 轉載時請通知作者,也請附上這篇版權。
2. 如對外掛上有什麼問題或回報,請到論壇發問。
   http://www.ioptional.com/forum
3. 本外掛可能未受到 phpbb.com 的認可,請先參考相關資料才使用\r
   本外掛。

------------------------------------------------------------
		      [ 整合論壇問題 ]
如果整合此外掛再自行推出,請先通知作者,等到作者本人的認可才
可以推出,如果無法聯絡作者,請在外掛包中附上作者的版權。

------------------------------------------------------------
			[ 外掛版權 ]
名稱: 	i-Forum Rule
版本: 	1.0.0
簡介: 	一個簡單的版面規則外掛,可以於每一個版面的上方顯示,
	版面規則。
作者: 	Ray
\n名義: 	iOptional 隨意空間
網址: 	http://www.ioptional.com/

發表於 : 2005-03-22 00:24
blueshing
感謝!:)