我裝了水怪以後都沒怎麼"利用"過它^0^"~
我昨天重下了cash mod221,
看到cm_upgrade_202_221.txt說:
代碼: 選擇全部
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$cash_count = 0;
foreach ( $cash_table AS $cash_set )
{
if( !($board_config['cash_disable']) && (($cash_set['cash_enabled'] && $cash_set['cash_profiledisplay']) || ($userdata['user_level'] == ADMIN)) )
{
$template->assign_block_vars('cashrow', array( 'CASH_NAME' => (($cash_set['cash_image'])?('<img src="'.$phpbb_root_path.$cash_set['cash_imageurl'].'" />'):($cash_set['cash_name'])),
'CASH_AMOUNT' => $profiledata[$cash_set['cash_dbfield']],
'CASH_TYPE' => $cash_set['cash_id'],
'DONATER_CASH' => $userdata[$cash_set['cash_dbfield']],
'L_DONATE' => $lang['Donate'],
'L_ADD_CASH' => sprintf($lang['Add_cash'], $cash_set['cash_name']),
'S_DONATE_ACTION' => append_sid("profile.$phpEx?mode=viewprofile&u=".$HTTP_GET_VARS[POST_USERS_URL]),
'S_ADMIN_ACTION' => append_sid("profile.$phpEx?mode=viewprofile&u=".$HTTP_GET_VARS[POST_USERS_URL]))
);
if ( $cash_set['cash_enabled'] && $cash_set['cash_donate'] && $userdata['session_logged_in'] && ($userdata['user_id'] != $profiledata['user_id']) )
{
$template->assign_block_vars('cashrow.switch_donatedisplay', array());
}
if ( ($userdata['user_level'] == ADMIN) || (($cash_set['cash_modedit'] == 1) && ($userdata['user_level'] == MOD)) )
{
$template->assign_block_vars('cashrow.switch_admindisplay', array());
}
$cash_count++;
}
}
if ( !$board_config['cash_disable'] && ($cash_count > 1) )
{
$template->assign_block_vars("switch_exchangeon", array());
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
$cm_viewprofile->post_vars($template,$profiledata,$userdata);
所以我肯定那句話不見了~
(雖然明白那句修改的語法的意思,不過還是不會自己作出修改~_~"....如果我再多學一點php就好了..)
既然如此,那我就光明正大在會員面前展露出這個bug出來,叫他們節制一下好了~~^0^||...
祝你修改順利~*