Я вот смотрю половина старых переменных поизменялось.... теперь чтобы написать чтото простенькое приходиться голову ломать...
сейчас пытаюсь портировать вот етот код в topic.php из старой версии форума...
CODE:
if ($use['status'] == 'ad') {
$names[$named]['membergraphic'] = '<img src="./im/images/rank_admin.gif" border="0">';
$names[$named]['team'] = ' <img src="./im/images/team.gif" border="0" title="Администратор форума">';
$names[$named]['membertitle'] = ( !empty($user['title']) ) ? $user['title'] : $lang['Admin'];
} elseif ($user['status'] == 'sm') {
$names[$named]['membergraphic'] = '<img src="./im/images/rank_admin.gif" border="0">';
$names[$named]['team'] = ' <img src="./im/images/team.gif" border="0" title="Супермодератор">';
$names[$named]['membertitle'] = ( !empty($user['title']) ) ? $user['title'] : $lang['SuperMod'];
} elseif (array_key_exists($named, $moderators)) {
$names[$named]['membergraphic'] = '<img src="./im/images/rank_moderator.gif" border="0">';
$names[$named]['team'] = ' <img src="./im/images/mteam.gif" border="0" title="Модератор раздела">';
$names[$named]['membertitle'] = ( !empty($user['title']) ) ? $user['title'] : $lang['Moderator'];
} elseif ($user['status'] == 'banned') {
$names[$named]['membergraphic'] = '<img src="./im/images/rank_banned.gif" border="0">';
$names[$named]['membertitle'] = $lang['User_banned'];
}
нифига не получаеться...
пробовал уже и замену переменных типо такого:
CODE:
if ($users['status'] == 'ad') {
$users[$user_id]['usergraphic'] = '<img src="./im/images/rank_admin.gif" border="0">';
$users[$user_id]['team'] = ' <img src="./im/images/team.gif" border="0" title="Администратор форума">';
$users[$user_id]['usertitle'] = ( !empty($users['title']) ) ? $users['title'] : $fm->LANG['Admin'];
} elseif ($user['status'] == 'sm') {
$users[$user_id]['usergraphic'] = '<img src="./im/images/rank_admin.gif" border="0">';
$users[$user_id]['team'] = ' <img src="./im/images/team.gif" border="0" title="Супермодератор">';
$users[$user_id]['usertitle'] = ( !empty($users['title']) ) ? $users['title'] : $fm->LANG['SuperMod'];
} elseif (array_key_exists($user_id, $moderators)) {
$users[$user_id]['usertitle'] = '<img src="./im/images/rank_moderator.gif" border="0">';
$names[$user_id]['team'] = ' <img src="./im/images/mteam.gif" border="0" title="Модератор раздела">';
$users[$user_id]['usertitle'] = ( !empty($users['title']) ) ? $users['title'] : $fm->LANG['Moderator'];
} elseif ($user['status'] == 'banned') {
$users[$user_id]['usergraphic'] = '<img src="./im/images/rank_banned.gif" border="0">';
$users[$user_id]['usertitle'] = $fm->LANG['Banned];
}