[問題]勳章系統發送問題
發表於 : 2004-06-02 09:56
問題外掛:Medal System 勳章系統 2.1.0
參考連結:(http://phpbb-tw.net/phpbb/viewtopic.php ... E%B1%B3%B9
使用版本:phpBB 2.0.3)
狀況描述:授權會員勳章時,選擇會員後按送出,出現以下訊息,但是按回上一頁勳章已授權給會員
我把medalcp.php第151-180貼出來請各位大大幫幫忙阿!
ps.我發會員註冊信都正常耶!
參考連結:(http://phpbb-tw.net/phpbb/viewtopic.php ... E%B1%B3%B9
使用版本:phpBB 2.0.3)
狀況描述:授權會員勳章時,選擇會員後按送出,出現以下訊息,但是按回上一頁勳章已授權給會員
代碼: 選擇全部
Fatal error: Call to undefined function: from() in c:\appserv\www\phpbb\medalcp.php on line 167
ps.我發會員註冊信都正常耶!
代碼: 選擇全部
151 // Get the medal name
// Email the user and tell them they're receiving the medal
$medal_sql = "SELECT medal_name
FROM " . MEDAL_TABLE . "
WHERE medal_id = $medal_id";
if ( !($result = $db->sql_query($medal_sql)) )
{
message_die(GENERAL_ERROR, 'Could not get medal information', '', __LINE__, __FILE__, $medal_sql);
}
$medal_name_row = $db->sql_fetchrow($result);
$medal_name = $medal_name_row['medal_name'];
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
167 $emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->use_template('medal_added', stripslashes($this_userdata['user_lang']));
$emailer->email_address($this_userdata['user_email']);
$emailer->set_subject($lang['Medal_added']);
$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'MEDAL_NAME' => $medal_name,
'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "
", "--
" . $board_config['board_email_sig']) : '',
'U_MEDAL' => $server_url)
180 );