lexXxa
Пользователь
Alekseev,
PHP:
u.user_avatar, u.user_avatar_type,
$avatar_img = '<img align="left" style="max-height: 30px; max-width: 30px; padding-right: 3px;" src="./images/avatars/gallery/noavatar.png" alt="" border="0" />';
if ($shout_row['user_avatar_type'])
{
switch($shout_row['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$avatar_img = ( $bb_cfg['allow_avatar_upload'] ) ? '<img align="left" style="max-height:30px;max-width:30px;padding-right: 3px;" src="' . $bb_cfg['avatar_path'] . '/' . $shout_row['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$avatar_img = ( $bb_cfg['allow_avatar_remote'] ) ? '<img align="left" style="max-height:30px;max-width:30px;padding-right: 3px;" src="' . $shout_row['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$avatar_img = ( $bb_cfg['allow_avatar_local'] ) ? '<img align="left" style="max-height:30px;max-width:30px;padding-right: 3px;" src="' . $bb_cfg['avatar_gallery_path'] . '/' . $shout_row['user_avatar'] . '" alt="" border="0" />' : '';
break;
}
}
'.$avatar_img.'