裝上這個外掛後
版面管理員會有修改他人貨幣的權限
如果系統管理員擔心或不放心版管的管理問題
可以依照下列方法加以修正\r
打開 icash.php (根目錄下)
找到(第202行):
代碼: 選擇全部
if($userdata['user_level'] == MOD && $profiledata['user_level'] != ADMIN)
{
[color=red]$template->assign_block_vars('switch_icash_edit', array());[/color]
}
else if($userdata['user_level'] == ADMIN)
{
$template->assign_block_vars('switch_icash_edit', array());
}
if($userdata['user_id'] != $profiledata['user_id'])
{
$template->assign_block_vars('switch_icash_donate', array());
}
代碼: 選擇全部
if($userdata['user_level'] == MOD && $profiledata['user_level'] != ADMIN)
{
[color=red]$template->assign_block_vars('switch_icash_donate', array());[/color]
}
else if($userdata['user_level'] == ADMIN)
{
$template->assign_block_vars('switch_icash_edit', array());
}
if($userdata['user_id'] != $profiledata['user_id'])
{
$template->assign_block_vars('switch_icash_donate', array());
}
只是將版面個人資料下方和會員列表中的個人資料
將原本的修改xxx的金錢改成捐贈金錢給xxx
底下在 ? 後的兩段連結是依據等號後方、問號前方的判別式來決定後面的顯示字串;冒號(:)是兩串連結的分隔號
打開 viewtopic.php (根目錄下)
找到:
代碼: 選擇全部
$icash_mod = ( [color=red]$is_auth['auth_mod'] [/color]) ? '<a href="'.append_sid("icash.$phpEx?u=".$poster_id).'">'.sprintf($lang['icash_modd'], $poster).'</a>' : '<a href="'.append_sid("icash.$phpEx?u=".$poster_id).'">'.sprintf($lang['icash_mod_donate'], $poster).'</a>';
代碼: 選擇全部
$icash_mod = ([color=red] $userdata['user_level'] != MOD [/color]) ? '<a href="'.append_sid("icash.$phpEx?u=".$poster_id).'">'.sprintf($lang['icash_modd'], $poster).'</a>' : '<a href="'.append_sid("icash.$phpEx?u=".$poster_id).'">'.sprintf($lang['icash_mod_donate'], $poster).'</a>';
找到:
代碼: 選擇全部
$icash_mod = ( $userdata['user_level'] [color=red]>= 1 [/color]) ? '<a href="'.append_sid("icash.$phpEx?u=".$profiledata['user_id']).'">'.sprintf($lang['icash_modd'], $profiledata['username']).'</a>' : '<a href="'.append_sid("icash.$phpEx?u=".$profiledata['user_id']).'">'.sprintf($lang['icash_mod_donate'], $profiledata['username']).'</a>';
代碼: 選擇全部
$icash_mod = ( $userdata['user_level'] [color=red]!= MOD[/color] ) ? '<a href="'.append_sid("icash.$phpEx?u=".$profiledata['user_id']).'">'.sprintf($lang['icash_modd'], $profiledata['username']).'</a>' : '<a href="'.append_sid("icash.$phpEx?u=".$profiledata['user_id']).'">'.sprintf($lang['icash_mod_donate'], $profiledata['username']).'</a>';
不敢將本篇稱為是教學\r
也不知道最後兩段這麼修改會不會出事
所以希望有人若有問題提出改正
不過在我自己的埨壇上這麼執行是還沒出錯過
希望有錯請指正囉

發現貼錯版了

麻煩版大幫我移到非官方外掛問題版內\r
謝謝了
