有人安裝成功嗎?能否回報一下?順便也到我的網站支持一下吧...快倒了...
代碼: 選擇全部
#################################################################
## Mod Title: Board Announce Link
## DEMO:NO! (How do i show u?)
## Mod Version: 1.0.0
## MOD Compatibility: 2.0.0 -> 2.0.6
\n## Author: neoBetas < sonetjapan@so-net.net.tw > http://61.56.132.15/
## Description:
## This Mod let you make link to your Board Announce by using the Admin CP.
##
## Installation Level: Super Easy
## Installation Time: 90 Sec. (LOL:P)
## Files To Edit: language\lang_Your_lang\lang_admin.php
## index.php
## admin\admin_board.php
## templates\Your_template\index_body.tpl
## templates\Your_template\admin\board_config_body.tpl
##
## Included Files: templates\Your_template\images\announce.gif
## templates\Your_template\images
avbg.gif
## templates\Your_template\images
avleft.gif
## templates\Your_template\images
avright.gif
##
##############################################################
## This MOD is released under the GPL License.
##############################################################
## Author Notes:
##
## Backup all your files before install the mod.
## Add anything you like by your own.
## By the way, i HAVEN'T test it by my own. :)
## So, if it works bad, dont do anything to me.
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
##################[ SQL ADD ]###################################
INSERT INTO phpbb_config (config_name , config_value) VALUES ('announce_content1', '');
##################[ OPEN ]######################################
language\lang_Your_lang\lang_admin.php
##################[ FIND ]######################################
$lang['Board_Announce_Warning'] = "請勿使用單引號 ('), 字數限制 255 字元";
##################[ AFTER, ADD ]################################
$lang['Board_Announce_Content_No'] = '公告文章編號'; // BAL MOD
$lang['Board_Announce_Warning_No'] = "字數限制 50 字元"; // BAL MOD
##################[ SAVE, CLOSE ]###############################
##################[ OPEN ]######################################
index.php
##################[ FIND ]######################################
// Board_Announce_MOD
if( $board_config['announce_enable'] )
{
$template->assign_block_vars("board_announce", array("ANNOUNCE_CONTENT" => $board_config['announce_content']));
}
##################[ REPLACE ]##################################
// Board_Announce_MOD
if( $board_config['announce_enable'] )
{
$template->assign_block_vars("board_announce", array(
"ANNOUNCE_CONTENT" => $board_config['announce_content'],
"ANNOUNCE_CONTENT_NO" => $board_config['announce_content1']));
}
##################[ SAVE, CLOSE ]###############################
##################[ OPEN ]######################################
admin\admin_board.php
##################[ FIND ]######################################
"L_BOARD_ANNOUNCE_SETTING" => $lang['Board_Announce_Setting'], // Board_Announce_MOD
"L_BOARD_ANNOUNCE_STATUS" => $lang['Board_Announce_Status'], // Board_Announce_MOD
"L_BOARD_ANNOUNCE_CONTENT" => $lang['Board_Announce_Content'], // Board_Announce_MOD
"L_BOARD_ANNOUNCE_WARNING" => $lang['Board_Announce_Warning'], // Board_Announce_MOD
"S_ENABLE_ANNOUNCE_YES" => $announce_enable_yes, // Board_Announce_MOD
"S_ENABLE_ANNOUNCE_NO" => $announce_enable_no, // Board_Announce_MOD
"ANNOUNCE_CONTENT" => $new['announce_content'], // Board_Announce_MOD
##################[ AFTER, ADD ]################################
"ANNOUNCE_CONTENT_NO" => $new['announce_content1'], // Board_Announce_MOD
"L_BOARD_ANNOUNCE_CONTENT_NO" => $lang['Board_Announce_Content_No'], // Board_Announce_MOD
"L_BOARD_ANNOUNCE_WARNING_NO" => $lang['Board_Announce_Warning_No'], // Board_Announce_MOD
##################[ SAVE, CLOSE ]###############################
##################[ OPEN ]######################################
templates\Your_template\index_body.tpl
##################[ FIND ]######################################
<!-- BEGIN board_announce -->
<td valign="top" align="center"><!-- Board_Announce_MOD -->
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td><img src="templates/Your_template/images/navleft.gif" width="7" height="22" border="0" /></td>
<td height="22" align="center" class="navbar" style="background-image:url(templates/Your_template/images/navbg.gif)" nowrap>
<img src="templates/Your_template/images/announce.gif" width="16" height="16" border="0" align="middle" alt="公告" hspace="3" /><span style="{font-size:13px; color:red}"> <b>{board_announce.ANNOUNCE_CONTENT}</b> </span>
</td>
<td><img src="templates/Your_template/images/navright.gif" width="7" height="22" border="0" /></td>
</tr>
</table>
</td>
<!-- END board_announce -->
##################[ REPLACE ]##################################
<!-- BEGIN board_announce -->
<td valign="top" align="center"><!-- Board_Announce_MOD -->
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td><img src="templates/Your_template/images/navleft.gif" width="12" height="26" border="0" /></td>
<td height="22" align="center" valign="middle" nowrap="nowrap" class="navbar" style="background-image:url(templates/Your_template/images/navbg.gif)"><img src="templates/Your_template/images/announce.gif" width="16" height="16" border="0" align="middle" alt="公告" hspace="3" /><span style="{font-size:13px; color:red}"> <a href="viewtopic.php?t={board_announce.ANNOUNCE_CONTENT_NO}" STYLE="text-decoration:none; font-size: 14px;"><font color="#FF6633"><b>{board_announce.ANNOUNCE_CONTENT}</b></font></a> </span></td>
<td><img src="templates/Your_template/images/navright.gif" width="12" height="26" border="0" /></td>
</tr>
</table>
</td>
<!-- END board_announce -->
##################[ SAVE, CLOSE ]###############################
##################[ OPEN ]######################################
/templates/Your_template/admin/board_config_body.tpl
##################[ FIND ]######################################
<tr><!-- Board_Announce_MOD -->
<th class="thHead" colspan="2">{L_BOARD_ANNOUNCE_SETTING}</th>
</tr>
<tr>
<td class="row1">{L_BOARD_ANNOUNCE_STATUS}</td>
<td class="row2"><input type="radio" name="announce_enable" value="1" {S_ENABLE_ANNOUNCE_YES} /> {L_ENABLED} <input type="radio" name="announce_enable" value="0" {S_ENABLE_ANNOUNCE_NO} /> {L_DISABLED}</td>
</tr>
<tr>
<td class="row1" valign="top">{L_BOARD_ANNOUNCE_CONTENT}<br /><span class="gensmall">{L_BOARD_ANNOUNCE_WARNING}</span></td>
<td class="row2"><textarea name="announce_content" rows="5" cols="30" maxlength="255">{ANNOUNCE_CONTENT}</textarea></td>
</tr>
##################[ REPLACE ]##################################
<tr><!-- Board_Announce_MOD -->
<th class="thHead" colspan="2">{L_BOARD_ANNOUNCE_SETTING}</th>
</tr>
<tr>
<td class="row1">{L_BOARD_ANNOUNCE_STATUS}</td>
<td class="row2"><input type="radio" name="announce_enable" value="1" {S_ENABLE_ANNOUNCE_YES} /> {L_ENABLED} <input type="radio" name="announce_enable" value="0" {S_ENABLE_ANNOUNCE_NO} /> {L_DISABLED}</td>
</tr>
<tr>
<td class="row1" valign="top">{L_BOARD_ANNOUNCE_CONTENT}<br /><span class="gensmall">{L_BOARD_ANNOUNCE_WARNING}</span></td>
<td class="row2"><textarea name="announce_content" rows="5" cols="30" maxlength="255">{ANNOUNCE_CONTENT}</textarea></td>
</tr>
<tr>
<td class="row1" valign="top">{L_BOARD_ANNOUNCE_CONTENT_NO}<br /><span class="gensmall">{L_BOARD_ANNOUNCE_WARNING_NO}</span></td>
<td class="row2"><input type="text" size="6" maxlength="8" name="announce_content1" value="{ANNOUNCE_CONTENT_NO}" /></td>
</tr>
##################[ SAVE, CLOSE ]###############################
- EoM - Enjoy! ...^_________________^...