外掛作者:James Parmee Morris
外掛版本:0.1.1
外掛功能:管理者可以在後台為會員加上註解,而且其他使用者無法看到\r
下載位置:http://www.phpbbhacks.com/viewhack.php?id=1814
安裝說明:
代碼: 選擇全部
###############################################
## Hack Title: Admin Comments
## Hack Version: 0.1.1
## Author: James Parmee Morris (www.expertshelp.com)
## Description: Allows admin's to post comments on users. An inputbox is put in a user's
## profile in the ACP under admin users where you
## can edit and view comments. only text is allowed.
## Compatibility: 2.0.5
##
## Installation Level: Easy
## Installation Time: 10-15 minutes
## Files To Edit: 3
## admin/admin_users.php
## language/lang_english/lang_main.php
## templates/subSilver/admin/profile_view_body.tpl
##
## Included Files: 1
## db_update.php
##
## History:
## 0.1.1: Initial release.
##
## Author Notes:
## None
##
## Support: http://www.expertshelp.com
## Copyright: ?003 Admin Comments - James Parmee Morris
##
###############################################
## You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
## Please visit http://www.phpbbhacks.com/forums for support.
###############################################
##
###############################################
## This hack is released under the GPL License.
## This hack can be freely used, but not distributed, without permission.
## Intellectual Property is retained by the hack author(s) listed above.
###############################################
#
#-----[ SQL ]--------------------------------------------
#
Upload db_update.php into the root and run it
#
#-----[ OPEN ]--------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]--------------------------------------------
#
$board_config['default_dateformat'];
#
#-----[ AFTER, ADD ]--------------------------------------
#
$exp = ( !empty($HTTP_POST_VARS['exp']) ) ? trim(strip_tags( $HTTP_POST_VARS['exp'] ) ) : '';
#
#-----[ FIND ]--------------------------------------------
#
$yim = htmlspecialchars(stripslashes($yim));
#
#-----[ AFTER, ADD ]--------------------------------------
#
$exp = htmlspecialchars(stripslashes($exp));
#
#-----[ FIND ]--------------------------------------------
#
user_active = $user_status,
#
#-----[ AFTER, ADD ]--------------------------------------
#
user_exp='" . str_replace("\'", "''", $exp) . "',
#
#-----[ FIND AGAIN ]--------------------------------------------
#
$yim = htmlspecialchars(stripslashes($yim));
#
#-----[ AFTER, ADD ]--------------------------------------
#
$exp = htmlspecialchars(stripslashes($exp));
#
#-----[ FIND ]--------------------------------------------
#
$yim = htmlspecialchars($this_userdata['user_yim']);
#
#-----[ AFTER, ADD ]--------------------------------------
#
$exp = htmlspecialchars($this_userdata['user_exp']);
#
#-----[ FIND ]--------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="yim" value="' . str_replace("\"", """, $yim) . '" />';
#
#-----[ AFTER, ADD ]--------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="exp" value="' . $exp . '" />';
#
#-----[ FIND ]--------------------------------------------
#
'AIM' => $aim,
#
#-----[ AFTER, ADD ]--------------------------------------
#
'EXPT' => $exp,
#
#-----[ FIND ]--------------------------------------------
#
'AIM' => $aim,
#
#-----[ AFTER, ADD ]--------------------------------------
#
'EXPT' => $exp,
#
#-----[ FIND ]--------------------------------------------
#
'L_AIM' => $lang['AIM'],
#
#-----[ AFTER, ADD ]--------------------------------------
#
'L_EXP' => $lang['EXP'],
#
#-----[ OPEN ]--------------------------------------------
#
template/[YOUR TEMPLATE]/admin/admin_edit_body.tpl
#
#-----[ FIND ]--------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_DELETE_USER}?</span></td>
<td class="row2">
<input type="checkbox" name="deleteuser">
{L_DELETE_USER_EXPLAIN}</td>
</tr>
#
#-----[ AFTER, ADD ]--------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_EXP}</span></td>
<td class="row2">
<textarea class="post" name="exp" rows="6" cols="45">{EXPT}</textarea>
</td>
</tr>
#
#-----[ OPEN ]--------------------------------------------
#
# Make sure to edit this file for every language installed
#
language/lang_chinese_traditional_taiwan/lang_admin.php
#
#-----[ FIND ]--------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ BEFORE, ADD ]-------------------------------------
#
//
// Admin Comments
//
$lang['EXP'] = '管理註解:<br /><br /><font size="1">Created by <a href="http://www.expertshelp.com" target="_blank">James Parmee Morris</a>';
#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
可以給某些人下註解阿\r
例如:我親愛的婆
或者:討人厭的傢伙
而且被下註解的人不會知道阿~ XD
不過功能有待加強\r
最好能夠做到管理員看會員列表的時候
也可以看的到註解(但一般使用者看不到)
有人有興趣的話幫忙加強一下~ 一.一||